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
  • Develop scripts using Intellij + Gradle


    SpinClass
     Share

    Recommended Posts

    Hey guys, I've made a Gradle plugin that should hopefully make developing scripts a little easier. If you're unfamiliar with Gradle, I'd suggest checking out their website, as it explains what Gradle does, why it's useful, etc.

    A guide for setting up a development environment with the plugin can be found at https://github.com/SpinClassRS/DreamBotPlugin/blob/master/README.md

    The plugin I've developed adds three Gradle tasks:

    • buildScript - Builds your script jar, puts it in the build/libs directory
    • runDreambot - Runs buildScript, copies the jar into DreamBot's Script directory and starts up DreamBot
    • updateDreambot - Downloads the latest DreamBot client and API jars, puts them into the libs/ directory

     

    This is the first time I've made anything like this, so if you have any comments, questions or suggestions let me know!

     

     

    Link to comment
    Share on other sites

    This is really great, thanks for the contribution. Works perfectly and definitely simplifies the entire process. This is my first time trying make my own script and I found this to be very easy to setup.

    Link to comment
    Share on other sites

    I am a programmer and want to start building my own scripts but was having a lot of trouble getting the client to read my script jars. This is the best, fastest, most helpful solution I have seen. Thanks.

    Link to comment
    Share on other sites

    • 1 month later...

    When I try to run updateDreambot, it says Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. and the com.spinclass.spinner is not created

    Link to comment
    Share on other sites

    21 minutes ago, orbox said:

    How do I update a script and test it without having to close down DreamBot and re-open/login?

    After you build, you just click refresh in the scripts section of the client and it will be up to date.

    Link to comment
    Share on other sites

    14 minutes ago, AsBakedAsCake said:

    After you build, you just click refresh in the scripts section of the client and it will be up to date.

    I have been pressing "buildScript" in Gradle then refreshing but it doesn't update. I've tested multiple times. My only solution is pressing runDreambot and just closing the client and using my pre-existing client to test.

    Link to comment
    Share on other sites

    Thanks for this tutorial to use grade with IntelliJ!

    I got this error after executing updateDreambot:

     

    > Task :updateDreambotClient FAILED
    Updating https://dreambot.org/DBLauncher.jar
    
    Execution failed for task ':updateDreambotClient'.
    > java.io.IOException: Server returned HTTP response code: 403 for URL: https://dreambot.org/DBLauncher.jar

    Any suggestions? I checked and the server does not return 403 when accessing via browser, or using wget to download the file.

    Link to comment
    Share on other sites

    On 5/7/2020 at 12:55 PM, 24h8rH9V9F said:

    Thanks for this tutorial to use grade with IntelliJ!

    I got this error after executing updateDreambot:

     

    > Task :updateDreambotClient FAILED
    Updating https://dreambot.org/DBLauncher.jar
    
    Execution failed for task ':updateDreambotClient'.
    > java.io.IOException: Server returned HTTP response code: 403 for URL: https://dreambot.org/DBLauncher.jar

    Any suggestions? I checked and the server does not return 403 when accessing via browser, or using wget to download the file.

    I got the same problem

    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.