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 


AoE2 - Finding consistent basepointers to specific units

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Banjo Patterson
Cheater
Reputation: 1

Joined: 15 May 2018
Posts: 36

PostPosted: Thu May 24, 2018 5:17 pm    Post subject: AoE2 - Finding consistent basepointers to specific units Reply with quote

Hi everyone,

I've been having a play around with AoE2 recently, and I've managed to find the base pointer to the player's resources with no trouble. However, trying to locate the pointer to their town center has proved difficult, and I'm wondering if it possible? As I imagine this building doesn't particularly exist until it is created, so maybe a pointer is generated on the fly when that building is initialised?
If anybody could confirm or deny this for me that would be awesome. I've done some extensive pointer scanning (2000 address offset, 10 levels deep, whoops) and each time the pointer paths are all eliminated on reset of the game.
Any insight is greatly appreciated.

Thanks!

EDIT: After having a look around, ParkourPenguin mentioned a thread: forum cheatengine org viewtopic php t=572465 regarding injection copies that seems like it should hopefully work in this case, in case anyone else has the same question that I do.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4722

PostPosted: Thu May 24, 2018 8:46 pm    Post subject: Reply with quote

Consistent pointers don't have to exist- the game could dynamically calculate a reference to an object (and possibly cache it deep in the stack) if/when needed. A hash map is an obvious example, but this applies to other containers too. If the positions of elements in the container aren't consistent between games, any found pointers with nodes in the container will be invalidated.

Try to select the unit/building in question and then search for a pointer to the unit/building you've selected. Hovering your mouse over the unit/building might also work (set up hotkeys to pause the process if you do this; it helps to have your mouse when generating the pointermap).

Code injection is usually a better option; however, it requires basic knowledge of x86 / x86-64 architecture and CE's AutoAssembler.

_________________
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
Banjo Patterson
Cheater
Reputation: 1

Joined: 15 May 2018
Posts: 36

PostPosted: Thu May 24, 2018 9:13 pm    Post subject: Reply with quote

Thanks for your reply! I'll definitely give that a shot. Sounds good on the code injection side of things too, I'm getting pretty comfortable with ASM/AA so I'm looking forward to giving that a go.
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