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

Bug Problem with WordHop

Discussion in 'Developer Support' started by Gold Farming Inc, Aug 28, 2020.

  1. Gold Farming Inc

    Joined:
    Jan 27, 2020
    Messages:
    3
    Likes Received:
    0
    Hello,

    Some months ago, I wrote a private bot. It starts at a store, buys some stack-able item, switches worlds, and repeats until it is out of money. I recently go back into experimenting with it, and the WorldHop feature isn't working the same. It didn't behave like this before.

    Note: originally I was on MacOS and now I have Windows. This shouldn't be related, because I've boiled the code down to only the relevant pieces.

    // Main.java
    Code (Text):
    1. package com.gold_farming_inc.bots.tutorial;
    2.  
    3. import com.runemate.game.api.hybrid.local.hud.interfaces.WorldHop;
    4. import com.runemate.game.api.script.framework.tree.LeafTask;
    5. import com.runemate.game.api.script.framework.tree.TreeBot;
    6. import com.runemate.game.api.script.framework.tree.TreeTask;
    7.  
    8. public class Main extends TreeBot {
    9.  
    10.     @Override
    11.     public TreeTask createRootTask() {
    12.         return new Hop();
    13.     }
    14. }
    15.  
    16. class Hop extends LeafTask {
    17.  
    18.     @Override
    19.     public void execute() {
    20.  
    21.         boolean result = WorldHop.hopTo(393);
    22.         System.out.println("Result is " + result);
    23.     }
    24. }
    // Mainfest.xml
    Code (Text):
    1. <manifest>
    2.     <main-class>com.gold_farming_inc.bots.tutorial.Main</main-class>
    3.     <name>Tutorial Bot</name>
    4.     <tag-line>This program is used to verify the configuration is correct.</tag-line><!--Max of 50 chars-->
    5.     <description>This program is used to verify the configuration is correct.</description><!--Max of 110 chars-->
    6.     <version>1.0.2</version>
    7.     <compatibility>
    8.         <game>OSRS</game>
    9.         <game>RS3</game>
    10.     </compatibility>
    11.     <categories>
    12.         <category>WOODCUTTING</category>
    13.     </categories>
    14.     <!--Required to publish on the bot store-->
    15.     <internal-id>PowerChopper</internal-id>
    16.     <!--The rest are optional-->
    17.     <open-source>true</open-source>
    18.     <hidden>false</hidden> <!--If you need to hide it from the bot store for maintenance-->
    19.     <access>public</access>
    20.     <tags>
    21.         <tag>Tree</tag>
    22.         <tag>Vine</tag>
    23.     </tags>
    24.     <resources>
    25.         <resource>path/to/file.png</resource>
    26.     </resources>
    27. </manifest>
    You can see a GIF of the problem here (wait about a second for it to begin.)

    Imgur

    Here are the relevant logs:

    I searched online about:
    * NullPointerException thing, but couldn't find anything related to Runemate.
    * the RTComponent error, but I didn't anything.

    These SDK error things make me wonder if it is a configuration problem on my machine.

    Any information would be appericated.

    Even if you have no information, you can still help me by running the code on your machine and telling me if you have the same problem.

    Thank you in advance for any help,

    David
     
  2. CuppaJava

    CuppaJava cuppa.drink(java);

    Joined:
    Mar 13, 2018
    Messages:
    6,158
    Likes Received:
    1,385
    Did this bug just start happening in the past couple days? Runemate is half broken currently due to a game update. Needs to be updated by admins.
     
  3. Gold Farming Inc

    Joined:
    Jan 27, 2020
    Messages:
    3
    Likes Received:
    0
    I'm not sure, I've been away for awhile and only started back up again a couple days ago.

    Thank you for your reply, is there a forum or something you can link? So I can watch the progress.

    Thanks Cuppa!
     

Share This Page

Loading...