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 


Variable offset problem

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Kuwaga
Newbie cheater
Reputation: 0

Joined: 21 Apr 2012
Posts: 11

PostPosted: Mon Apr 23, 2012 1:08 pm    Post subject: Variable offset problem Reply with quote

I have the following problem:
All of the values I'm interested in are stored in a memory region and the pointer to the beginning of the region is found at "game.exe+x". So for all the values I'm modifying I use this pointer with varying offsets. But inside that memory region there are certain variables that will often change its location while the game is running and I have trouble adjusting to this, even though I've already found where the offset is stored that I could use to solve this.

The internal offset o is stored at [game.exe+x] at an offset y. The variable I'm interested in is found at [game.exe+x] with an offset z + o.
How can I setup Cheat Engine so it will use this offset in the RAM watch table?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Mon Apr 23, 2012 1:43 pm    Post subject: Reply with quote

Most likely it's a pointer to a pointer to a value
or a pointer to a pointer to a pointer to a value
...

Just add multiple offsets (do some debugging or a pointerscan, or use a signature scan instead)

_________________
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
Kuwaga
Newbie cheater
Reputation: 0

Joined: 21 Apr 2012
Posts: 11

PostPosted: Mon Apr 23, 2012 2:54 pm    Post subject: Reply with quote

No, it's pointer+offset b+[pointer+offset a], pointer being the same pointer
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Mon Apr 23, 2012 3:01 pm    Post subject: Reply with quote

If you know exactly how it's done then use lua.
Create a function that calculates the address using readInteger and then registers the result as a symbol
Then add an address with that symbolname so you can set the values like any ordinary table entry
And i recommend a timer that executes that lua function every few seconds

_________________
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
Kuwaga
Newbie cheater
Reputation: 0

Joined: 21 Apr 2012
Posts: 11

PostPosted: Mon Apr 23, 2012 3:11 pm    Post subject: Reply with quote

Ah thanks, that should work.
Edit: Yep, it worked.
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