- Joined
- Jan 27, 2020
- Messages
- 3
- Thread Author
- #1
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
// Mainfest.xml
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
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:
package com.gold_farming_inc.bots.tutorial;
import com.runemate.game.api.hybrid.local.hud.interfaces.WorldHop;
import com.runemate.game.api.script.framework.tree.LeafTask;
import com.runemate.game.api.script.framework.tree.TreeBot;
import com.runemate.game.api.script.framework.tree.TreeTask;
public class Main extends TreeBot {
@Override
public TreeTask createRootTask() {
return new Hop();
}
}
class Hop extends LeafTask {
@Override
public void execute() {
boolean result = WorldHop.hopTo(393);
System.out.println("Result is " + result);
}
}
// Mainfest.xml
Code:
<manifest>
<main-class>com.gold_farming_inc.bots.tutorial.Main</main-class>
<name>Tutorial Bot</name>
<tag-line>This program is used to verify the configuration is correct.</tag-line><!--Max of 50 chars-->
<description>This program is used to verify the configuration is correct.</description><!--Max of 110 chars-->
<version>1.0.2</version>
<compatibility>
<game>OSRS</game>
<game>RS3</game>
</compatibility>
<categories>
<category>WOODCUTTING</category>
</categories>
<!--Required to publish on the bot store-->
<internal-id>PowerChopper</internal-id>
<!--The rest are optional-->
<open-source>true</open-source>
<hidden>false</hidden> <!--If you need to hide it from the bot store for maintenance-->
<access>public</access>
<tags>
<tag>Tree</tag>
<tag>Vine</tag>
</tags>
<resources>
<resource>path/to/file.png</resource>
</resources>
</manifest>
You can see a GIF of the problem here (wait about a second for it to begin.)
Imgur
Here are the relevant logs:
Exception: java.lang.NullPointerException thrown from the UncaughtExceptionHandler in thread "zwdcsgpvxvwpma"
00:00:00 INFO Logger Initialised - this log file can be found at C:\Users\david\RuneMate\logs\Tutorial Bot 8-28 17-01-38.log
00:00:00 INFO Logging level can be adjusted in the Preferences tab.
00:00:00 TRACE [PlayerSense] Parsed 45 PlayerSense elements from the existing profile.
00:00:00 TRACE [WorldHop] Attempting to hop to world 393 from 301
[SDK Debug] Unable to resolve the field component of RTComponent.horizontalScrollbarPosition
[SDK Debug] Unable to resolve the field component of RTComponent.verticalScrollbarPosition
Result is false
00:00:04 TRACE [WorldHop] Attempting to hop to world 393 from 301
Result is false
00:00:11 TRACE [WorldHop] Attempting to hop to world 393 from 301
Result is false
00:00:16 TRACE [WorldHop] Attempting to hop to world 393 from 301
[Clouse] Downloaded 1000 human mouse movements selected for you by Clouse.
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