View previous topic :: View next topic |
Author |
Message |
Tariusagi How do I cheat? Reputation: 0
Joined: 26 Jul 2021 Posts: 2
|
Posted: Mon Jul 26, 2021 1:27 am Post subject: Auto Assemble freeze ePSXe 2.0.5 with simple mov |
|
|
Hi,
I'm trying to keep handgun ammo stay full (18 bullets) in Resident Evil 2 on ePSXe 2.0.5. I use AOB Injection template, and change "mov [eax+ePSXe.exe+A82020],dl" to "mov byte ptr [eax+ePSXe.exe+A82020],18". But when I activated this script, the game seemed to hang or garbage was shown.
Did I do something wrong?
Here's my script:
Code: |
[ENABLE]
aobscanmodule(HandgunAmmo,ePSXe.exe,88 90 20 20 83 01) // should be unique
alloc(newmem,$1000)
label(code)
label(return)
newmem:
code:
mov byte ptr [eax+ePSXe.exe+A82020], 10 // Original: dl
jmp return
HandgunAmmo:
jmp newmem
nop
return:
registersymbol(HandgunAmmo)
[DISABLE]
HandgunAmmo:
db 88 90 20 20 83 01
unregistersymbol(HandgunAmmo)
dealloc(newmem)
|
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Mon Jul 26, 2021 4:15 am Post subject: |
|
|
That code likely also accesses other addresses
add in a filter so it only affects your specific address
_________________
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 |
|
|
Tariusagi How do I cheat? Reputation: 0
Joined: 26 Jul 2021 Posts: 2
|
Posted: Mon Jul 26, 2021 5:30 am Post subject: |
|
|
Thank you very much, I added filter code, and it works perfect now!
|
|
Back to top |
|
|
|