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 


Base address change at respawn

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

Joined: 10 Mar 2019
Posts: 18

PostPosted: Sat Apr 06, 2019 11:51 am    Post subject: Base address change at respawn Reply with quote

Hello everyone, I hope you knowledgeable CE folks can help me understand what happens in my game. I use CE to find good AoBs and base address in a flightsim. Once I have those I use scripts to read the values and display them in overlay guis. In other words: I grab flight-related data that players usually have no access to, and build my own gauges to display the data while flying.

I did several gauges using the AoB method, but for one I went for the base address approach since I didn't find any good AoBs.

The first pointer scan gave me around 3 million results with up to 8 or 9 offsets.
I restarted the game and did the second scan based on the first scan results and so on.
After 3-4 rounds I had 3 base addresses (6-level pointers) that seemed valid. I built my script using one of them.

When I spawn for the first time, the base address and offsets always lead me to the correct address. At respawn, however, the base and offsets point to the wrong address in 90 percent of cases (I also reload the script that finds and reads the address).

What in the world is happening here? Forgive my ignorance if this is ultra-trivial but I'm a newbie here.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Sun Apr 07, 2019 8:41 am    Post subject: Reply with quote

The pointers changed what they were pointing to. There's nothing magical or special about it; it's just what the game decided to do.

Scan for pointers again, but use another pointermap generated after a respawn.

You can also inject at a pointer to the value you're after if that makes for a better injection point.

_________________
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
Trisolaris
Newbie cheater
Reputation: 0

Joined: 10 Mar 2019
Posts: 18

PostPosted: Mon Apr 08, 2019 11:18 am    Post subject: Reply with quote

ParkourPenguin wrote:
Scan for pointers again, but use another pointermap generated after a respawn.


Thanks, I'll try that. In hindsight I guess that's why it was so damned hard to get the base address in the first place. Quite a few times the pointer scan results went from 300 million after the first scan to zero in the second or third round.

Can this be linked to the fact that the base addresses I found are in fact a module (sceneman.dll) + 6 levels of offsets?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Mon Apr 08, 2019 7:48 pm    Post subject: Reply with quote

Not really. It could be that the game carries references in ways CE's pointer scanner can't handle (e.g. dynamic offsets instead of static offsets).

You could try looking at machine code and see what the game is doing.

And again, injecting at a pointer to the value might also work. I remember doing that a long time ago for a flash game.

_________________
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
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