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

Request Environment available in onStart.

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

  1. Exia

    Joined:
    Nov 3, 2013
    Messages:
    609
    Likes Received:
    259
    @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 (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 com.runemate.game.api.hybrid.Environment.getGameType(xrb:97)
    4.  at com.runemate.game.api.hybrid.Environment.isRS3(xrb:217)
    5.  at scripts.ExiaMinerAI.onStart(ExiaMinerAIO.java:41)
    6.  at com.runemate.game.api.script.framework.AbstractScript.start(oab:19)
    7.  at nul.iiIIIIiIiiii.run(hqb:31)
    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/ExiaMinerAIO.java at master · JohnRThomas/Exia-Mining-All-In-One · GitHub
    is where the error occurs.
     
    Serene likes this.
  2. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    It would be very difficult
     
    Qosmiof2 likes this.
  3. Exia

    Joined:
    Nov 3, 2013
    Messages:
    609
    Likes Received:
    259
    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

Loading...