- Joined
- Aug 23, 2015
- Messages
- 1,970
- Thread Author
- #1
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:
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.
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: