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 


Crash on memory access

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

Joined: 08 Mar 2017
Posts: 59

PostPosted: Sat Mar 18, 2017 4:09 am    Post subject: Crash on memory access Reply with quote

Hi guys,

I am accessing a pointer by hooking into a function:

mov rcx,[rcx+030F2B48]
mov rcx,[rcx+D0]
mov rcx,[rcx+5B0]
mov rcx,[rcx+30]
mov rcx,[rcx+420]

Now this works 95% of the time but when loading a new level there is a a brief period where RCX+420 crashes the game, I look into RCX before this instruction is executed and it equals something like 61FC50 then when I do a dissect data structure it has nothing and just says 'Unamed Structure', so then when you try to +420 on that it crashes the game.

Is there anyway to check before the access to prevent the crash?
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 75

Joined: 29 Oct 2010
Posts: 3672

PostPosted: Sat Mar 18, 2017 9:53 am    Post subject: Reply with quote

Yes.
Back to top
View user's profile Send private message
sbryzl
Advanced Cheater
Reputation: 3

Joined: 25 Jul 2016
Posts: 97

PostPosted: Sat Mar 18, 2017 11:03 am    Post subject: Reply with quote

Checking if address is valid
http://forum.cheatengine.org/viewtopic.php?t=511049
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