Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!
RuneMate will permanently shut down on August 7, 2026
due to events outside our control. You can continue using RuneMate until this date after which it will no longer be available. Thank you to everyone that contributed to RuneMate's success and to the community for the opportunity to serve you all these years.

  • Learn about RuneMate Vault and how its zero knowledge local encryption already protects your sensitive information.
  • Edit or delete your RuneMate account from your Account Settings.
  • All account upgrade subscriptions have been cancelled. No action required.

Request Environment available in onStart.

Joined
Nov 3, 2013
Messages
609
@Arbiter @Cloud @SlashnHax

Can you make the Environment functions:
getGameType
isOSRS
isRS3

available on non bot threads so they can be used in onStart? These values should be known by the time the bot is started since the user has to explicitly select which version of the game they connecting to.

Certain settings (ex. mining locations) are based on the game type and need to be populated in the GUI in the onStart.

Code:
 java.lang.UnsupportedOperationException: Calling methods that must query the session for information is no longer allowed within non-bot threads.
 at nul.IIIiiIiiIIiI.char (dqb:171)
 at com.runemate.game.api.hybrid.Environment.getGameType(xrb:97)
 at com.runemate.game.api.hybrid.Environment.isRS3(xrb:217)
 at scripts.ExiaMinerAI.onStart(ExiaMinerAIO.java:41)
 at com.runemate.game.api.script.framework.AbstractScript.start(oab:19)
 at nul.iiIIIIiIiiii.run(hqb:31)
RuneMate v2.3.3.4 - Exia Miner AIO v1.5.1 - OSRS EF19DD - Windows 10 - Java8u92 x86 (Oracle Corporation)
 
@Cloud plz
 
Line 41 of this file:
Exia-Mining-All-In-One/ExiaMinerAIO.java at master · JohnRThomas/Exia-Mining-All-In-One · GitHub
is where the error occurs.
 
Joined
Nov 3, 2013
Messages
609
It would be very difficult
Then can you make sure that onStart is only ever called from a bot thread? Because it seems like 99% of the time it is called from a bot thread but every now and then it is not.
 
Last edited:
Top