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 to make parent in cheat engine base address?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
grasmanek94
Master Cheater
Reputation: 0

Joined: 03 Jun 2008
Posts: 283
Location: The Netherlands

PostPosted: Tue Mar 04, 2014 1:46 pm    Post subject: How to make parent in cheat engine base address? Reply with quote

I have pointers for different players and the offsets are the same for eacht property, so I have grouped all addresses into headers, but is there a way to define a base adress in the header so I don't have to update ALL base addresses (and sometimes offsets... because player 2 has base address of player one but double offsets)

Like:

[Header 1 Name = "Player 1" Base Address = "0x00000010"]
[Health] -> HeaderBaseAddress+Offset
[Header 2 Name = "Player 2" Base Address = "0x00000020"]
[Health] -> HeaderBaseAddress+Offset

?
Back to top
View user's profile Send private message
Rydian
Grandmaster Cheater Supreme
Reputation: 31

Joined: 17 Sep 2012
Posts: 1358

PostPosted: Tue Mar 04, 2014 3:30 pm    Post subject: Reply with quote

I don't think headers can do that unless the header is a script. What I do nowadays is make a script that sets the bases to specific addresses.

Code:
[ENABLE]
aobscan(player, A8 1E ?? 0? 00 00 00 00 00 00 00 00 28 12 ?? 03 00 00 00 00 8? 00 00 00 5? 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00)
label(_player)
registersymbol(_player)

player:
_player:

[DISABLE]
unregistersymbol(_player)
(In this case from an aobscan.)

Then in the child entries, I tell them that the base address is _player, then I can simply update the script that sets _player and it'll change the base for every entry that uses it.

_________________
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Tue Mar 04, 2014 6:17 pm    Post subject: Reply with quote

@grasmanek94: in cheat engine, select the records for player 1, press ctrl+c, paste in notepad, search and replace the base addresses/offsets/descriptions here, and copy-paste back in cheat engine.

Or you could also make a lua script that takes all entries under a given header and copies them under a new header, making some fixes in the process.

_________________
DO NOT PM me if you want help on making/fixing/using a hack.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Tue Mar 04, 2014 6:39 pm    Post subject: Reply with quote

Instead of giving the children of parent exact addresses give them relative addresses

So add as address 00400500, and then add 4 children under them
give them as address +10, +20 , +30 and +40

they will get as address 00400510, 00400520, 00400530 and 00400540

when you change the parent address, the children change as well
this also works with pointers

and you can copy and then paste those children under another parent. (just select and drag them after paste as paste will paste them as main entries)

_________________
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
grasmanek94
Master Cheater
Reputation: 0

Joined: 03 Jun 2008
Posts: 283
Location: The Netherlands

PostPosted: Tue Mar 04, 2014 6:42 pm    Post subject: Reply with quote

Dark Byte wrote:
Instead of giving the children of parent exact addresses give them relative addresses

So add as address 00400500, and then add 4 children under them
give them as address +10, +20 , +30 and +40

they will get as address 00400510, 00400520, 00400530 and 00400540

when you change the parent address, the children change as well
this also works with pointers

and you can copy and then paste those children under another parent. (just select and drag them after paste as paste will paste them as main entries)


This.
Is.
Epic!

Big life saver, thanks!
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