- Joined
- Sep 14, 2019
- Messages
- 25
- Thread Author
- #1
To check the last update for this guide, look in the comment section.
You can either click here or search "IntelliJ" on Google to download IntelliJ. On the download page, select the Community Edition.
Once the IntelliJ download is finished, proceed with the installation. No special configuration is needed at this stage.
Once the IntelliJ download is finished, proceed with the installation. No special configuration is needed at this stage.
- The "Customize IDE" screen will appear. Select any desired options, or alternatively, click "Skip All and Set Defaults."
Next, select "Create New Project."
- Click on the project SDK bar and select the option "Download JDK."
- In the "Download JDK" window, click on the vendor bar and choose either "Oracle OpenJDK" or "JetBrains Runtime."
- Select "17.0.0" (or a higher version) and click the download button.
- Click "Next" until you reach the "Project name" textbox. I named my project "Runemate," but you can choose any name you prefer.
Press "Ctrl+Alt+Shift+S" to open the project structure.
- In project settings, select "Modules."
- Click on the "Dependencies" tab.
- On the left side of the panel, click the + button and select "JARs or directories."
- Add the following dependencies:
• C:\Program Files\RuneMate\RuneMate.jar
• C:\Users\%user%\RuneMate\resources\runemate-game-api.jar - Click the "OK" button.
You can also use the Standalone version, but remember to manually update the dependencies.
In the main IntelliJ window, navigate to Run → Edit Configurations.
In the dialog that appears, click the "+" button and select "Application."
- In the "Name" field, choose the desired name (e.g., "Launch").
- In the "Main class" field, paste:
Code:com.runemate.client.boot.Boot
- In the "Program arguments" field, paste:
Code:--dev
- In the "Environment variables" field, replace "Username" and "Password" with your actual credentials:
Code:RUNEMATE_USERNAME=YourUsername; RUNEMATE_PASSWORD=YourPassword
- Click the "OK" button.
If the project sidebar is not open, press "Alt+1."
- Right-click the "src" folder → New → Package.
- Name your package as follows: "com.username.scripts" (Replace "username" with your actual username.)
- Right-click the project bar, then select "Compact Middle Packages."
- Right-click the "scripts" folder → New → Package. Name the package "test."
In the new "test" package, create a Java Class named "Test" and a new file named "test.manifest.xml."
In the Java Class, copy and paste this code:
In the XML file, copy and paste this code:
You can find a full manifest here.
You're now ready to run for the first time. Press the green play button at the top right of the IDE or use the shortcut "Shift+F10."
Once RuneMate is launched and you are logged in, press "Ctrl+P."
If you have any questions, feel free to comment below or join the RuneMate Discord.
Code:
package com.username.scripts.test;
import com.runemate.game.api.script.framework.LoopingBot;
public class Test extends LoopingBot {
@Override
public void onLoop() {
}
}
Code:
<manifest>
<main-class>com.username.scripts.test.Test</main-class>
<name>Test</name>
<description>This is a test.</description>
<version>0.0.1</version>
<compatibility>
<game>OSRS</game>
</compatibility>
<categories>
<category>COOKING</category>
</categories>
</manifest>
You're now ready to run for the first time. Press the green play button at the top right of the IDE or use the shortcut "Shift+F10."
Once RuneMate is launched and you are logged in, press "Ctrl+P."
- In the development section, click on "Change."
- Navigate to your project folder → out → production → Runemate and click "Select folder" (Ensure you select the folder above the "com" folder.)
If you have any questions, feel free to comment below or join the RuneMate Discord.
Last edited: