-
-
Notifications
You must be signed in to change notification settings - Fork 11
Running the Development Version From Source
If you have not done so already, please follow the Running the Plugin From Source guide first. This will walk you through setting up the basic development environment needed to run any branch of this repository from the source code.
We like to keep our master branch as stable as possible, so impending updates to the plugin will most likely be found in our development branch.
If you've just followed our guide on Running the Plugin From Source, your editor should by default be set to use the development branch.
You can check to see if you are on the correct branch in the bottom-right corner of your Intellij IDEA window.
It should be set to the develop
branch.
If it is set to the master
branch, simply click on master
in the bottom-right corner of your window, click on develop
under Local Branches
, and then select Checkout and Rebase onto Current
.
By default the plugin is set to use resources from our production API. This is normally fine, but often as we make changes to our development branch it necessitates altered functionality of the API. We do not want to risk breaking the version of the latest release of the plugin on RuneLite's Plugin Hub, so we have a separate instance of the API running for developer testing. It is HIGHLY recommended that you set your development environment to utilize the developer API address to be able to have the development version of the plugin operate correctly.
Navigate to the top of your editor and find the configuration dropdown menu, which is shown below:
If you have run our plugin from source before, you can simply edit the existing run configuration. If not, you will not have any preexisting run configurations and will need to create one.
Hit the +
button in the top-right corner of the Edit Configurations window and select Application
.
On Windows, you should set your configuration options to match the ones below:
On Linux, you may want to utilize OpenJDK instead:
In any case, the most important configuration option to set is to add
-DBotDetectorAPIPath=https://www.osrsbotdetector.com/dev
to VM Options
. If you do not see a text field for VM Options
press ALT+V to have it appear.
Right-click on build.gradle
and select Build Module 'botdetector'
:
If you have installed Bot-Detector through RuneLite's Plugin Hub in your client and launch the plugin from the source code, you will end up running the client with TWO instances of the plugin. Things might still work, but your in-game experience may suffer depending on how the two branches are set up at the time. You can resolve this in two ways:
Open up RuneLite as you normally would an uninstall the Bot-Detector plugin. Now whenever you launch from source, you'll just have the development version.
If you just want to make sure the plugin builds, you can comment out loading the plugin into RuneLite. Comment out the following line in the BotDetectorPluginTest class: