Posted: Mon Feb 08, 2021 2:37 pm Post subject: Multiple AOB Scans in a single Script
I am a still a bit new to CheatEngine and Assembly in general so bear with me on this one. I have a game that drains a Stamina value whenever the player is running and jumping. When tracking the Stamina value, I noticed that doing different actions (ie, running, running on stairs and jumping) subtracts the Stamina value but in different locations in memory. So this leads to multiple AOB Scans and Injections in multiple areas. I created a single script to reflect this, however the programmer in me feels like there should be a better way to do this. Can you look at my script and let me know if there is a more efficient way to do this?
I tried pointer scans instead for the value but this is a Unity game and pointer scans are a nightmare.
One more question: when I use the CheatEngine Template for AOB scans, there is always a memory allocation line: alloc(newmem, INJECT). is this allocation even necessary if I am basically just nop'ing a line? what purpose does allocating memory here serve?
Sorry for the newb questions, I feel like I should probably already know this but Assembly has never been my forte. I appreciate any answers, suggestions and guidance.
Whether or not there's an "easier" way to do this depends on how the game is programmed. Probably not worth looking into IMO- could take too much effort.
No need to allocate any memory if you're just noping instructions. I'd actually use nops and reorganize registersymbol(...):
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