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 


Confusion about exact offset values for pointer addresses

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

Joined: 11 Sep 2021
Posts: 6

PostPosted: Sat Sep 11, 2021 2:12 pm    Post subject: Confusion about exact offset values for pointer addresses Reply with quote

Hey all, I have pinned down a few offsets to read from for a new application I am working on. However, when I try and implement it in code by adding the offsets to the base address, I end up with a different value than what is listed in cheat engine. I went to an online tool for hex math and manually added up the values, and sure enough it doesn't seem to match? Am I missing something about the way these values are displayed in cheat engine? Will include a screenshot.

You can see it says
Code:
BASE + 0x01DD4358 + 0x78 + 0xC = 0x1B93BB92AFC


But if I run those same values through an online calculator, the final value I end up with
Code:
0x1B9642851B4


Thanks in advance for any help you can give!


EDIT: I think I see what I gotta do looking at it more closely. I gotta get the address pointed to by BASE + 78, then add the C offset to that new address.



asdf.png
 Description:
 Filesize:  16.05 KB
 Viewed:  737 Time(s)

asdf.png


Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4300

PostPosted: Sat Sep 11, 2021 6:16 pm    Post subject: Reply with quote

What CE actually says is [[game.exe + 0x01DD4358] + 0x78] + 0xC = 1B93BB92AFC.

The arrow symbol -> means "points to". e.g. the value of the pointer at the address game.exe+1DD4358 is 1B964285130.
1B964285130 + 78 = 1B9642851A8, which points to 1B93BB92AF0.
And finally 1B93BB92AF0 + C = 1B93BB92AFC.

Look up how pointers work in lower level languages (e.g. C/C++) for more information.

_________________
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