1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Tutorial AIO Guide to start scripting for RuneMate

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

  1. Aidden

    Aidden Author of MaxiBots

    Joined:
    Dec 3, 2013
    Messages:
    6,482
    Likes Received:
    990
    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.
     
    #1 Aidden, Mar 11, 2015
    Last edited: Mar 29, 2015
  2. Lad

    Lad

    Joined:
    Feb 6, 2015
    Messages:
    241
    Likes Received:
    69
    When installing Subversive for eclipse I get this message when I try to install it
    [​IMG]
    And after saying yes to that, when I go to connect my svn account to my source's, it says this
    [​IMG]
    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. Aidden

    Aidden Author of MaxiBots

    Joined:
    Dec 3, 2013
    Messages:
    6,482
    Likes Received:
    990
    Hmm okay, i'll probably have to write my own eclipse setup guide. Do you have teamviewer? I could take a look now.
     
  4. Lad

    Lad

    Joined:
    Feb 6, 2015
    Messages:
    241
    Likes Received:
    69
    Yes I have teamviewer, you can join my meeting with this code: m57-107-367
    and I will give you control :)
     
  5. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
  6. not_mallard

    Joined:
    Mar 22, 2015
    Messages:
    75
    Likes Received:
    17
    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..."

    [​IMG]
     
    Aidden likes this.
  7. rickp1337

    Joined:
    Jan 12, 2017
    Messages:
    87
    Likes Received:
    17
    how does this work with the current client, this guide and the image above seem to be for a diffrent (probably older) client
     
  8. Aidden

    Aidden Author of MaxiBots

    Joined:
    Dec 3, 2013
    Messages:
    6,482
    Likes Received:
    990
    Yeah this is quite an old thread. You'll have to look at the newer threads and/or the open source bots on the store.
     
  9. rickp1337

    Joined:
    Jan 12, 2017
    Messages:
    87
    Likes Received:
    17
    yea i found that out like 5 mins ago, party has a much newer and clearer tutorial on this, still appreciate the response :D
    thats what you get for using google rather than the actual forum :p
     
  10. axeldion

    Joined:
    Jan 9, 2018
    Messages:
    6
    Likes Received:
    0
    How can I open in developer mode on mac ?
     
  11. jolts

    Joined:
    Feb 5, 2017
    Messages:
    3
    Likes Received:
    0
    delete this post
     
  12. WatchDogaMan

    Joined:
    May 22, 2019
    Messages:
    51
    Likes Received:
    30
    delete yourself gravedigger loool
     
    Fabreze and Swatarinaess like this.
  13. franklong1

    Joined:
    Nov 30, 2018
    Messages:
    1
    Likes Received:
    0
    hey. Hi. A few months ago I had created a very good bot in visualRM. And i ask myself. Is it possible to use the .jsom file that this program exports to me to create an "independent" bot that can be used directly from the RuneMate store?


    pd:sorry for my n oob question
     
  14. American Express

    American Express RuneMate Staff

    Joined:
    Oct 2, 2015
    Messages:
    3,092
    Likes Received:
    1,112
    No that's not possible.
     

Share This Page

Loading...