epictetus 0 Posted July 10, 2018 Hi guys. I'm having this annoying problem where my scripts won't stop running even after I hit the red square stop button. This makes it hard for me to make changes to my script, recompile it, then re-run it, and is forcing me to restart the client every time I want to test a change to the script. I've overridden the onExit method of AbstractScript to call System.exit(0), but that doesn't seem to be fixing the problem. Thoughts? Thanks in advance!
Articron 746 Posted July 10, 2018 Likely this is due to an infinite-loop (are you using while loops in your script) in your script, causing it to get stuck on that piece of code. The script won't stop before it reaches the end of your onLoop.
Snout 0 Posted July 18, 2018 Have you experienced this before? These are the only logical steps I can think of: - Check the return position and value of your onLoop. - Check for infinite loops - Check Overrides - Try logging your onExit and check the console for any errors - Remove the DreamBot folder and reinstall.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.