Little Fighter Empire - Forums
[solved] About the "respond:" tag - 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: Solved Problems (https://lf-empire.de/forum/forumdisplay.php?fid=45)
+---- Thread: [solved] About the "respond:" tag (/showthread.php?tid=6224)



[solved] About the "respond:" tag - NocturneSama - 03-19-2011

Hello there!

I was browsing LF2.exe through a HEX Editor, and i've found this tag, among with the other tags used in DC.

Someone here knows what this "respond:" tag does?

Already tested it in all objects, stages and even backgrounds, but nothing happened.

P.S.: I'm using the 2.0a version.


RE: About the "respond:" tag - TheNave - 03-19-2011

I talked to silva and he says it's an itr-tag and probably does nothing atall, you might still try it inside of an itr and see if it has any effect


RE: About the "respond:" tag - Boop - 03-19-2011

Unused tag. It does actually get read in though, it could be abused to make something the same way "perspective: " was abused to make items fall at startup.

I've updated the spreadsheets to include it:

http://spreadsheets.google.com/ccc?key=r5Xp6WYfcmlxDTUlwfdZHYQ#gid=6


RE: About the "respond:" tag - NocturneSama - 03-20-2011

Oh wow, i did not knew about this spreadsheet!

thanks for the information, and thanks for the link!


RE: About the "respond:" tag - Boop - 03-20-2011

You should read http://lf-empire.de/forum/showthread.php?tid=3329 that. It explains LF2's memory structure quite well. The only issue is I did write it before I researched the itr's and Bdy's.


    ASM-Code:
mov eax,dword ptr ds:[esi+edi*4+194h] ;Get object pointer
mov ecx,dword ptr ds:[eax+70h] ; get frame number and store in ecx
mov edx,dword ptr ds:[eax+368h] ; get "id" pointer and store in edx
imul ecx,ecx,178h ; multiply frame(ecx) by 178h
mov eax , dword ptr ds:[ecx+edx+8CCh] ;lets store the number of itrs in eax
 
cmp eax, 0 ;make sure there is atleast one itr, otherwise we will crash lf2
je skip
 
mov ecx, dword ptr ds:[ecx+edx+8d4h] ; load the pointer to the itr's
mov edx,0 ; lets use edx for our loop mechanisim to loop through all itrs
 
rawr:
cmp dword ptr ds:[ecx+28h], 1337 ;check if respond == 1337
jnz not_1337
; DO STUFF HERE IF respond == 1337
not_1337:
add ecx, 4Ch ;lets load the next itr in ecx 
cmp edx,eax ; check if there is a next itr
jl rawr ; process the next itr if there is one
 
skip:
....


That should work I guess :p


RE: About the "respond:" tag - NocturneSama - 03-20-2011

I'm still trying to understand all this "jump, ecx, edx, dword" thing. Trying to learn HEX, but all this cryptographed language is srot of bizarre.

I'm really impressed with guy like you and Nave, who accomplish to understand AND modify these stuff.


RE: About the "respond:" tag - TheNave - 03-20-2011

(03-20-2011, 07:02 PM)NocturneSama Wrote:  I'm really impressed with guy like you and Nave, who accomplish to understand AND modify these stuff.

fixed it for you

I also can't understand that stuff and without silvas help I wouldn't be able to do anything atall xD


RE: About the "respond:" tag - NocturneSama - 03-20-2011

But you did incredible modifications in NTSD 2, like the "charging button system" and the plataform system, didn't you?