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 


Test For Unregistered Symbol/Invalid Memory Address

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
abystus
Expert Cheater
Reputation: 1

Joined: 09 Dec 2010
Posts: 140

PostPosted: Sat Jan 30, 2016 5:53 pm    Post subject: Test For Unregistered Symbol/Invalid Memory Address Reply with quote

Lets say you have a registered symbol in a parent script that is used in a child script, but you unregister the symbol in the [DISABLE] of the parent and the game crashes due to the memory location no longer being valid for the child. Is there a way to check the symbol and exit the child if it is no longer valid to prevent the error? Or is it possible to get the child to deactivate before the parent when using "Deactivating this entry deactivates its children."? Any help is appreciated.
_________________
Hitler are you bored? Watch some of my hacks here. Want 2 gb of online storage space for free? Get Dropbox for computer, phone, etc...
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sat Jan 30, 2016 6:22 pm    Post subject: Reply with quote

Have you tried using globalalloc?

Alternatively, you could combine the scripts or use a conditional jump and check if data is present.
Back to top
View user's profile Send private message
abystus
Expert Cheater
Reputation: 1

Joined: 09 Dec 2010
Posts: 140

PostPosted: Sat Jan 30, 2016 6:27 pm    Post subject: Reply with quote

++METHOS wrote:
Have you tried using globalalloc?

Alternatively, you could combine the scripts or use a conditional jump and check if data is present.


I have not. If I use globalalloc should I just not dealloc it in the disable of the parent script? Sorry never used globalalloc, but from what I see it reuses the same spot and doesn't reallocate it if it already exists. Thanks for the quick response.

_________________
Hitler are you bored? Watch some of my hacks here. Want 2 gb of online storage space for free? Get Dropbox for computer, phone, etc...
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sat Jan 30, 2016 6:33 pm    Post subject: Reply with quote

I believe there is no need to deallocate it.

I haven't tried it, but there is also this for checking if data is good (in lieu of just 0):
http://forum.cheatengine.org/viewtopic.php?p=5004037#5004037
Back to top
View user's profile Send private message
abystus
Expert Cheater
Reputation: 1

Joined: 09 Dec 2010
Posts: 140

PostPosted: Sat Jan 30, 2016 6:36 pm    Post subject: Reply with quote

++METHOS wrote:
I believe there is no need to deallocate it.

I haven't tried it, but there is also this for checking if data is good (in lieu of just 0):
http://forum.cheatengine.org/viewtopic.php?p=5004037#5004037


Just tried it and works like a charm. Thanks so much (saved me having a huge headache)!

_________________
Hitler are you bored? Watch some of my hacks here. Want 2 gb of online storage space for free? Get Dropbox for computer, phone, etc...
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