1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Bug RM Web paths generated are null

Discussion in 'Developer Support' started by Snufalufugus, Mar 3, 2017.

  1. Snufalufugus

    Joined:
    Aug 23, 2015
    Messages:
    1,961
    Likes Received:
    757
    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 (Text):
    1.   Area circNearAltar = new Area.Circular(new Coordinate(2154, 3864, 0), 4);
    2.  
    3.     @Override
    4.     public void execute() {
    5.         if(bot != null) {
    6.             bot.currentTaskString = "Walking to rune altar";
    7.         } else {
    8.             System.out.println("Bot was null in WalkToAltar leaf");
    9.         }
    10.         WebPath saved = bot.getAltarPath();
    11.         if(saved == null){
    12.             System.out.println("Generating new path to altar");
    13.             WebPath newPath = Traversal.getDefaultWeb().getPathBuilder().buildTo(circNearAltar.getRandomCoordinate());
    14.             if(newPath != null){
    15.                 System.out.println("New path generated");
    16.                 bot.setAltarPath(newPath);
    17.             }
    18.         } else {
    19.             saved.step();
    20.         }
    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.
     
    #1 Snufalufugus, Mar 3, 2017
    Last edited: Mar 3, 2017
  2. proxi

    proxi s̶c̶r̶i̶p̶t̶ bot*

    Joined:
    Aug 23, 2015
    Messages:
    2,223
    Likes Received:
    501
    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.
     
    Snufalufugus likes this.
  3. Snufalufugus

    Joined:
    Aug 23, 2015
    Messages:
    1,961
    Likes Received:
    757
    Update: Tried to run again and EVERY web path that I attempt to generate is null.
     
  4. Serene

    Serene ( ͡° ͜ʖ ͡°)

    Joined:
    Mar 30, 2015
    Messages:
    2,408
    Likes Received:
    508
    Getting the same thing in exception log, and locally. Sometimes it won't return null, and 15 mins later it may.
     
  5. urbex07

    urbex07 that went well

    Joined:
    Feb 21, 2017
    Messages:
    7
    Likes Received:
    1
    I'm encountering the same problem, could someone post a currently working implementation?
     
  6. Snufalufugus

    Joined:
    Aug 23, 2015
    Messages:
    1,961
    Likes Received:
    757
    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.
     
    urbex07 likes this.

Share This Page

Loading...