Tutorial AIO Guide to start scripting for RuneMate

Discussion in 'Tutorials & Resources' started by Aidden, Mar 11, 2015.

  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) :

    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):

    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.
    #1 Aidden, Mar 11, 2015
    Last edited: Mar 29, 2015
    RobinPC and Arbiter like this.
  2. When installing Subversive for eclipse I get this message when I try to install it
    And after saying yes to that, when I go to connect my svn account to my source's, it says this
    I would appreciate help. I really want to write scripts bots for this, but I'm hitting a brick wall and getting fed up..
  3. Hmm okay, i'll probably have to write my own eclipse setup guide. Do you have teamviewer? I could take a look now.
  4. Yes I have teamviewer, you can join my meeting with this code: m57-107-367
    and I will give you control :)
  5. Please can you explain this a bit further?

    edit: Whoops, I'm an idiot.
    If anyone else is stuck on this, when you go to start a bot you have to clock on "Change Directory..."

    Aidden likes this.

Share This Page