![]() |
About the LF2 Engine - 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) +---- Forum: Tutorials (https://lf-empire.de/forum/forumdisplay.php?fid=44) +---- Thread: About the LF2 Engine (/showthread.php?tid=3329) |
About the LF2 Engine - Boop - 07-29-2009 LF2 consists of "objects". There is a maximum of 400 objects, numbered 0-399. LF2 loops through all the objects and does all the needed operations on them(physics calculations etc).Getting to access an object you first have to get it's base address. That looks something like this: Code: mov eax,dword ptr ds:[esi+edi*4+194h] eax: that is where the address will be stored. Basic mov operation (mov destination,source). esi: Lets call it the "base pointer"(incorrect term but w/e), it is always 458B00h. edi: That is the number of the object. Like I mentioned previously, lf2 loops through the objects, so making this a register means the same line can be used to access any object. So that line can be expressed as: Code: mov eax, dword ptr ds:[458B00h+Object_Number*4+194h] Advanced (useless to most of you): It is possible to check if an object exists or not. Code: cmp byte ptr ds:[esi+edi+4],0 After you have access to the "Object", you can access the objects properties. That works something like: mov dword ptr ds:[eax+70h],0 That sets the objects frame number to 0. A large list of offsets exists here: http://lf-empire.de/forum/thread-2756-post-152651.html#pid152651 As of now, you have access to everything on the first page. To get access to the second page/"ID Properties" you have to get the next pointer. Assuming eax holds your object pointer: Code: mov eax, dword ptr ds:[eax+368h] ;move the id properties pointer into eax Now all that left is the frame stuff: Code: mov eax,dword ptr ds:[esi+edi*4+194h] ;Get object pointer End. ~Written by (Lord) ![]() RE: About the LF2 Engine - naruto hyuuga - 07-29-2009 so are you going to increase this to other things , like an explanation about how it works in the dll (it seems to work differently then in the exe it self RE: About the LF2 Engine - TheNave - 07-29-2009 no, it's the same RE: About the LF2 Engine - naruto hyuuga - 07-29-2009 it seemed different for me ok anyway but where does the itr go to to reduce hp (and can it be made to reduce mp) |