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:
    504
    Likes Received:
    159
    @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:
    442
    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

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

    Aidden The better executive

    Joined:
    Dec 3, 2013
    Messages:
    3,509
    Likes Received:
    728
    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:
    504
    Likes Received:
    159
    Ah ok that makes sense
     
  6. Cloud

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

    Joined:
    Nov 5, 2014
    Messages:
    504
    Likes Received:
    159
    Great thanks
     

Share This Page

Loading...