[solved] where to find x and y coodinate - mda - 04-02-2009
hey guys where can i find x and y coodinate of this things in the OllyDbg,need help
start game
control setting
network
RE: where to find x and y coodinate - Silverthorn - 04-03-2009
You know, when you start LF2, you'll get a screen where you can choose between "Start Game", "Network Game", and "Control Settings". He wants know where he can find the coordinates for that menu aka. wants to move it. Well, have fun...
RE: where to find x and y coodinate - Boop - 04-03-2009
Code: 00427991 . 56 PUSH ESI ; /Arg6
00427992 . 53 PUSH EBX ; |Arg5
00427993 . 6A 01 PUSH 1 ; |Arg4 = 00000001
00427995 . 53 PUSH EBX ; |Arg3
00427996 . 81C5 CA000000 ADD EBP,0CA ; |
0042799C . 55 PUSH EBP ; |Arg2
0042799D . 68 07010000 PUSH 107 ; |Arg1 = 00000107
004279A2 . E8 59770100 CALL lf2_pers.0043F100 ; \lf2_pers.0043F100
Changing ADD EBP,0CA changes Y cord.
PUSH 107 is the x cord. The problem is if you change the x cord, you don't change where the highlighted version appears.
Code: 00427A47 . 8B0D A0114500 MOV ECX,DWORD PTR DS:[4511A0]
00427A4D . 56 PUSH ESI ; /Arg6
00427A4E . 53 PUSH EBX ; |Arg5
00427A4F . 57 PUSH EDI ; |Arg4 => 00000001
00427A50 . 6A 07 PUSH 7 ; |Arg3 = 00000007
00427A52 . 83C5 0D ADD EBP,0D ; |
00427A55 . 55 PUSH EBP ; |Arg2
00427A56 . 68 15010000 PUSH 115 ; |Arg1 = 00000115 ; X cord
00427A5B . E8 A0760100 CALL lf2_pers.0043F100 ; \lf2_pers.0043F100
00427A60 . 391D 60D04400 CMP DWORD PTR DS:[44D060],EBX
00427A66 . 0F85 98020000 JNZ lf2_pers.00427D04
00427A6C . 393D 80754500 CMP DWORD PTR DS:[457580],EDI
00427A72 . 0F85 8C020000 JNZ lf2_pers.00427D04
00427A78 . 53 PUSH EBX
00427A79 . B9 10564500 MOV ECX,lf2_pers.00455610
00427A7E . 891D 80754500 MOV DWORD PTR DS:[457580],EBX
00427A84 . E8 A79FFDFF CALL lf2_pers.00401A30
00427A89 . 8B4424 18 MOV EAX,DWORD PTR SS:[ESP+18]
00427A8D . C605 BF534500 >MOV BYTE PTR DS:[4553BF],75
00427A94 . 891D 64D04400 MOV DWORD PTR DS:[44D064],EBX
00427A9A . 8938 MOV DWORD PTR DS:[EAX],EDI
00427A9C . E8 5FB0FFFF CALL lf2_pers.00422B00
00427AA1 . 56 PUSH ESI
00427AA2 . 68 60D04400 PUSH lf2_pers.0044D060
00427AA7 . 893D 4C0B4500 MOV DWORD PTR DS:[450B4C],EDI
00427AAD . C705 500B4500 >MOV DWORD PTR DS:[450B50],2
00427AB7 . C705 540B4500 >MOV DWORD PTR DS:[450B54],3
00427AC1 . C705 580B4500 >MOV DWORD PTR DS:[450B58],4
00427ACB . E8 B0C0FFFF CALL lf2_pers.00423B80
00427AD0 . 83C4 08 ADD ESP,8
00427AD3 . E9 D60C0000 JMP lf2_pers.004287AE
00427AD8 > 83F9 02 CMP ECX,2
00427ADB . 0F85 0D010000 JNZ lf2_pers.00427BEE
00427AE1 . E8 1AB0FFFF CALL lf2_pers.00422B00
00427AE6 . 8B4C24 14 MOV ECX,DWORD PTR SS:[ESP+14]
00427AEA . 56 PUSH ESI ; /Arg6
00427AEB . 53 PUSH EBX ; |Arg5
00427AEC . 57 PUSH EDI ; |Arg4
00427AED . 6A 08 PUSH 8 ; |Arg3 = 00000008
00427AEF . 51 PUSH ECX ; |Arg2
00427AF0 . 8B0D A0114500 MOV ECX,DWORD PTR DS:[4511A0] ; |
00427AF6 . 68 15010000 PUSH 115 ; |Arg1 = 00000115 X cord
00427AFB . E8 00760100 CALL lf2_pers.0043F100 ; \lf2_pers.0043F100
You'll have to go and manually patch all the X cords. That is only for "game start" and "network game" you'll have to search for the rest your self. They all follow the same format.
Edit: just noticed, that if you change the image position where they appear, the "selection box" doesn't move.
To move it you have to edit this:
Code: 004279AE . 3D 14010000 CMP EAX,114
004279B3 . 891D E0114500 MOV DWORD PTR DS:[4511E0],EBX
004279B9 . 0F8C 45030000 JL lf2_pers.00427D04
004279BF . 3D 08020000 CMP EAX,208
004279C4 . 0F8F 3A030000 JG lf2_pers.00427D04
RE: where to find x and y coodinate - mda - 04-04-2009
thanks for that ....silva and Blue Phoenix
|