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
  • Try asking for help in the chatbox
  • Development Console


    MagicTurtle
     Share

    Recommended Posts

    Development Console

    I've found while developing scripts there are always small things I'd like to test. This has led me to working on a simple development console. 

     

    Current features

    • REPL 
    • Load script from file (useful when testing out more complicated parts of the API)
    • Should have everything you you need from the API in scope
    • Lists the available methods in the output when something it returned
    • Up and down to go through your history

    Todo

    • Simple syntax highlighting in the output
    • Add a watch file option to auto reload it if it changes
    • Ensure error messages are useful

    Screenshots

     

    Quote

    DevelopmentConsole-Alpha.png.98cba48a27b365cf4cb6a2a779e0a6d5.png

    Example testing out the Grand Exchange

    DevConsole.thumb.png.a33ed599383a417bf2a090b90bef5c40.png

     

    Currently I'm looking into getting this on the SDN. For now feel free to give any suggestions you may have and I'll look into adding them.

    Edited by MagicTurtle
    progress update
    Link to comment
    Share on other sites

    Turns out this probably won't be allowed on SDN. I'm going to move this over to being a local script. It will likely be in a day or two since I'm a bit busy at the moment. 

    Link to comment
    Share on other sites

    1 hour ago, MagicTurtle said:

    Turns out this probably won't be allowed on SDN. I'm going to move this over to being a local script. It will likely be in a day or two since I'm a bit busy at the moment. 

    Is that a JFrame?

    Link to comment
    Share on other sites

    Probably, are they not meant to be used? It's not the reason though, it's because of reflection and if that cant be used i doubt the use of the nashorn engine is allowed either. 

    Link to comment
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
     Share

    ×
    ×
    • 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.