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 


Relative Address using other as base?

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

Joined: 25 Jun 2017
Posts: 5

PostPosted: Sun Jun 25, 2017 7:21 pm    Post subject: Relative Address using other as base? Reply with quote

It's possible something like this?
u.nya.is/ukfsxe.png

I want save address relative to other, to when the address change i don't need update everyting...
I know about pointer but this isn't what i want.
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Mon Jun 26, 2017 6:30 am    Post subject: Reply with quote

Hm, other than a common pointer base the only thing I can think of right now is

http://forum.cheatengine.org/viewtopic.php?p=5727737

meaning you could add a function like this to the Table->Show Cheat Table Lua Script (and execute it)
Code:
function mrAddr(desc)
  return getAddressList().getMemoryRecordByDescription(desc).CurrentAddress
  -- note, only CurrentAddress worked when I tested this... Address gave an incorrect address
end


And then for the address of "Wander Gravity: Z" you could use mrAddr('Wander Pos: Y')-C0 (note that using double quotes mrAddr("...") did not seem to work).

Keep in mind
Dark Byte wrote:
[it] won't be updated realtime unless you manually call reinterpret
so if Pos: Y was based on a pointer and the address for it changed, then Gravity: Z would not change unless you right clicked used "Force recheck symbols" or wrote a lua timer to occasionally call reinterpret on the Gravity Z memory record.


If it was a child like "Agro Pos: X" and "Agro Coordinates" had an address then the address of the x pos could just be -C0 and it'd be interpreted as "Agro Coordinates" address - C0.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Mon Jun 26, 2017 6:52 am    Post subject: Reply with quote

use a parent child setup
the parent has the base address and set the child addresses to
Code:

-10

Code:

+0

Code:

+10


etc...

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

Joined: 25 Jun 2017
Posts: 5

PostPosted: Mon Jun 26, 2017 4:23 pm    Post subject: Reply with quote

Both reply is good, thank you friends.
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 Tutorials 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