Resolved isValid() throwing ArrayIndexOutOfBounds Exception

Discussion in 'Client & Site Support' started by SlashnHax, Dec 26, 2014.

  1. Stacktrace:
    Code (Text):
    1.  
    2. java.lang.RuntimeException:
    3. java.lang.ArrayIndexOutOfBoundsException 
    4.     at com.runemate.game.api.script.Execution.delayUntil(xhb:96)
    5.  at com.runemate.game.api.script.Execution.delayUntil(xhb:239)
    6.  at com.runemate.game.api.script.Execution.delayUntil(xhb:30)
    7.  at com.slashnhax.scripts.haxagility.courses.AgilityCourse.execute(AgilityCourse.java:66)
    8.  at com.slashnhax.scripts.haxagility.HaxAgility.poll(HaxAgility.java:35)
    9.  at com.slashnhax.scripts.HaxScript.onLoop(HaxScript.java:46)
    10.  at com.runemate.game.api.script.framework.LoopingScript.run(yhb:89)
    11.  at com.runemate.game.api.script.framework.AbstractScript.start(plb:197)
    12.  at a.sJ.run(clb:102)Caused by: java.lang.ArrayIndexOutOfBoundsException
    13.  at java.lang.reflect.Array.get(Native Method) 
    14.     at a.Rl.byte(oeb:44) 
    15.     at com.runemate.game.api.hybrid.region.GameObjects.getLoadedAt(wpb:65)
    16.  at com.runemate.game.api.hybrid.region.GameObjects.getLoadedAt(wpb:247)
    17.  at a.TM.isValid(rrb:185)
    18.  at a.Hn.isVisible(pqb:240)
    19.  at a.vl.byte(sqb:126)
    20.  at a.vl.byte(sqb:28)
    21.  at a.vl.byte(sqb:152)
    22.  at a.vl.move(sqb:75)
    23.  at com.runemate.game.api.hybrid.input.Mouse.move(ep:234)
    24.  at com.runemate.game.api.hybrid.input.Mouse.move(ep:256)
    25.  at a.Hn.hover(pqb:19)
    26.  at com.slashnhax.scripts.haxagility.courses.AgilityCourse.lambda$execute$3(AgilityCourse.java:71)
    27.  at com.slashnhax.scripts.haxagility.courses.AgilityCourse$$Lambda$439/1398505156.call(Unknown Source)
    28.  at com.runemate.game.api.script.Execution.delayUntil(xhb:163) 
    29.     ... 8 more
    30.  
    Lines 66-75 of my script bot code:

    Code (Text):
    1.  
    2. Execution.delayUntil(() -> {
    3.     if (nextObstacle != null) {
    4.         if (!nextObstacle.isVisible()) {
    5.             Camera.turnTo(nextObstacle);
    6.         } else {
    7.             nextObstacle.hover();
    8.         }
    9.     }
    10.     return next.isFinished();
    11. }, 200, next.getCompletionTime());
    12.  
     
  2. Best Answer:
    Post #2 by Cloud, Dec 27, 2014
  3. Patched for next release.
     

Share This Page

Loading...