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 


I have the names of 5 units. How to find them in memory?

 
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: 173

PostPosted: Sun Jun 14, 2020 10:13 pm    Post subject: I have the names of 5 units. How to find them in memory? Reply with quote

I need to find them all together. I can find them individually. But is there a way to scan them together so that i find the location in memory where they are grouped?

So lets say i have units:
13152BA8
0DCD2338
0DCD1E70
0DCD2900
003F1D20

How do i make a scan in memory where i can find them all together.
Because so far i could only locate them when i select them specifically.
But they must be located somewhere in memory where they are together, right?
Because the game must keep track of all the units that in the game?
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 97

Joined: 14 Jul 2007
Posts: 3327

PostPosted: Mon Jun 15, 2020 8:42 am    Post subject: Reply with quote

If you are sure these are the right pointers and the order is correct, simply use the group scan.
Back to top
View user's profile Send private message
LongBeardedLion
Expert Cheater
Reputation: 0

Joined: 10 Apr 2020
Posts: 173

PostPosted: Mon Jun 15, 2020 7:40 pm    Post subject: Reply with quote

I tried groupscan and i could not find them. Not even when i use only two unit object address and with 800 tolerance range. Is there a possibility that they are not listed together anywhere? The game is an old RTS, age of empires 2.
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 97

Joined: 14 Jul 2007
Posts: 3327

PostPosted: Tue Jun 16, 2020 1:59 am    Post subject: Reply with quote

LongBeardedLion wrote:
Is there a possibility that they are not listed together anywhere?

Sounds exactly like that.
Good luck!
Back to top
View user's profile Send private message
LongBeardedLion
Expert Cheater
Reputation: 0

Joined: 10 Apr 2020
Posts: 173

PostPosted: Tue Jun 16, 2020 5:34 am    Post subject: Reply with quote

wait csimbi Crying or Very sad

If they are not listed in there how should i proceed now?

Is there any alternative?
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 97

Joined: 14 Jul 2007
Posts: 3327

PostPosted: Tue Jun 16, 2020 6:00 am    Post subject: Reply with quote

Find the right pointers in the right order.
You got your first very step wrong.
Back to top
View user's profile Send private message
LongBeardedLion
Expert Cheater
Reputation: 0

Joined: 10 Apr 2020
Posts: 173

PostPosted: Tue Jun 16, 2020 7:12 am    Post subject: Reply with quote

YESS i found the values. Yet again Csimbi you made my day.
Not the most orthodox way but at least i can get them.
Very Happy Very Happy Very Happy

Here is what i did:

I created a scenario of just two units.

Found out the player object or what seems to be the player object.

Then i got the value of one unit object that is what points to the unit health. Thats easy.

Then i got another unit health and got its object. Subtracted one object from the other object and got the value 4c8.

Then i went on the player object searched for one of the unit objects. Then tried to find what was in the address if i added yet another 4c8 to my unit. And there was nothing there Sad . But then i got the light bulb emoji next to my head Idea Confused . And then instead of adding i subtracted and there it was the other unit object address.

Then i created a scenario of just 3 units, to confirm this 4c8 offset was the real thing. Then went on a normal game and saw each unit in the player object separated by 4c8.

So basically the unit objects are all in the player object separated by 4c8 offsets each time. Cool

Thanks again Csimbi
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