Welcome!

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

Sign up now!

Question Path not null, but refuses to step

Joined
May 24, 2016
Messages
1,113
This seems to happen very randomly. Sometimes the bot can function for very long periods of time, but sometimes it won't because the bot refuses to step even when a path is not null. Snippet:

Code:
Path path = Traversal.getDefaultWeb().getPathBuilder().buildTo(thievingArea);
if (path != null) {
    bot.currentTask = "Walking to next clan";
    getLogger().info("Web walking to " + thievingArea);
    path.step();
}

The log from a user of mine is being spammed for hours with:

Code:
INFO   Web walking to Area[center=Coordinate(2140, 3373, 1),radius=20.0]

I've never had this issue anywhere other than in Prifddinas, which is where this bot functions.

edit: Testing if path.getNext() returns null, suggested by @Snufalufugus, he says he's having the same issue with viewport stepping and he is also attempting to step on plane 1 - possibly related?
 
Last edited:
Joined
Aug 23, 2015
Messages
1,970
As @auxi mentioned, I am having a similar problem.

Using the following method, the path builds but .getNext() is always null. This has only been tested on Plane 1, similar to Auxi's pathing.

Code:
    public void meaninglessName(Coordinate destination) {
        BresenhamPath temp = BresenhamPath.buildTo(destination);
        if (temp != null) {
            getLogger().info("Walking to " + destination + " from " + c.getPosition());
            ViewportPath tempVP = ViewportPath.convert(temp);
            getLogger().info(tempVP.getVertices());
            if (tempVP.getNext() != null) {
                tempVP.step();
            } else {
                getLogger().warn("Next step was null");
            }
        } else {
            getLogger().warn("The path we tried to build to " + destination + " was null.");
        }
    }
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
Please provide a copy of the paths that you guys are receiving when this issue occurs.
 
Joined
May 24, 2016
Messages
1,113
These are the destinations my bot tries to walk to using web.

Code:
IORWERTH("Iorwerth worker", 91, new Coordinate(2183, 3288, 1), 25217, "7"),
ITHELL("Ithell worker", 92, new Coordinate(2144, 3339, 1), 25221, "8"),
CADARN("Cadarn worker", 93, new Coordinate(2269, 3350, 1), 25219, "4"),
AMLODD("Amlodd worker", 94, new Coordinate(2140, 3373, 1), 25222, "3"),
TRAHAEARN("Trahaearn worker", 95, new Coordinate(2231, 3301, 1), 25220, "0"),
HEFIN("Hefin worker", 96, new Coordinate(2187, 3397, 1), 25223, "6"),
CRWYS("Crwys worker", 97, new Coordinate(2248, 3380, 1), 25218, "5"),
MEILYR("Meilyr worker", 98, new Coordinate(2230, 3398, 1), 25224, "9");
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
These are the destinations my bot tries to walk to using web.

Code:
IORWERTH("Iorwerth worker", 91, new Coordinate(2183, 3288, 1), 25217, "7"),
ITHELL("Ithell worker", 92, new Coordinate(2144, 3339, 1), 25221, "8"),
CADARN("Cadarn worker", 93, new Coordinate(2269, 3350, 1), 25219, "4"),
AMLODD("Amlodd worker", 94, new Coordinate(2140, 3373, 1), 25222, "3"),
TRAHAEARN("Trahaearn worker", 95, new Coordinate(2231, 3301, 1), 25220, "0"),
HEFIN("Hefin worker", 96, new Coordinate(2187, 3397, 1), 25223, "6"),
CRWYS("Crwys worker", 97, new Coordinate(2248, 3380, 1), 25218, "5"),
MEILYR("Meilyr worker", 98, new Coordinate(2230, 3398, 1), 25224, "9");
I repeat, please provide me with a copy of one of the paths generated when the bot gets stuck. It's the only way I can try to fix it.
 
Joined
May 24, 2016
Messages
1,113
I repeat, please provide me with a copy of one of the paths generated when the bot gets stuck. It's the only way I can try to fix it.

I see what you mean now. Apologies, added path debug. Will report back soon..
 
Joined
May 24, 2016
Messages
1,113
I hope this is what you need, @Cloud

Code:
00:39:58 DEBUG    Path debug: WebPath[Cost: 97.0, Requirements: [WildernessRequirement{minimumLevel=0, maximumLevel=20}, VarpRequirement(3 & 0x1000000 == 16777216)], Vertices: LodestoneVertex(lodestone=PRIFIDDINAS, x=2208, y=3361, plane=1) -> CoordinateVertex(x=2209, y=3361, plane=1) -> CoordinateVertex(x=2210, y=3365, plane=1) -> CoordinateVertex(x=2210, y=3370, plane=1) -> CoordinateVertex(x=2209, y=3371, plane=1) -> CoordinateVertex(x=2209, y=3372, plane=1) -> CoordinateVertex(x=2210, y=3374, plane=1) -> CoordinateVertex(x=2209, y=3376, plane=1) -> CoordinateVertex(x=2209, y=3377, plane=1) -> CoordinateVertex(x=2209, y=3378, plane=1) -> CoordinateVertex(x=2209, y=3379, plane=1) -> CoordinateVertex(x=2209, y=3380, plane=1) -> CoordinateVertex(x=2208, y=3381, plane=1) -> CoordinateVertex(x=2209, y=3382, plane=1) -> CoordinateVertex(x=2209, y=3386, plane=1) -> CoordinateVertex(x=2208, y=3387, plane=1) -> CoordinateVertex(x=2207, y=3388, plane=1) -> CoordinateVertex(x=2207, y=3389, plane=1) -> CoordinateVertex(x=2206, y=3391, plane=1) -> CoordinateVertex(x=2206, y=3392, plane=1) -> CoordinateVertex(x=2206, y=3393, plane=1) -> CoordinateVertex(x=2206, y=3394, plane=1) -> CoordinateVertex(x=2206, y=3395, plane=1) -> CoordinateVertex(x=2207, y=3396, plane=1) -> CoordinateVertex(x=2206, y=3397, plane=1) -> CoordinateVertex(x=2205, y=3397, plane=1) -> CoordinateVertex(x=2204, y=3397, plane=1) -> CoordinateVertex(x=2203, y=3397, plane=1) -> CoordinateVertex(x=2202, y=3397, plane=1) -> CoordinateVertex(x=2200, y=3398, plane=1) -> CoordinateVertex(x=2199, y=3397, plane=1) -> CoordinateVertex(x=2198, y=3397, plane=1) -> CoordinateVertex(x=2197, y=3396, plane=1) -> CoordinateVertex(x=2196, y=3396, plane=1) -> CoordinateVertex(x=2195, y=3396, plane=1) -> CoordinateVertex(x=2194, y=3397, plane=1) -> CoordinateVertex(x=2193, y=3397, plane=1) -> CoordinateVertex(x=2189, y=3396, plane=1) -> CoordinateVertex(x=2187, y=3397, plane=1)]
00:39:58 INFO    Web walking to Area[center=Coordinate(2187, 3397, 1),radius=20.0]

Snippet used:

Code:
Path path = Traversal.getDefaultWeb().getPathBuilder().buildTo(thievingArea);
if (path != null) {
    getLogger().debug("Path debug: " + path);
    bot.status = "Walking to next clan";
    getLogger().info("Web walking to " + thievingArea);
    path.step();
} else {
    getLogger().warn("Path null");
}
 
Top