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 


question about base player address

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

Joined: 29 Oct 2015
Posts: 35

PostPosted: Wed Jan 20, 2016 2:06 pm    Post subject: question about base player address Reply with quote

Hello everyone,

I got a question which i cannot solve regarding player base address. When i say player base address i mean its an address of which some constant offset will be same values, ie if base address id 21836000 than for example +540 offset of it will be always health value. So now obviously i want always be able to find that base player address, but where to get it ?
Is it correct to assume that when the player object is created it stored in memory and can be accessed in "whatEverGame.exe"+XXXXX way ? if so, how that "whatEverGame.exe"+XXXXX address can be found ?

Game in question is Bioshock.

Thanks a lot,
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4697

PostPosted: Wed Jan 20, 2016 3:10 pm    Post subject: Reply with quote

Either find a pointer to it (use the pointerscanner), or copy the base address of the structure by hooking some instruction that accesses something in the structure ("injection copy").
http://forum.cheatengine.org/viewtopic.php?t=572465

_________________
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
thefreestyle
Cheater
Reputation: 0

Joined: 29 Oct 2015
Posts: 35

PostPosted: Wed Jan 20, 2016 3:18 pm    Post subject: Reply with quote

Hey ParkourPenguin

Thank you for reply,

1. How can i use pointer in auto assembly script ?
2. Can you please explain what you mean by "hooking some instruction that accesses something in the structure ("injection copy")" ?

thanks for helping ...

Edit : 2. You mean use some instruction that using the base player address and then "globalalloc" it ?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4697

PostPosted: Wed Jan 20, 2016 4:15 pm    Post subject: Reply with quote

1.
Code:
...
mov eax,["Game.exe"+1234] // gets static base address, reads it into eax
mov eax,[eax+23C]         // adds offset 1, reads it into eax
mov eax,[eax+D4]          // adds offset 2, reads it into eax
...
// do this until you're at the base of the structure

2. Open that topic I linked to previously and scroll down to the part that says "Injection Copies". It explains what to do quite well.

_________________
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
thefreestyle
Cheater
Reputation: 0

Joined: 29 Oct 2015
Posts: 35

PostPosted: Fri Jan 22, 2016 8:26 pm    Post subject: Reply with quote

Ok, i got it work both ways, thanks a lot !!!
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