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

Resolved The planes of the start and destination coordinates must match

Discussion in 'Client & Site Support' started by Ozzy, Jan 24, 2015.

  1. Ozzy

    Joined:
    Nov 5, 2014
    Messages:
    505
    Likes Received:
    162
    @Cloud

    Code (Text):
    1. java.lang.IllegalArgumentException: The planes of the start and destination coordinates must match! (0 != 1)
    2.  at com.runemate.game.api.hybrid.location.navigation.basic.BresenhamPath.(ytb:19)
    3.  at com.runemate.game.api.hybrid.location.navigation.basic.BresenhamPath.build(ytb:171)
    4.  at com.runemate.game.api.hybrid.location.navigation.basic.BresenhamPath.buildTo(ytb:233)
    5.  at rm.CoN.execute(g:20)
    6.  at com.runemate.game.api.script.framework.task.TaskScript.onLoop(ttb:19)
    7.  at com.runemate.game.api.script.framework.LoopingScript.run(zpb:138)
    8.  at com.runemate.game.api.script.framework.AbstractScript.start(ftb:160)
    9.  at a.aI.run(hlb:7)
     
  2. Infinite Inferno

    Infinite Inferno The Pip Collector

    Joined:
    Sep 14, 2014
    Messages:
    445
    Likes Received:
    122
    I get that in my Gilded Altar script bot as well even though the planes are the same. I think Bresenham Path has a problem
     
  3. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    It's not on my end.
     
  4. Aidden

    Aidden Author of MaxiBots

    Joined:
    Dec 3, 2013
    Messages:
    6,600
    Likes Received:
    990
    Yeah unfortunately that's on us scripters. I've never encountered it myself but i'm guessing it's when a user starts the script bot while on a different plane to the coordinate the script bot is trying to walk to. The only real solution i can think of is checking the plane values of the player and the destination and if they're not the same don't try to walk and instead tell the user they need to be on the runescape surface for example
     
  5. Ozzy

    Joined:
    Nov 5, 2014
    Messages:
    505
    Likes Received:
    162
    Ah ok that makes sense
     
  6. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    I'm making BresenhamPath.build just return null instead of throwing the error.
     
  7. Ozzy

    Joined:
    Nov 5, 2014
    Messages:
    505
    Likes Received:
    162
    Great thanks
     

Share This Page

Loading...