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 


Parent value to child address

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

Joined: 25 Feb 2016
Posts: 4

PostPosted: Sun Feb 28, 2016 11:53 pm    Post subject: Parent value to child address Reply with quote

Is it possible to add the value at a parent address to a child address? For example, the byte value at address 0x0970A7C7 is 42. I need to take that 42 and add it to 0x0970D974 on one label and 0x9710D85 on another label.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Mon Feb 29, 2016 2:37 am    Post subject: Reply with quote

freeze 0x9701d85 and set the value to
Code:
 
(description of entry with original value)

make sure you use the round braces ()

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

Joined: 25 Feb 2016
Posts: 4

PostPosted: Mon Feb 29, 2016 2:46 am    Post subject: Reply with quote

That just copies the value of one address to another. I need to take a value in one address and add it to another address. For 0x09710D85 it should end up as 0x09710DC7 after adding the 42 value from 0x0970A7C7. If the value at 0x0970A7C7 is 10, the address 0x09710D85 should end up as 0x09710D95.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Mon Feb 29, 2016 3:58 am    Post subject: Reply with quote

ok, I am assuming this is some kind of pointer thing?

then do the following: (this is going to be weird and actually using an feature that wasn't designed for this case)

to summarize:
you have an address in your table that holds another address as value
and you add a child entry to that entry that you wish to have as address that value+0x10
(I don't know why you don't just add a pointer with the address/path of the parent as base address, but ok...)

to do this:
create a new entry (just leave the address blank) and add it as child under the parent

now change the address of the child:
tick the pointer checkbox
give in as base address the address:
Code:

+0

set the offset to 10 (don't worry about the questionmarks)
click ok

the child will get as address P->parentvalue+10

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

Joined: 25 Feb 2016
Posts: 4

PostPosted: Mon Feb 29, 2016 4:23 am    Post subject: Reply with quote

The problem is that the value at 0x0970A7C7 isn't fixed. The game has several arrays at different locations for different stats. One array for health, another for magic, etc. Then it has another array that tells which characters are in the party and it offsets from the base address of the arrays by the character's ID number. And it's a DOS game played in DOSBox, so I'm already using pointers so the addresses come up properly after restarting.
Back to top
View user's profile Send private message
panraven
Grandmaster Cheater
Reputation: 62

Joined: 01 Oct 2008
Posts: 959

PostPosted: Mon Feb 29, 2016 7:40 am    Post subject: Reply with quote

May be this? Custom Symbol Lookup
http://forum.cheatengine.org/viewtopic.php?p=5642745#5642745

_________________
- Retarded.
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