Page 1 of 1

Crashing when reloading scripts/tools

Posted: Wed Sep 09, 2015 8:41 pm
by ernpchan
Has anyone encountered crashing when they reloaded their tools/scripts? When I use my hotkey to reload my scripts ASP crashes out. It did this both with me launching ASP locally and over our network.

Unfortunately the crashing has now stopped but it was consistently crashing each time I reloaded my tools. I was doing some script testing so that's why I'm reloading.

Re: Crashing when reloading scripts/tools

Posted: Thu Sep 10, 2015 12:07 am
by synthsin75
Only if there is a fatal error in the script I'm working on.

Re: Crashing when reloading scripts/tools

Posted: Thu Sep 10, 2015 1:58 am
by ernpchan
Thanks. The script itself seems to work because ASP stopped crashing after awhile when I reloaded with the same script. I'll chalk it up to gremlins until I can reliably reproduce.

Re: Crashing when reloading scripts/tools

Posted: Thu Sep 10, 2015 10:57 am
by hayasidist
a few good ways to crash AS:

- have a layer script that has a runtime fatal error
- have a script with an infinite loop
- have two incompatible versions of the same menu or tool script
- update a script in such a way as to have incompatible values in Global variables as left over from the previous run
- ....

Re: Crashing when reloading scripts/tools

Posted: Thu Sep 10, 2015 7:55 pm
by ernpchan
Thanks hayasidist,

My script is really simple. Just printed out the name of the file and the path to the file. I'm just trying to get familiar with lua and getting relevant information from ASP.