| View previous topic :: View next topic |
| Author |
Message |
gea99 How do I cheat?
Reputation: 0
Joined: 30 Dec 2023 Posts: 8
|
Posted: Sat Jan 06, 2024 3:13 pm Post subject: Crashing game when activate the script |
|
|
When I activate the scripts game crash
alloc(newmem2,2048)
label(returnhere2)
label(originalcode2)
label(exit2)
newmem2: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode2:
cmp [ecx+20],72656E45 //72656E45 is string converted in 4 bytes. Fully it 'EnergyPack' but in 4 bytes there is only Ener
je p:
nop
ret
p:
mov [ecx+54],6
ret
mov eax,[esi+54]
pop esi
ret 0004
exit2:
jmp returnhere2
"METAL GEAR RISING REVENGEANCE.exe"+5516EE:
jmp newmem2
nop 2
returnhere2:
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25838 Location: The netherlands
|
Posted: Sat Jan 06, 2024 5:47 pm Post subject: |
|
|
I guess the originalcode was?
| Code: |
mov eax,[esi+54]
pop esi
ret 0004
|
you just do ret instead of ret 4 and don't seem to set eax to the value of [esi+54]
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
gea99 How do I cheat?
Reputation: 0
Joined: 30 Dec 2023 Posts: 8
|
Posted: Sun Jan 07, 2024 7:21 am Post subject: |
|
|
It works with this code
cmp [ecx+20],72656E45
je p
nop
jmp h
p:
mov [ecx+54],6
jmp h
h:
mov eax,[esi+54]
pop esi
ret 0004
|
|
| Back to top |
|
 |
|