Resolved IllegalArgumentException caused by Bresenham Path

Discussion in 'Client & Site Support' started by Infinite Inferno, Dec 28, 2014.

  1. Code (Text):
    1.  
    2. (12:39:03) java.lang.IllegalArgumentException: The planes of the start and destination coordinates must match! (0 != 1)
    3. (12:39:03)    at com.runemate.game.api.hybrid.location.navigation.basic.BresenhamPath.<init>(pob:151)
    4. (12:39:03)    at com.runemate.game.api.hybrid.location.navigation.basic.BresenhamPath.build(pob:27)
    5. (12:39:03)    at com.runemate.game.api.hybrid.location.navigation.basic.BresenhamPath.buildTo(pob:261)
    6. (12:39:03)    at productions.coconut.prayer.house.Altar.execute(Altar.java:41)
    7. (12:39:03)    at com.runemate.game.api.script.framework.task.TaskScript.onLoop(ebb:148)
    8. (12:39:03)    at com.runemate.game.api.script.framework.LoopingScript.run(yhb:89)
    9. (12:39:03)    at com.runemate.game.api.script.framework.AbstractScript.start(plb:197)
    10. (12:39:03)    at a.sJ.run(clb:102)
    11.  
    The task of walking to the altar within a FOH only executes once the player is inside the house itself. The portal and the altar are on the same plane level.

    @Cloud
     
  2. Then you're generating between the wrong objects because the objects you're generating between are on different planes.
     
  3. Looks like i will need to modify either the query or the path to either only grab objects on the same plane as the player or only generate a path to an object on the same plane as the player.

    Edit: Can be marked as resolved
     

Share This Page

Loading...