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 - base address + address + offset

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

Joined: 08 May 2012
Posts: 2

PostPosted: Tue May 08, 2012 8:25 am    Post subject: Pointer - base address + address + offset Reply with quote

Ok I have a problem with adding address and offset on a base address..
This is what I get in CE... And as I have red, base address of the games is frequently 0x400000, and I got that programatically in code... "game.dat" has the base address of 0x400000.
Code:
http://s14.postimage.org/3w9z60gu9/ce_Ex1.jpg


so here is another picture where you can see that it is correct base address as the CE calculates the exact same address after adding the offset..
Code:
http://s8.postimage.org/ml8u4avo5/ce_Ex2.jpg


So, when I try to add those hex numbers I get both in calculator and programatically: 0x400000+0x063A8D4 = A3A8D4 + F8 = A3A9CC which is nowhere near the 009E6968 value which is the correct value I need..

My question is what is the correct algorithm for adding those hex values and getting the same value what CE gets..

Thanks in advance!
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25797
Location: The netherlands

PostPosted: Tue May 08, 2012 4:22 pm    Post subject: Reply with quote

you read the 4 byte value at A3A8D4 and add the value F8 to that result
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
frxgf
How do I cheat?
Reputation: 0

Joined: 08 May 2012
Posts: 2

PostPosted: Tue May 08, 2012 6:29 pm    Post subject: Reply with quote

Thank you DB! That worked like a charm... A bit confusing as memory library which i'm using returns byte[] in reversed order but that's not the problem.. Thanks again Very Happy
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