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 With Pointer ?Scripts?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Devdraco
Cheater
Reputation: -1

Joined: 28 Aug 2008
Posts: 43

PostPosted: Mon Feb 08, 2016 8:43 pm    Post subject: Help With Pointer ?Scripts? Reply with quote

Hi. So, from the Cheat Engine tutorial I've never actually understood the way pointers work. I know that you have to find whatever writes to the address and if the address is green when scanned it usually means its not going to change or something like that. If anyone can help me better understand this, I would appreciate that.

Secondly, whenever I find values that I want to keep in my table, I find myself completely at a loss with how to write or find out how to write a script that will find the addresses for me again. I need help here, too, if anyone is willing to assist.

Where can I look for any of this information, and please point me in the right direction if you can.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4706

PostPosted: Mon Feb 08, 2016 10:56 pm    Post subject: Reply with quote

A brief summary of this topic:

A pointer is a type of data, just like an integer, float, double, string, etc...

While integers/floats/doubles store numbers and strings store characters, pointers store memory addresses. If the process you're working with is a 32-bit process, then pointers are 4 bytes long (32 bits). If it's a 64-bit process, then they're 8 bytes long (64 bits).

Static addresses (the green ones) are addresses that won't change what thing they're storing when you restart the process. However, the value that they store could (and usually does) change when you restart the process. For example, let's say a static address stores a pointer to the start of your player's structure, which is dynamically allocated. Because it's dynamically allocated, the location of your player's structure will almost certainly change when you restart the process, so the value of the pointer will change; however, because that pointer is static, the pointer's address won't change and can be used to find the player's structure along with anything inside it (e.g. health, ammo, etc) that's located a certain distance away from the start (aka the "offset" from the start).

Note that pointers can point to other pointers that point to even more pointers that eventually point to the value you're looking for. This is referred to as the "pointer path". The first address (aka "base address" or "base pointer") should be static if you want it to persist when you restart the process.


As for automatically populating the address list with addresses, refer to this topic for information on how to use the pointer scanner and how to use an AA script to get the address for you.

_________________
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
Devdraco
Cheater
Reputation: -1

Joined: 28 Aug 2008
Posts: 43

PostPosted: Tue Feb 09, 2016 12:00 am    Post subject: Reply with quote

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