Posted: Sat Sep 11, 2021 2:12 pm Post subject: Confusion about exact offset values for pointer addresses
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.
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.
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