Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved IllegalArgumentException caused by Bresenham Path

The Pip Collector
Joined
Sep 14, 2014
Messages
445
Code:
(12:39:03) java.lang.IllegalArgumentException: The planes of the start and destination coordinates must match! (0 != 1)
(12:39:03)    at com.runemate.game.api.hybrid.location.navigation.basic.BresenhamPath.<init>(pob:151)
(12:39:03)    at com.runemate.game.api.hybrid.location.navigation.basic.BresenhamPath.build(pob:27)
(12:39:03)    at com.runemate.game.api.hybrid.location.navigation.basic.BresenhamPath.buildTo(pob:261)
(12:39:03)    at productions.coconut.prayer.house.Altar.execute(Altar.java:41)
(12:39:03)    at com.runemate.game.api.script.framework.task.TaskScript.onLoop(ebb:148)
(12:39:03)    at com.runemate.game.api.script.framework.LoopingScript.run(yhb:89)
(12:39:03)    at com.runemate.game.api.script.framework.AbstractScript.start(plb:197)
(12:39:03)    at a.sJ.run(clb:102)

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
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
Code:
(12:39:03) java.lang.IllegalArgumentException: The planes of the start and destination coordinates must match! (0 != 1)
(12:39:03)    at com.runemate.game.api.hybrid.location.navigation.basic.BresenhamPath.<init>(pob:151)
(12:39:03)    at com.runemate.game.api.hybrid.location.navigation.basic.BresenhamPath.build(pob:27)
(12:39:03)    at com.runemate.game.api.hybrid.location.navigation.basic.BresenhamPath.buildTo(pob:261)
(12:39:03)    at productions.coconut.prayer.house.Altar.execute(Altar.java:41)
(12:39:03)    at com.runemate.game.api.script.framework.task.TaskScript.onLoop(ebb:148)
(12:39:03)    at com.runemate.game.api.script.framework.LoopingScript.run(yhb:89)
(12:39:03)    at com.runemate.game.api.script.framework.AbstractScript.start(plb:197)
(12:39:03)    at a.sJ.run(clb:102)

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
Then you're generating between the wrong objects because the objects you're generating between are on different planes.
 
The Pip Collector
Joined
Sep 14, 2014
Messages
445
Then you're generating between the wrong objects because the objects you're generating between are on different planes.
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
 
Top