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 


Adding address with an offset based on a pointer

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

Joined: 28 Jan 2021
Posts: 3

PostPosted: Thu Jan 28, 2021 4:11 pm    Post subject: Adding address with an offset based on a pointer Reply with quote

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?

i.imgur. com/GXqDwou.png
i.imgur. com/asLggOw.png
i.imgur. com/iU43SVJ.png

Now maybe under the player the pointer address +170 for the money entry.


Best regards
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4702

PostPosted: Thu Jan 28, 2021 4:31 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Gundwn
How do I cheat?
Reputation: 0

Joined: 28 Jan 2021
Posts: 1
Location: Bradenton, FL

PostPosted: Thu Jan 28, 2021 4:36 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Skyrimfus
Cheater
Reputation: 1

Joined: 17 Mar 2016
Posts: 43

PostPosted: Thu Jan 28, 2021 4:37 pm    Post subject: Reply with quote

see attachment


kaFpd99Jdl.gif
 Description:
 Filesize:  202.49 KB
 Viewed:  6085 Time(s)

kaFpd99Jdl.gif


Back to top
View user's profile Send private message
Erwtas
How do I cheat?
Reputation: 0

Joined: 28 Jan 2021
Posts: 3

PostPosted: Thu Jan 28, 2021 5:03 pm    Post subject: Reply with quote

Wondeful thank you very much. I found another way as well that worked for me. Maybe worth mentioning:

If i copy the pointer and paste it, a pop up will come. If add the offset on the last entry "Adjust pointer last offset by" then it works as well.

i.imgur. com/zbdpeYr.png
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