Skip to content

Runelite requires users to have knowledge on compilers in order to create/use their own custom plugins. This repository contains a beginner's guide on compiling and running Runelite updates.

Notifications You must be signed in to change notification settings

kThisIsCvpv/rl-help

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 

Repository files navigation

RuneLite Plugin Compilation (for Noobs)

This guide was made by Yuri-chan. A more advanced guide can be found on the official RuneLite page. This guide is for people who have never developed before and will probably have no idea what they're doing. It's filled with a bunch of pictures to help you out visually.

The screenshots were taken using IntelliJ 2018. Your version of the software might look slightly different. However, the compilation procedure below will more or less still remain the same.

Required Software List:

Java JDK 8 or higher

Download: https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

If it asks you to make an Oracle account, use this link instead. The link above might be outdated.

File Size: Approximately 200.0~ MB

alt text

Note: Java JRE will not work. Java JRE is commonly used by consumers products. Java JDK contains libraries required by developer programs. Building with IntelliJ, the compilation software below, requires the Java JDK 8 software. You can have multiple Java versions on your PC without confliction.


Git

Download: https://git-scm.com/downloads

File Size: Approximately 40.0~ MB

alt text


IntelliJ IDEA Community Edition

Download https://www.jetbrains.com/idea/download/#section=windows

File Size: Approximately 480.0~ MB alt text

Software Installation Process

Please install the programs listed in the requirements above in the order that they are listed. In every installation process, you are able to just spam on the [NEXT] and [FINISH] buttons. There is no ad-ware lurking in these development tools; and hopefully never will.

RuneLite Installation Process

At this point, you should have all 3 of the required software installed. This section begins the tutorial on how to build RuneLite from scratch using the compiler.

1. Launch IntelliJ Idea

Simple right? I hope you don't get stuck here...

2. Downloading RuneLite Source

Click on Check out from Version Control and then select Git.

alt text

When asked for the repository location, enter https://github.com/runelite/runelite as the URL. Then click Clone.

alt text

When you are prompted to import the project, hit Yes.

alt text

Your screen should now look something like this.

alt text

Go to File > Close Project.

alt text

Re-import the project again. This time, use the Import Project feature.

alt text

Under File Location enter in the location of your RuneLite. Unless you have changed it, by default, you can type in ~/IdeaProjects/runelite as shown below to find the correct file.

alt text

Import the project as Import project from external model > Maven > Next ...

alt text

3. Installing Lombok

You should be back to the screen you were at before you closed your project above. Navigate to File > Settings.

alt text

Navigate to Plugins > Search and search for Lombok. Install this software as it is used to compile RuneLite.

alt text

At this point, you will be prompted to restart your IDE. You should do so.

4. Installing RuneLite

In the top right corner of your screen find a dropdown box click it and navigate to Edit Configurations....

alt text

Add a new Maven configuration by clicking [+] > Maven.

alt text

Click the folder next to Working Directory and select runelite-parent.

alt text

The under Command line, enter install -DskipTests -U. You can now hit Apply and Okay to close the window.

alt text

Back to where the Edit Configurations... was, you should now see a M option. Click the Play button next to it.

Note: If your button isn't green, you might need to wait a couple minutes for your IntelliJ to finish indexing the files.

alt text

A console will now appear at the bottom of the screen. Wait until the console shows an exit code before continuing. This process will take a while if you are running it for your first time.

alt text

5. Running RuneLite

You should now be able to run RuneLite. Open the File Explorer by clicking project on the left-most sidebar. Navigate to runelite > runelite-client > src > main > java > net > runelite > client. This is done by expanding your project workspace to the left.

alt text

Scroll down until you see the RuneLite class. Right click it and click Run 'RuneLite.main()'

alt text

RuneLite should now launch. When you launch RuneLite for the first time using this method, the client may fail to load and get stuck on Fetching Game Updates 99%, black screen, or whatever. If this happens, re-run your Maven module back in Step 4. You may need to re-select the drop-down menu, as shown in the image below. Also, when you launch RuneLite for the first time, there may be a short wait time. This is normal.

alt text

6. Success

If you are able to get RuneLite launched and working, you have succeeded.

Now, instead of navigating hundreds of folders every single launch time, use the quick launch configurations in the top as shown in the picture above. Playing RuneLite will launch the client. Playing install will launch maven. Quick and easy.

Plugins:

If you're able to launch RuneLite successfully from Step 6 from above, plugin installation becomes really easy.

Installing Plugins:

Remember the RuneLite class that you had to run in a previous step? In the same folder, there is a plugins folder. Navigate to runelite > runelite-client > src > main > java > net > runelite > client to find it.

alt text

When you want to install a plugin, drag your plugin inside the plugins folder.

alt text

When prompted with a confirmation message, simply click Okay.

Uninstalling Plugins:

Like above, navigate to runelite > runelite-client > src > main > java > net > runelite > client.

However, this time, expand the plugins folder. You should see a bunch of plugins.

alt text

Highlight the plugin you wish to uninstall. Then press the Delete button your keyboard.

alt text

Upgrading Plugins:

Uninstall the plugin you wish to upgrade, then install the new patch. Simple.

Updating Runelite:

Every Thursday, after the weekly game update, RuneLite also performs a client update. This changes the code that interacts with their servers. As a result, you may notice your global settings disappear, your bank value malfunctioning, etc. You will need to update your code on IntelliJ as a result. This is a simple process.

1. Retrieving New Code

Right click the top level project folder.

alt text

Navigate to Git > Repository > Pull.

alt text

Pull the new RuneLite update. This could take a minute or two.

alt text

2. Loading the New Code

Go back to Git > Repository > Fetch. This should take a couple seconds.

alt text

Finally, Git > Repository > Rebase. This should also take a couple seconds.

alt text

If you are presented with a message, click OK. Everything is continuous for these steps.

alt text

3. Parsing the New Code

Import new changes to the Maven file by navigating to Maven > Reimport.

alt text

Re-run your Maven (the install -DskipTests -U thing in the installation process above). Then click the green triangle Play as you did before.

alt text

Switch back to RuneLite and you're done! Your RuneLite has been updated!

alt text

About

Runelite requires users to have knowledge on compilers in order to create/use their own custom plugins. This repository contains a beginner's guide on compiling and running Runelite updates.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published