- Joined
- Jun 20, 2015
- Messages
- 161
- Thread Author
- #1
I'm trying to write a bot, and every time I restart RuneMate then run it, it crashes with this error:
If I run it again afterwards, it works fine. Anyone know what's causing this?
RuneMate Version: Latest, in development mode using IDEA.
Affected Games: OSRS (Haven't tried RS3).
Code:
java.lang.UnsupportedOperationException: Only a Thread within a bot's ThreadGroup may eavesdrop on the game client. Current Thread=Thread[pool-4-thread-1,5,[t-g]9240 - Infinite Cannoneer]
at nul.iIiIIIiiiiIi.for(pqb:138)
at com.runemate.game.api.hybrid.Environment.getGameType(emb:160)
at com.runemate.game.api.hybrid.Environment.isRS3(emb:194)
at nul.iiIIIIiIiiii.for(nab:75)
at nul.iiIIIIiIiiii.validate(nab:143)
at com.runemate.game.api.script.framework.LoopingBot.run(wxa:96)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
If I run it again afterwards, it works fine. Anyone know what's causing this?
RuneMate Version: Latest, in development mode using IDEA.
Affected Games: OSRS (Haven't tried RS3).