Little Fighter Empire - Forums
AI Copying [Part 1] - 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: [1.9/1.9c] Exe Editing (https://lf-empire.de/forum/forumdisplay.php?fid=17)
+---- Forum: Tutorials (https://lf-empire.de/forum/forumdisplay.php?fid=18)
+---- Thread: AI Copying [Part 1] (/showthread.php?tid=489)

Pages: 1 2 3


RE: AI Copying - Boop - 07-10-2008

I'm confused about what part you mean o.0 . Quote what part you don't understand and I shall try to explain better. Did you atleast get first bit done(the bit where I explain everything in extreme detail), I know that the 2nd bit is messy(the one which is just a quote ).


RE: AI Copying - KyuubiNaruto(FKN) - 07-10-2008

Quote:Code:

00442612 83B9 F4060000 >CMP DWORD PTR DS:[ECX+6F4],4
00442619 ^0F84 CB7AFCFF JE lf2.0040A0EA
In english the code pretty much says: " If the id is 4 then go to the part of the code that handles AI".
thats what i dont want understand


RE: AI Copying - RUDOLF27 - 07-11-2008

when you go to line "00442612", double click "DB 00" and put "CMP DWORD PTR DS:[ECX+6F4],4"

And to line "00442619", double click "DB 00" and put "JE 0040A0EA"


RE: AI Copying - KyuubiNaruto(FKN) - 07-11-2008

wha hapends after im done do i restart the lf2 or something? or do i just take both of them off?


RE: AI Copying - Boop - 07-11-2008

Oh, you mean how to save the file? Right click > Copy to exectuable > all modifications > copy all | in new window > save file.


RE: AI Copying - KyuubiNaruto(FKN) - 07-12-2008

dang..no wonder it didnt work


RE: AI Copying - hkmnhkmn - 07-16-2008

I was trying to copy firzen`s AI(CMP DWORD PTR DS:[ECX+6F4],33)
But when I test the game ,it crashed. :confused:
is there some thing wrong??

I tried to copy Firzen`s AI (ID: 51) to ID 60:

0040C7B6 . E9 575E0300 JMP S.00442612
0040C7BB 00 DB 00
0040C7BC 33 DB 33 ; CHAR '3'
0040C7BD . 0F85 28020000 JNZ S.0040C9EB
0040C7C3 > 8B48 70 MOV ECX,DWORD PTR DS:[EAX+70]
0040C7C6 . 81F9 09010000 CMP ECX,109
0040C7CC . 7E 65 JLE SHORT S.0040C833
0040C7CE . 81F9 18010000 CMP ECX,118

00442612 83B9 F4060000 >CMP DWORD PTR DS:[ECX+6F4],33 (51)
00442619 ^0F84 A4A1FCFF JE S.0040C7C3
0044261F 83B9 F4060000 >CMP DWORD PTR DS:[ECX+6F4],3C (60)
00442626 ^0F84 97A1FCFF JE S.0040C7C3
0044262C .^0F84 B9A3FCFF JE S.0040C9EB


RE: AI Copying - Boop - 07-16-2008

0044262C .^0F84 B9A3FCFF JMP S.0040C9EB

Should be a JMP there not a JE.


RE: AI Copying - KyuubiNaruto(FKN) - 07-16-2008

what a minute how do you tell what the numbers are in hex becaus i want to copy 10 to 53


RE: AI Copying - Boop - 07-16-2008

Google it : http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=U2E&q=53+in+hex&btnG=Search (53 = 35 , 10 = A ) . If you want to know how it works then read up on converting hex to decimal. Converting from hex to decimal is quite easy, for example 35 = 3 x 16 + 5 . Going from decimal to hex takes longer so just google it like i said :p.