- Joined
- Dec 3, 2013
- Messages
- 6,776
- Thread Author
- #1
Hello and welcome. In this thread i'll provide links to everything you need to get started scripting with RuneMate.
Talk to @Cloud for anything to do with the way the client works as he's the developer.
So before we even begin you'll need to have JDK 8 installed on your computer. You probably already have JRE 8 installed but that only allows you to run java programs it doesn't allow you to compile them.
Download the latest version from here.
Minimal knowledge of java would be beneficial (As that's what the client and bots are written in) or C# (As it's very similar to java and wouldn't be hard to transfer that knowledge to java). https://www.runemate.com/community/threads/java-in-30-minutes.1461/(Haven't watched it but might be useful)
Best place to start would be either of these tutorials for setting up your IDE (Depending on which you use) :
https://www.runemate.com/community/threads/setting-up-intellij-for-runemate.324/
https://www.runemate.com/community/threads/setting-up-eclipse-for-runemate.1772/
Once you're set up you'll need a basic scrípt skeleton: https://www.runemate.com/community/threads/official-script-skeleton-java.243/
And a scrípt manifest (So the client and bot store know where the bot is and what details to display as well as whether it's private or public):
https://www.runemate.com/community/threads/official-the-script-manifest-xml.526/
From here there are many paths you can take, one of which would be starting with a simple state based scrípt:https://www.runemate.com/community/threads/an-introduction-to-the-state-based-script.1256/
For a slightly more advanced approach which follows oop (Object oriented programming) you could try using task scrípt:https://www.runemate.com/community/threads/an-introduction-to-the-taskscript.1614/
Now to be able to load your local bots in the client you'll need to run it in developer mode. To do so you need to open notepad. Enter 'java -jar RuneMate.jar -sdk' (without the ''). Then, select save as and change the file type to All files and enter the name runSDK.bat
Finally, navigate to the folder containing the Runemate client (RuneMate.jar) and save the file there.
When you want to run local bots, open run.bat instead of RuneMate.jar and it will load RuneMate in developer mode.
The last thing you need to do is open the bot selector and change the bot directory to the output or bin folder inside your project folder.
And that about covers it. I also recommend using the open source bots on the bot store as a reference (Change the 'Display' filter to Open source). Here's my old open source alchemy bot before i updated it and made it closed source:https://www.runemate.com/community/threads/how-to-write-an-alchemy-script.1447/
And finally, the RuneMate JavaDocs: https://www.runemate.com/developer/jdocs/
They're a little daunting at first as there are so many classes but very soon you'll start remembering what's what and be able to navigate it easily. The javadocs can also be referenced in your IDE and can be done in eclipse by right clicking the project -> properties -> Javadoc Location and entering the above URL.
Talk to @Cloud for anything to do with the way the client works as he's the developer.
So before we even begin you'll need to have JDK 8 installed on your computer. You probably already have JRE 8 installed but that only allows you to run java programs it doesn't allow you to compile them.
Download the latest version from here.
Minimal knowledge of java would be beneficial (As that's what the client and bots are written in) or C# (As it's very similar to java and wouldn't be hard to transfer that knowledge to java). https://www.runemate.com/community/threads/java-in-30-minutes.1461/(Haven't watched it but might be useful)
Best place to start would be either of these tutorials for setting up your IDE (Depending on which you use) :
https://www.runemate.com/community/threads/setting-up-intellij-for-runemate.324/
https://www.runemate.com/community/threads/setting-up-eclipse-for-runemate.1772/
Once you're set up you'll need a basic scrípt skeleton: https://www.runemate.com/community/threads/official-script-skeleton-java.243/
And a scrípt manifest (So the client and bot store know where the bot is and what details to display as well as whether it's private or public):
https://www.runemate.com/community/threads/official-the-script-manifest-xml.526/
From here there are many paths you can take, one of which would be starting with a simple state based scrípt:https://www.runemate.com/community/threads/an-introduction-to-the-state-based-script.1256/
For a slightly more advanced approach which follows oop (Object oriented programming) you could try using task scrípt:https://www.runemate.com/community/threads/an-introduction-to-the-taskscript.1614/
Now to be able to load your local bots in the client you'll need to run it in developer mode. To do so you need to open notepad. Enter 'java -jar RuneMate.jar -sdk' (without the ''). Then, select save as and change the file type to All files and enter the name runSDK.bat
Finally, navigate to the folder containing the Runemate client (RuneMate.jar) and save the file there.
When you want to run local bots, open run.bat instead of RuneMate.jar and it will load RuneMate in developer mode.
The last thing you need to do is open the bot selector and change the bot directory to the output or bin folder inside your project folder.
And that about covers it. I also recommend using the open source bots on the bot store as a reference (Change the 'Display' filter to Open source). Here's my old open source alchemy bot before i updated it and made it closed source:https://www.runemate.com/community/threads/how-to-write-an-alchemy-script.1447/
And finally, the RuneMate JavaDocs: https://www.runemate.com/developer/jdocs/
They're a little daunting at first as there are so many classes but very soon you'll start remembering what's what and be able to navigate it easily. The javadocs can also be referenced in your IDE and can be done in eclipse by right clicking the project -> properties -> Javadoc Location and entering the above URL.
Last edited: