Welcome!

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

Sign up now!

Bug [BUG REPORT] WebPath returning null when planes are different, but X&Y are similar.

Joined
Dec 16, 2017
Messages
3
RuneMate Version : Windows 10 x64bit Developer Mode running IntelliJ
Affected Games : OSRS
Code Used:

Code:
public static void traverse(Area destinationArea)
    {
        Path newPath = Traversal.getDefaultWeb().getPathBuilder().buildTo(destinationArea.getRandomCoordinate());
       
        if(newPath != null)
        {
            if(!newPath.getNext().getPosition().isVisible())
            {
                Camera.concurrentlyTurnTo(newPath.getNext());
                System.out.println("Changing Camera");
            }

            if(newPath.getNext().getPosition().isVisible())
            {
                System.out.println("Path is visible! Moving!");
                newPath.step();
                Execution.delay(Random.nextInt(200,600));
            }
        }
        else
        {
            System.out.println("Path is null!");

        }
    }
}

Issue seems to be that the WebPath is not handling different planes when trying to move from
Code:
private Area bankArea = new Area.Rectangular(new Coordinate(3207, 3220, 2), new Coordinate(3210, 3218, 2));
private Area cookingArea = new Area.Rectangular(new Coordinate(3210, 3216, 0), new Coordinate(3211, 3213, 0));

Takes arguments, no return errors, simply Path is null! in debug.
Happens from top of lumbridge bank trying to go to the cooking range below. Will traverse UP the stairs, will not go back down.
 
@kazemanie I have been informed this was incorrectly posted please Lock/remove
Request - [Megathread] Request Additions/Changes to Web Here
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
Disregarding the fact that this was placed in the wrong section @Moosha, can you please test and let me know if the issue is now resolved?
 
Joined
Jan 17, 2017
Messages
312
Disregarding the fact that this was placed in the wrong section @Moosha, can you please test and let me know if the issue is now resolved?
Did a quick debug on this issue, set to a random coordinate on the ground floor of the castle; Tries to teleport home, returns a null path onces it realises it cant teleport because of a timer.
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
Did a quick debug on this issue, set to a random coordinate on the ground floor of the castle; Tries to teleport home, returns a null path onces it realises it cant teleport because of a timer.
Regenerating a path after it's aware of the timer preventing the teleport should fix the path.
 
Top