Posted: Thu Jan 28, 2021 4:11 pm Post subject: Adding address with an offset based on a pointer
Hello,
i am pretty new to this so please take it easy on me. I am using Cheat Engine 7.2.
I have found a pointer to my player object. Now if i manually take the address of the pointer and add the +170 as offset, i get the money and i can edit it.
My question is the following. Since i already know all the offsets that link to a specific child of my parent (pointer), is there a way to add a new address based on the pointer + the offset without having to do it all over again?
Add 170 ( 2524E879708 - 2524E879598 ) to the last offset (top of "change address" window). e.g. if the last offset is 0, set it to 170; if it's 1C, set it to 18C.
If you're adding multiple values in the player struct, make a new memory record, put the offset in the address field as "+170", and click and drag that new memory record onto the pointer memory record. _________________
I don't know where I'm going, but I'll figure it out when I get there.
Joined: 28 Jan 2021 Posts: 1 Location: Bradenton, FL
Posted: Thu Jan 28, 2021 4:36 pm Post subject:
You can add them as child items in the cheat table. Each CheatEntry element can have however many child CheatEntry items in the CheatEntries element. If you wanted to be able to refer to the base pointer with the offset you'd probably have to do an aobscan and for that address and then create a label and use the label with the offset.
Here's an example from the rerev2.ct:
Code:
<Address>pInventoryRaid+11*4</Address>
In order to use the pInventoryRaid label there's an AssemblerScript that allocates that memory with alloc and registers the symbol with registersymbol.
I think it's easier to just manually edit the cheat table file than it is to use the UI.
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