Jump to content

Welcome to DreamBot!

Download for Free

Supercharge Your Bots

Run unlimited bots today using DreamBot's Covert Mode and
stay more protected.

Upgrade Now
Frequently Asked Questions
  • Are you not able to open the client? Make sure you have Java 8 installed
  • 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 gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
OSRS Gambling

Interested in advertising your business? Reach out today!

Download the DreamBot client today!
SpinClass

Develop scripts using Intellij + Gradle

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!

 

 

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...