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 Path infinitely hops wilderness ditch to wilderness

Joined
Aug 23, 2015
Messages
1,970
Gamemode: OSRS
Repeatability: 100%
Responsible code:
In main class:
Code:
private WebPath savedPath;
public void setPath(WebPath p) {
    savedPath = p;
}

public WebPath getPath(){
    return savedPath;
}


In class to walk:
Code:
if (bot.getPath() == null) {
       System.out.println("Building a new path");
       buildWebPath(COORD IN WILDERNESS);
} else {
       System.out.println("Traversing the path ");
        bot.getPath().step();
}

public WebPath buildWebPath(Coordinate dest){
        WebPath newPath = Traversal.getDefaultWeb().getPathBuilder().buildTo(dest);
        if(newPath != null){
            bot.setPath(newPath);
            return newPath;
        } else {
            System.out.println("Web Path generated to destination" +dest+ "was null.  Returning null in buildWebPath method of ClassName");
            return null;
        }
    }
 
I haven't tested from wilderness -> not wildy. Also, adding a delay between steps just makes the bot wait before hopping back and forth over ditch, it's not a spam click issue.
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
I recommend regenerating web paths periodically, it may come with slightly increased latency but it helps us to identify the ways that the web is being used most frequently and as a result we can improve the web itself. We do limited path caching internally and far better than you can imagine so just build new paths everytime you're going to take a step. By analyzing the trends we are able to create much more humanlike navigation routes and identify which obstacles and such should be prioritized when it comes to making navigation graph additions.
 
Joined
Aug 23, 2015
Messages
1,970
I recommend regenerating web paths periodically, it may come with slightly increased latency but it helps us to identify the ways that the web is being used most frequently and as a result we can improve the web itself. We do limited path caching internally and far better than you can imagine so just build new paths everytime you're going to take a step. By analyzing the trends we are able to create much more humanlike navigation routes and identify which obstacles and such should be prioritized when it comes to making navigation graph additions.

The reason I do this is because I once had issues with the bot stopping between steps for a split second when using webpath due to the time it took to re-generate each time. I wanted to just adjust the value of how often it re-clicks minimap, but I learned that is internally playersensed. Do you have a suggestion for this issue?
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
The reason I do this is because I once had issues with the bot stopping between steps for a split second when using webpath due to the time it took to re-generate each time. I wanted to just adjust the value of how often it re-clicks minimap, but I learned that is internally playersensed. Do you have a suggestion for this issue?
The more times a path is requested and the more advanced our web becomes the faster the response from the server. I've personally noticed significantly faster responses recently in RS3.
 
Top