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 


Pointer Help

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

Joined: 27 Dec 2015
Posts: 1

PostPosted: Sun Dec 27, 2015 6:47 pm    Post subject: Pointer Help Reply with quote

So im trying to make a Cheat Engine list for Sonic All Stars Racing Transformed as the file on viewtopic.php?t=562148&postdays=0&postorder=asc&start=30&sid=c1e5f8bfc003fb82381cd3e2c8cc0179 is outdated. Finding the addresses and changing the values are easy enough for me to follow, the problem I am having is doing the whole pointer thing so that i wont have to scan each time the game is running just to change the memory. The tutorials are all going straight over my head so any help would be greatly appreciated.

Edit: Forum rules would not allow me to post a URL so just add the line to the address after /forum/
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4717

PostPosted: Sun Dec 27, 2015 9:33 pm    Post subject: Reply with quote

If you're talking about this table, then the main problem you're having is that that script doesn't use pointers at all. It just replaces some instructions with NOPs (0x90) for most scripts, and it uses code injection for the "stall opps" script.

Here's a basic explanation of everything:
In reality, everything (health, ammo, etc) is just a bunch of numbers. It modifies these numbers using instructions from an assembly language (x86). To humans, instructions are shortened words and letters that represent actions (for example, mov eax,ebx takes the value in ebx and copies it into eax). To a computer, however, instructions are all just a bunch of bytes (for example, the byte representation of mov eax,ebx is 8B C3).

We can change what an application does by changing these instructions. In the aforementioned script, most of those scripts just replace instruction(s) with NOPs. NOP is an instruction that stands for No OPeration (byte representation is 90). So, if you take an instruction's bytes and replace all of them with 90, then you effectively remove that instruction. For example, if you replace the instruction that writes to your ammo with NOPs, you now have infinite ammo. If you look at the scripts, it should be pretty self-explanatory how to do this. Finding the instructions is the hard part.

Code injection is a bit more complicated than replacing an instruction with NOPs. In code injection, you basically replace some instruction(s) in the application with bytes that will make the program jump to code that you've written in memory you've allocated, then it jumps back to where it jumped from to continue running normally. CE does a lot of the work for you. Here's a tutorial on code injection:
http://forum.cheatengine.org/viewtopic.php?t=570083

If you want some practice with this, do the CE tutorial (located under the help menu in CE). It'll show you how to find values (you know this already), how to find instructions that access those values, and how to do a code injection on those values. If the tutorial doesn't spell out what you need to do well enough, try looking at this topic. There are also tons of YouTube videos covering the CE tutorial if you like watching videos more than reading text.

_________________
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
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