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 


Addresses will only be formed if certain actions occur?

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

Joined: 26 Nov 2024
Posts: 5

PostPosted: Fri Dec 20, 2024 1:54 am    Post subject: Addresses will only be formed if certain actions occur? Reply with quote

Ok, so here i am trying making a script for emulator (pcsx2).
Not really a big problem though, but i think it might be a great way for me to extend my cheat table utility.

Some instruction only exist if the specific action had been performed, I've been wondering if it's possible to set a script automatically scan AOB when the AOB just created? Or are there any better solution for this case? So i don't need to make the corresponding action triggered first to activated the script. I alr googled but still i couldn't find anything related to what i wanted.

i.e: instruction of HP substract will be created if anyone got hitted. And of course the script I made to track the AOB couldn't be activated before someone got hit.

Here's the script i got for the HP substraction (just in case):
Code:
[ENABLE]
aobScanRegion(INJECT_Damage,[pcsx2-qt.eemem]+9000000,7FFFFFFFFFFF,29 FE 48 63 F6 89 D9 83 C1 20 89 74 0D 00 90 48 89 35)
alloc(Defense_newmem,$1000,INJECT_Damage)
label(return)

alloc(DamageMultiplier,4,INJECT_Damage)
registersymbol(DamageMultiplier)
DamageMultiplier:
  dd (float)1

Defense_newmem:
  sub esi,edi
  movsxd  rsi,esi
  jmp return

INJECT_Damage:
  jmp Defense_newmem
return:
registersymbol(INJECT_Damage)
registersymbol(Defense_newmem)

[DISABLE]

INJECT_Damage:
  db 29 FE 48 63 F6 89 D9 83 C1 20 89 74 0D 00 90 48 89 35

unregistersymbol(*)
dealloc(*)
Back to top
View user's profile Send private message  
Dark Byte
Site Admin
Reputation: 468

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

PostPosted: Fri Dec 20, 2024 1:58 am    Post subject: Reply with quote

For java and .net i have tools but for emulators you'll have to write your own code compile hooks and trigger your code when a particular emulator piece of code gets compiled into native code

You could use a lua script that constantly scans for the aob in a different thread until it finally succeeds

_________________
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 
ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions 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