| View previous topic :: View next topic |
| Author |
Message |
LongBeardedLion Expert Cheater
Reputation: 0
Joined: 10 Apr 2020 Posts: 173
|
Posted: Sun Jun 14, 2020 10:13 pm Post subject: I have the names of 5 units. How to find them in memory? |
|
|
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 |
|
 |
Csimbi I post too much
Reputation: 97
Joined: 14 Jul 2007 Posts: 3327
|
Posted: Mon Jun 15, 2020 8:42 am Post subject: |
|
|
| If you are sure these are the right pointers and the order is correct, simply use the group scan.
|
|
| Back to top |
|
 |
LongBeardedLion Expert Cheater
Reputation: 0
Joined: 10 Apr 2020 Posts: 173
|
Posted: Mon Jun 15, 2020 7:40 pm Post subject: |
|
|
| 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 |
|
 |
Csimbi I post too much
Reputation: 97
Joined: 14 Jul 2007 Posts: 3327
|
Posted: Tue Jun 16, 2020 1:59 am Post subject: |
|
|
| LongBeardedLion wrote: | | Is there a possibility that they are not listed together anywhere? |
Sounds exactly like that.
Good luck!
|
|
| Back to top |
|
 |
LongBeardedLion Expert Cheater
Reputation: 0
Joined: 10 Apr 2020 Posts: 173
|
Posted: Tue Jun 16, 2020 5:34 am Post subject: |
|
|
wait csimbi
If they are not listed in there how should i proceed now?
Is there any alternative?
|
|
| Back to top |
|
 |
Csimbi I post too much
Reputation: 97
Joined: 14 Jul 2007 Posts: 3327
|
Posted: Tue Jun 16, 2020 6:00 am Post subject: |
|
|
Find the right pointers in the right order.
You got your first very step wrong.
|
|
| Back to top |
|
 |
LongBeardedLion Expert Cheater
Reputation: 0
Joined: 10 Apr 2020 Posts: 173
|
Posted: Tue Jun 16, 2020 7:12 am Post subject: |
|
|
YESS i found the values. Yet again Csimbi you made my day.
Not the most orthodox way but at least i can get them.
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 . But then i got the light bulb emoji next to my head . 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.
Thanks again Csimbi
|
|
| Back to top |
|
 |
|