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 RM Web paths generated are null

Joined
Aug 23, 2015
Messages
1,970
Gamemode: OSRS
Location: Between lunar bank and astral altar
Details: The path generation will work for a seemingly random amount of time. Sometimes it works for 10 minutes, sometimes an hour. Eventually, every path that gets generated will return null.

Code used to generate path:

Code:
  Area circNearAltar = new Area.Circular(new Coordinate(2154, 3864, 0), 4);

    @Override
    public void execute() {
        if(bot != null) {
            bot.currentTaskString = "Walking to rune altar";
        } else {
            System.out.println("Bot was null in WalkToAltar leaf");
        }
        WebPath saved = bot.getAltarPath();
        if(saved == null){
            System.out.println("Generating new path to altar");
            WebPath newPath = Traversal.getDefaultWeb().getPathBuilder().buildTo(circNearAltar.getRandomCoordinate());
            if(newPath != null){
                System.out.println("New path generated");
                bot.setAltarPath(newPath);
            }
        } else {
            saved.step();
        }

bot.getAltarPath(); returns a WebPath. This path is set whenever a new path is generated, and cleared after each trip.

Update: Tried to run again and EVERY web path that I attempt to generate is null.
 
Last edited:
s̶c̶r̶i̶p̶t̶ bot*
Joined
Aug 23, 2015
Messages
2,232
I'm getting the same issue on all of my bots for RS3 and OSRS.

This isn't the first time this has happened either. In the past, I went to bed and everything worked. Woke up to only have paths returning null. I went throughout my day, changing nothing in the code, and when I get back home the paths are working again.
 
( ͡° ͜ʖ ͡°)
Joined
Mar 30, 2015
Messages
2,416
Getting the same thing in exception log, and locally. Sometimes it won't return null, and 15 mins later it may.
 
that went well
Joined
Feb 21, 2017
Messages
7
I'm encountering the same problem, could someone post a currently working implementation?
 
Joined
Aug 23, 2015
Messages
1,970
I'm encountering the same problem, could someone post a currently working implementation?
Implement a backup that doesn't rely on web when the webpath that is generated returns null. Ex) a predefined path or bresenam path that is only created when the web path returns null.
 
Top