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 


Error with finding static address with offset.

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

Joined: 16 Apr 2023
Posts: 3

PostPosted: Sun Apr 16, 2023 11:46 pm    Post subject: Error with finding static address with offset. Reply with quote

Error with finding static address with offset. I don't understand what the problem is. To find values, I use the cheat engine. I found a pointer that never changes value after application restart and always gives the right address.

In cheat engine Finds and works without problems, but if I write code in c++, there all the values diverge. In the code itself Module and offset are correct, the values are the same. But in cheat engine itself Wrong values. Calculation does not match c++ program and logic in general. ScreenShot 1 ScreenShot 2

0x59040000 = Base Adress

0x0001B6B0 = Offset for Base Adress

Offsets to find the right address: 0x20 + 0x124 + 0x1C + 0x5C

0x59040000 + 0x0001B6B0 + 0x20 + 0x124 + 0x1C + 0x5C = 0x5905B86C

And if you look at the screenshots, it does not correspond to the logic of searching for an address. There value: 1C9ACB1C. What is the problem? I do not understand.

Tried to use 32bit and 64bit exe file. The base address of the module is found only on 32bit. Looked for static pointers many times, but everywhere the same result, they are correct and work in the Cheat Engine itself. But if I try to calculate values from outside with c++ and winapi code I have problems. Shocked Crying or Very sad Arrow Sad



Screenshot 2023-04-17 025726.jpg
 Description:
ScreenShot 2
 Filesize:  147.76 KB
 Viewed:  843 Time(s)

Screenshot 2023-04-17 025726.jpg



Screenshot 2023-04-17 025606.jpg
 Description:
ScreenShot 1
 Filesize:  55.39 KB
 Viewed:  843 Time(s)

Screenshot 2023-04-17 025606.jpg


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

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Mon Apr 17, 2023 12:35 am    Post subject: Reply with quote

http://forum.cheatengine.org/viewtopic.php?t=422516

In a 64-bit process, addresses are 8 bytes

_________________
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
toshaessential
How do I cheat?
Reputation: 0

Joined: 16 Apr 2023
Posts: 3

PostPosted: Mon Apr 17, 2023 12:53 am    Post subject: Reply with quote

ParkourPenguin wrote:


In a 64-bit process, addresses are 8 bytes


Thanks for the link and the information about the 8 bytes. I think when I'm working on a 64 bit process I'll need this.
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