I have been using lf2 1.9c for a while, and I decided to convert to 2,0 for the music and other stuff. And i tried to patch my exe for Silva's dll frame work, but it just won't work. Here are the steps I did, in boring details:
1. Downloaded the newest version dll: [14/08/09] in this thread: http://www.lf-empire.de/forum/thread-2246.html
2. Downloaded the exe needed from this thread also: http://www.lf-empire.de/forum/thread-2246.html
3. I extracted the content of the 2 files in one folder in the desktop.
4. I oppened the exe with idd king. Clicked on "Click to pick dlls....to add', and browsed to wnidows/system32/kernel32.dll then picked the LoadLibraryA function.
5. Clicked on 'add them'.
6. A txt file in the lf2 exe directory was created. The text inside is: '''Below are the calls you can make to access your added functions...
Format style is: DLL Name::API Name->Call to API
kernel32.dll::LoadLibraryA->call dword ptr [74f134]'''
7. I oppened the Load_dll lf2 exe with ollydebug.
8. I saved that entry point call in a txt file, It was "CALL 0044632C", and I replaced it with "CALL 00446A61".
9. I pressed Ctrl+G and wraped to '00446A61'.
10.At '00446A61', I assembled the original call again "CALL 0044632C".
11.I scrolled up to "00446A4E" then, right click, binary> edit and I typed in "rarara.dll" in the Ascii box (note: there was a grey dash in the ascii box which had 00 as a corresponding ascii value. I didn't erase that, I kept it there and typed after it).
12.When I clicked on "ok", that line and the 5 lines after it were filled with asm commands(the first 2 were checked).
13.I scrolled down to the call at "00446A61", and one line after it, I wrote 'PUSH 00446A4E' and clicked on "Assemble".
14.Then I wrote the code in the txt file IDD King created and clicked on 'Assemble' again.
15.Then I returned the code with the "ret" command.
16.Then I saved the modifications.
ScreenShot of the final result:
Ok now. The exe works normally and state 40xx doesn't work at all.. As you can c, I followed everything in silvas tutorial, but still it state 40xx doesn't work. Why is that?
1. Downloaded the newest version dll: [14/08/09] in this thread: http://www.lf-empire.de/forum/thread-2246.html
2. Downloaded the exe needed from this thread also: http://www.lf-empire.de/forum/thread-2246.html
3. I extracted the content of the 2 files in one folder in the desktop.
4. I oppened the exe with idd king. Clicked on "Click to pick dlls....to add', and browsed to wnidows/system32/kernel32.dll then picked the LoadLibraryA function.
5. Clicked on 'add them'.
6. A txt file in the lf2 exe directory was created. The text inside is: '''Below are the calls you can make to access your added functions...
Format style is: DLL Name::API Name->Call to API
kernel32.dll::LoadLibraryA->call dword ptr [74f134]'''
7. I oppened the Load_dll lf2 exe with ollydebug.
8. I saved that entry point call in a txt file, It was "CALL 0044632C", and I replaced it with "CALL 00446A61".
9. I pressed Ctrl+G and wraped to '00446A61'.
10.At '00446A61', I assembled the original call again "CALL 0044632C".
11.I scrolled up to "00446A4E" then, right click, binary> edit and I typed in "rarara.dll" in the Ascii box (note: there was a grey dash in the ascii box which had 00 as a corresponding ascii value. I didn't erase that, I kept it there and typed after it).
12.When I clicked on "ok", that line and the 5 lines after it were filled with asm commands(the first 2 were checked).
13.I scrolled down to the call at "00446A61", and one line after it, I wrote 'PUSH 00446A4E' and clicked on "Assemble".
14.Then I wrote the code in the txt file IDD King created and clicked on 'Assemble' again.
15.Then I returned the code with the "ret" command.
16.Then I saved the modifications.
ScreenShot of the final result:
Ok now. The exe works normally and state 40xx doesn't work at all.. As you can c, I followed everything in silvas tutorial, but still it state 40xx doesn't work. Why is that?
A-Engine: A new beat em up game engine inspired by LF2. Coming soon
A-Engine Dev Blog - Update #8: Timeout