Posted: Fri Jun 14, 2024 5:56 am Post subject: Help please with using RAM address value as switch.
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.
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.
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