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 


Help please with using RAM address value as switch.

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

Joined: 14 Jun 2024
Posts: 2

PostPosted: Fri Jun 14, 2024 5:56 am    Post subject: Help please with using RAM address value as switch. Reply with quote

I would like to understand Cheat Engine well enough to Make if one RAM address changes to a certain value store a value to a different RAM address what would you recommend? It's for offline games.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4706

PostPosted: Fri Jun 14, 2024 11:23 am    Post subject: Reply with quote

The "correct" way is to set a break-on-write breakpoint at that address. In the breakpoint handler, check the value and write to the other address if desired.

Since hardware breakpoints are limited, you might want to do something else instead. If the other value doesn't need to be written to immediately and the ABA problem isn't a concern, you could use a timer.

Otherwise, use code injection. Getting the address of the other value in the injected code might be annoying. Perhaps use a pointer, or do an injection copy to a globalalloc symbol defined in both scripts (check if it's null before writing to it).
If multiple instructions write to the address, you may need to inject at all of them.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
xxphillips
How do I cheat?
Reputation: 0

Joined: 14 Jun 2024
Posts: 2

PostPosted: Fri Jun 14, 2024 1:19 pm    Post subject: Reply with quote

Thanks for reply ParkourPenguin.

God Bless
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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