Some ASM issues - 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: Some ASM issues (/showthread.php?tid=9453) |
Some ASM issues - Archer-Dante - 10-16-2014 Greetings. I'm currently working on combining Alkarter's Exe with Silva's and folks DLL, at least for simpliest features. It's kinda funny work with that btw i'm not really expirienced with asm-olly tracking. Today i got stuck with reworking 4xxx state. First of all, state have same adress as in origianl lf2 exe, and initiated like Code: invoke JmpPatch, 0041F5FCh, addr State8xxx and failed. to figure out what goes wrong i even completly rewrite State8xxx procedure about 10 times and then i found some strange things ok, here is procs code Code: State8xxx proc and header Code: Transform1 dd 0041F675h Everything works fine till i'm trying to change original Code: LEA EDX,DWORD PTR DS:[EAX-1F40h] Code: LEA EDX,DWORD PTR DS:[EAX-0FA0h] Then game just works like everything after that LEA doesnt exist. Character using 4xxx just dissapearing like next: 1000, dunno why, cause testing it just show me "Sector 3" doesnt effect anymore. Any advice either ideas how to fix that strange character dissapearing? After spending a lot of hours i just have no any else point to resolve it xO RE: Some ASM issues - o_g349 - 10-17-2014 Can you translate these code to C ? I hardly read your asm code. I wrote a tutorial about translation, you can take a look. RE: Some ASM issues - Archer-Dante - 10-17-2014 maybe i'll try.... C is completly unknown thing to me. Even now i feel easier to read asm.. and update: send sources to friend... and he told that he got everything works fine O_O really, i got crash (regular exe launch) and character dissapear (while launched through debugger)... and he just got it works fine >< now that dissapointment RE: Some ASM issues - Archer-Dante - 10-18-2014 Ok guys, forget it. Trouble cause my stupidness. 4xxx just somewhere was already used. ~shame. btw even now it works only time to times.. RE: Some ASM issues - Archer-Dante - 12-10-2014 Wanna ask one question and i guess somebody already know its kinda solution. In original LF2 either Alkarter's there is something like Coord-verification. Even if i'm trying to change anything thro Cheat Engine about X-coords, it's every time resets back with "exchange" ASM command Code: xchg [esi+10],eax Attempt to freeze or NOP value just prevents characters from moving by X-coord. Does anyone found a way to bypass this trouble? Can't manipulate with coordinates RE: Some ASM issues - Boop - 12-10-2014 It's because you are modifying the int version of the position which is not the "real" position. The real position is stored as a double. See the spreadsheet. https://docs.google.com/spreadsheet/ccc?key=0At20xa0N5LxydHIwUHA5T3J5Q05DM3Z1UGd3ZTZBYVE#gid=0 RE: Some ASM issues - Archer-Dante - 12-10-2014 Hm, what the int version used for then...? At sheet in "usage" col it's "integer version of the real x position", kinda no real info Oh, and ty Silva ^^ glad to see u~ RE: Some ASM issues - o_g349 - 12-10-2014 Using int to calculate coordinate can prevent from losing accuracy. I think this is most possible answer. |