Little Fighter Empire - Forums
[14/08/09] LF2 DLL Framework - Printable Version

+- Little Fighter Empire - Forums (https://lf-empire.de/forum)
+-- Forum: Little Fighter 2 Zone (https://lf-empire.de/forum/forumdisplay.php?fid=7)
+--- Forum: [2.0] Exe Editing (https://lf-empire.de/forum/forumdisplay.php?fid=43)
+--- Thread: [14/08/09] LF2 DLL Framework (/showthread.php?tid=2246)

Pages: 1 2 3 4 5 6 7 8 9 10


RE: [21/3/09] LF2 DLL Framework - genevrier - 03-25-2009

I tried the range AI.

Quote:In rarara.Asm:

include range.inc
......

invoke JmpPatch, 0040AE1Ah, addr Range1
invoke WriteMem, 0040AE1Fh, addr FourNOP,4
invoke JmpPatch, 0040B227h, addr Range2
invoke JmpPatch, 0040B2DBh, addr Range3
invoke JmpPatch, 0040B393h, addr Range4
invoke JmpPatch, 00403878h, addr Deep_Ball
invoke WriteMem, 0040387Dh, addr doubleNOP,2
Quote:In range.inc

.Data
Range1_1 dd 0040AF5Dh
Range1_2 dd 0040AE35h
Range2_1 dd 0040B236h
Range2_2 dd 0040B23Bh
Range3_1 dd 0040B2EEh
Range3_2 dd 0040B374h
Range4_1 dd 0040B3ABh
Range4_2 dd 0040B5D8h

.Code
Range1 proc

cmp ecx,4
je short return
;cmp ecx,ID
;je short return
jmp dword ptr [Range1_2]
return: jmp dword ptr [Range1_1]

Range1 endp

Range2 proc

cmp eax,4
je short return
;cmp eax,ID
;je short return
jmp dword ptr [Range2_2]
return: jmp dword ptr [Range2_1]

Range2 endp

Range3 proc

cmp eax,4
je short return
;cmp eax,ID
;je short return
jmp dword ptr [Range3_2]
return: jmp dword ptr [Range3_1]

Range3 endp

Range4 proc

cmp eax,4
je short return
;cmp eax,ID
;je short return
jmp dword ptr [Range4_2]
return: jmp dword ptr [Range4_1]

Range4 endp


Now I am dealing with the part of Deep D>A.

The part for Deep D>A (D>A range AI):
(Have not been checked)

Edit: The code is OK.


RE: [28/3/09] LF2 DLL Framework - Boop - 03-29-2009

Forgot to bump :p. Bump :D

Update 28/3/09:
Loading text can be manipulated from dll :D
Range AI (thanks to genevrier)
Deep Ball AI(thanks to genevrier)


RE: [28/3/09] LF2 DLL Framework - genevrier - 03-29-2009

I have a question. Is it in some way not very complicated we can change the gravity for specific BG?

http://www.lf-empire.de/forum/showthread.php?tid=2398
see this post will know why I want to do so. :D


RE: [28/3/09] LF2 DLL Framework - Yinseko - 03-29-2009

if i change any pictures in this exe with Resource Hacker , exe isn't work..
write that exe cant found dll
what cab i do for change pics in exe without crashing?


RE: [28/3/09] LF2 DLL Framework - Boop - 03-31-2009

Upload your exe.


RE: [28/3/09] LF2 DLL Framework - Yinseko - 04-01-2009

Lord Silva, it's not offtop) i talk about your exe (with reading dll). just if i try chnge any sprite inside exe with Respurce Hacker, exe crashes and can't be lunch (
this is ploblem, cuz mod-creators try to change desing of exe for their mods. but it impossible((


RE: [28/3/09] LF2 DLL Framework - Boop - 04-01-2009

(03-31-2009, 03:31 PM)Lord Silva Wrote:  Upload your exe.



RE: [28/3/09] LF2 DLL Framework - Yinseko - 04-01-2009

my exe with changed pictures (based on original LF2 exe; it works):
http://www.mediafire.com/?3mymzorwg2y

my exe with changed pictures (based on your LF2 DLL Framwork; it doesnt work):
http://www.mediafire.com/?z2m2yzdjzjy


RE: [28/3/09] LF2 DLL Framework - Boop - 04-01-2009

Bah, olly can't even open the exe so I can't see whats wrong with it... I'll create a tutorial later showing how to manually patch the exe to get it to load your dll.

PS: You're exe is stupidly big, save your images at a lower bit depth with indexed colors.


RE: [28/3/09] LF2 DLL Framework - Yinseko - 04-01-2009

Quote:PS: You're exe is stupidly big, save your images at a lower bit depth with indexed colors.
yea, i know ^^'' but with original exe it isn't so problem...
fix it later with index.

Quote:I'll create a tutorial later showing how to manually patch the exe to get it to load your dll.
thanks to you)