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 do i reverse a pointer? From final address obtain 1st:

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

Joined: 10 Apr 2020
Posts: 174

PostPosted: Sun Sep 13, 2020 12:14 am    Post subject: How do i reverse a pointer? From final address obtain 1st: Reply with quote

I have an address of a building where a unit is working on.

So i can know what building my unit is working on if i have my unit address.

in this case:

My building is: 20681AE8

My unit is: 1FE60020

And i have the pointer to it.
But the challenge is. Instead of finding the Building from the Unit.

I need to find the Unit having the address of the Building.

So lets say i dont know about !FE60020 (The unit).

But i know all those offsets lead to the Building from the unit.

1FE60020+130+8+0+10+0

Having 20681AE8, and those offsets that lead to 20681AE8, is there a way to go the other way around, and find 1FE60020?

Pls help.

Image:

Edit:

Ops site is not uploading.
imgur:

https://i.imgur.com/sXEpW5T.png
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4724

PostPosted: Sun Sep 13, 2020 10:14 am    Post subject: Reply with quote

No. Pointers aren't bidirectional, and depending on how the game was written, a pointer path from somewhere in the unit structure to the building might not exist. (you could try a pointer scan to verify this)

I guess you could try a pointer scan for the unit, but doing that constantly would be ridiculous.
It would be more reasonable to find the container that holds the buildings and iterate over them searching for the unit.

_________________
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
LongBeardedLion
Expert Cheater
Reputation: 0

Joined: 10 Apr 2020
Posts: 174

PostPosted: Sun Sep 13, 2020 2:23 pm    Post subject: Reply with quote

Thats exactly what i will do. Just make a loop that gets all units and then another loop that checks for the building im looking for that is contained in the unit.

thank you Twisted Evil Razz Arrow Arrow Arrow
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