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 


Address of queued unit training bar timer/percentage?

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

Joined: 10 Apr 2020
Posts: 174

PostPosted: Fri Sep 04, 2020 6:45 am    Post subject: Address of queued unit training bar timer/percentage? Reply with quote

In Age of Empires 2 and most RTS, when you train a unit, there is a timer/percentage in the building that is time that will take for the unit to train.

So im trying to know where is this percentage that starts each time you queue a unit.

But i cant find it exactly.

All i can find is the percentage when you select a building. But not when the building is not selected. As if its just a display counter. So if i deselect the building the value defaults to 0.

Any tips?

Here is a screenshot with the percentage below in the bar in red:

https://gamefabrique.com/screenshots2/pc/age-of-empires-2-expansion-the-conquerors-03.big.jpg
Back to top
View user's profile Send private message
LongBeardedLion
Expert Cheater
Reputation: 0

Joined: 10 Apr 2020
Posts: 174

PostPosted: Sun Sep 06, 2020 1:22 pm    Post subject: Reply with quote

Bumpity bump?


BUMP BUMP Laughing Laughing
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sun Sep 06, 2020 10:56 pm    Post subject: Reply with quote

Few general ways of something like that being stored:

- 1 byte - 0 to 100
- 2-4 byte - 0 to 100 (wasted memory but depends on the game and such.)
- float - 0 to 100
- float - 0 to 1, where decimal value amounts are used. (ie. 0.5 = 50% etc)

If the game does any means of protection to the data as well, could be issues with that, such as adding more to the value while its stored, xor'ing it, etc.

If it's a value you can influence easily, best bet is to look for unknown and search for increased/decreased along with specifically for 0 when possible.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
LongBeardedLion
Expert Cheater
Reputation: 0

Joined: 10 Apr 2020
Posts: 174

PostPosted: Mon Sep 07, 2020 11:43 pm    Post subject: Reply with quote

Thank you.

I tried all your suggestions. None worked. It shows weird numbers. And none of them seem related.
I made the first search with unknown initial value.
Then i increase value as it increases the percentage.
I tried it as byte, float, 4 bytes. Nothing Sad Sad

What should i do? I really wanted to find this address.
Is there any other way?
I can make a video soon to show what is going on.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Sep 08, 2020 2:15 pm    Post subject: Reply with quote

Other things to check is, on the main window of CE be sure that the 'Writable' checkbox is half-checked.



Also you can try adjusting the memory scan settings in CE's options. For that, you'd want to try and enable 'MEM_MAPPED' regions.

Options > Scan Settings > Check MEM_MAPPED

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
LongBeardedLion
Expert Cheater
Reputation: 0

Joined: 10 Apr 2020
Posts: 174

PostPosted: Wed Sep 09, 2020 12:15 am    Post subject: Reply with quote

Thank you atomos. I found it.
But its the weirdest value storing i ever found.
Basically its a timer, that depends on the type of unit you are training.
For example, trebs in the castle are 0 to 50.
Whereas vils are 0-25. Why? Who knows Smile.
But the worst is yet to come :p.
This value changes each time you create a new unit.
So basically. There is a function that grabs a new random address out of nowhere, and starts the counter there.
I dont know how predictable that will be.
But i think i will get to do some work arounds and be able to patch it somehow.
A little injection there, with some if conditions, and probably i will be able to have some control over this.
Thank you so much.
Very Happy Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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