Request Environment available in onStart.

Discussion in 'Client & Site Suggestions' started by Exia, Aug 3, 2016.

  1. @Arbiter @Cloud @SlashnHax

    Can you make the Environment functions:

    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 (Text):
    1.  java.lang.UnsupportedOperationException: Calling methods that must query the session for information is no longer allowed within non-bot threads.
    2.  at nul.IIIiiIiiIIiI.char (dqb:171)
    3.  at
    4.  at
    5.  at scripts.ExiaMinerAI.onStart(
    6.  at
    7.  at
    8. RuneMate v2.3.3.4 - Exia Miner AIO v1.5.1 - OSRS EF19DD - Windows 10 - Java8u92 x86 (Oracle Corporation)
    --- Double Post Merged, Aug 5, 2016, Original Post Date: Aug 3, 2016 ---
    @Cloud plz
    --- Double Post Merged, Aug 5, 2016 ---
    Line 41 of this file:
    Exia-Mining-All-In-One/ at master · JohnRThomas/Exia-Mining-All-In-One · GitHub
    is where the error occurs.
    Serene likes this.
  2. It would be very difficult
    Qosmiof2 likes this.
  3. 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.
    #3 Exia, Aug 5, 2016
    Last edited: Aug 5, 2016
    SuperBotter likes this.

Share This Page