Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Script not ending when hitting the square red stop button?


    epictetus

    Recommended Posts

    Posted

    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!

    Posted

    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.

    • 2 weeks later...
    Posted

    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.

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.