Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Auto Assemble freeze ePSXe 2.0.5 with simple mov

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Tariusagi
How do I cheat?
Reputation: 0

Joined: 26 Jul 2021
Posts: 2

PostPosted: Mon Jul 26, 2021 1:27 am    Post subject: Auto Assemble freeze ePSXe 2.0.5 with simple mov Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Mon Jul 26, 2021 4:15 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Tariusagi
How do I cheat?
Reputation: 0

Joined: 26 Jul 2021
Posts: 2

PostPosted: Mon Jul 26, 2021 5:30 am    Post subject: Reply with quote

Thank you very much, I added filter code, and it works perfect now!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites