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 


Number of barracks made

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

Joined: 19 Feb 2015
Posts: 28

PostPosted: Thu Jul 23, 2015 5:02 am    Post subject: Number of barracks made Reply with quote

I am searching in Age of Empires 2 for a variable that holds the number of barracks that I have on the map.

Age of empires usually stores values in floats, however no float was storing that particular value.

I tried 4bytes type and I narrow it down to 2 addresses that sore the value I want.

Then I click what accesses this address

Then I make one new barrack

Then I look at the debugger and none of the pointers I find with or without the offset have the value I want (2 or 3 or 4 or 5)

All the pointers with or without the offset point to a value 0 out of all 27 addresses found!

Look at a screenshot from the debugger

Is it possible that the debugger gives me something wrong?
What should I change/do?



pointers2.png
 Description:
 Filesize:  590.9 KB
 Viewed:  2737 Time(s)

pointers2.png


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Thu Jul 23, 2015 5:06 am    Post subject: Reply with quote

The offset is 2*c+abc (or 113ee06c-113ed598)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
kanakis
Cheater
Reputation: 0

Joined: 19 Feb 2015
Posts: 28

PostPosted: Thu Jul 23, 2015 10:03 am    Post subject: Reply with quote

I am coming to an understanding that this value is not stored anywhere which hurts my automation a lot.

I need to find a way to keep track of how many town centers, barracks, stables, archeries I have even if I have to change this value manually once I am building one in game.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Thu Jul 23, 2015 10:40 am    Post subject: Reply with quote

As Dark Byte showed, your offset is not simply ABC. It's eax*2+ABC.
From your screenshot, the offset you want is AD4.
Back to top
View user's profile Send private message
kanakis
Cheater
Reputation: 0

Joined: 19 Feb 2015
Posts: 28

PostPosted: Thu Jul 23, 2015 1:03 pm    Post subject: Reply with quote

Zanzer wrote:
As Dark Byte showed, your offset is not simply ABC. It's eax*2+ABC.
From your screenshot, the offset you want is AD4.


yes I tried that. I got the hex calculator and got AD4.

the next offset was wrong.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Thu Jul 23, 2015 1:25 pm    Post subject: Reply with quote

What next offset? That was the last offset and takes you right to your 2-byte value.
Back to top
View user's profile Send private message
kanakis
Cheater
Reputation: 0

Joined: 19 Feb 2015
Posts: 28

PostPosted: Thu Jul 23, 2015 2:41 pm    Post subject: Reply with quote

Zanzer wrote:
What next offset? That was the last offset and takes you right to your 2-byte value.


The next offset was not giving the correct value, I don't remember what it was.

I tried it again, and now the game crashes at the second pointer debug.

I am going to give it one last try with "pointer scan for this address" although last time I tried that the result was 0 pointers found.

EDIT: I mean I am supposed to find a pointer like this:

game.exe + something + something + something

I find the first pointer correctly. Next pointer the client crashes.

EDIT: 2

to clarify this is what happens after I find the first pointer, and try to find the next one (the goal is to find game.exe + something)

see screenshot



pointer 3.png
 Description:
 Filesize:  609.4 KB
 Viewed:  2595 Time(s)

pointer 3.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