View previous topic :: View next topic |
Author |
Message |
abystus Expert Cheater Reputation: 1
Joined: 09 Dec 2010 Posts: 140
|
Posted: Sat Jan 30, 2016 5:53 pm Post subject: Test For Unregistered Symbol/Invalid Memory Address |
|
|
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 |
|
|
++METHOS I post too much Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sat Jan 30, 2016 6:22 pm Post subject: |
|
|
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 |
|
|
abystus Expert Cheater Reputation: 1
Joined: 09 Dec 2010 Posts: 140
|
Posted: Sat Jan 30, 2016 6:27 pm Post subject: |
|
|
++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 |
|
|
++METHOS I post too much Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
|
Back to top |
|
|
abystus Expert Cheater Reputation: 1
Joined: 09 Dec 2010 Posts: 140
|
Posted: Sat Jan 30, 2016 6:36 pm Post subject: |
|
|
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 |
|
|
|