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 


how does Adding Offsets Works?

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

Joined: 05 Dec 2019
Posts: 1

PostPosted: Thu Dec 05, 2019 3:12 pm    Post subject: how does Adding Offsets Works? Reply with quote

Hey Guys I'm Trying to learn more about CE Pointers.

I want to know how the adding offsets works. Example That CE shows me:

BASE ADRESS = 00792E70 + Offset 468 = 00BAC248

how is That possible?

In hex Calculator I get: 7932D8

I need to understand how does this adding works plz can some one explain me?
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 94

Joined: 14 Jul 2007
Posts: 3110

PostPosted: Thu Dec 05, 2019 3:34 pm    Post subject: Reply with quote

Did you go through the tutorial that ships with CE?
I'd highly recommend it.
You can cheat the tutorial with this.
This will help understanding pointers.

Hint: in your first one you seem to be dealing with an actual pointer, in your second one you clearly have an address.

People can come here, go through the trouble of registering with even trying to search for cheat engine pointer tutorial on google...
I am not surprised this planet is circling the drain...
People, God gave you a brain, use it!
Back to top
View user's profile Send private message
DanyDollaro
Master Cheater
Reputation: 3

Joined: 01 Aug 2019
Posts: 334

PostPosted: Thu Dec 05, 2019 4:34 pm    Post subject: Reply with quote

What you say is correct "0x792E70 + 0x468 = 0x7932D8" but in your case you are talking about a multilevel pointer, so it is a pointer that points to a pointer up to the desired value, i highlight the word "pointer that points to a pointer" because it is true that "0x792E70 + 0x468 = 0x7932D8" but what you see in Cheat Engine is something like:
Code:
[0x792E70 + 0x468] -> 00BAC248

in assembly the square brackets "[]" indicate that it is a pointer, also the character "->" is used in many programming languages ​​to indicate a pointer, so the expression is completed as follows:
Code:
[0x792E70 + 0x468] -> 00BAC248
[0x7932D8] -> 00BAC248
00BAC248 = 00BAC248

now if you go to see in the memory location pointed to by 0x7932D8 you will find the value 0xBAC248 because it is the case of a pointer pointing to a pointer
Note: in the Memory view the characters are written in little endian therefore on the pointed region from 0x7932D8 you will find this: 48 C2 BA 00
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