Question Are Web paths really "resource intensive"?

Discussion in 'Developer Support' started by SuperBotter, Jun 28, 2016.

?

Web paths or force the user to start near the botting location

  1. Web path

    3 vote(s)
    100.0%
  2. Force user

    0 vote(s)
    0.0%
  1. SuperBotter

    SuperBotter Super Bot Author

    Joined:
    Jun 24, 2016
    Messages:
    101
    Likes Received:
    43
    In Eagles13's API overview, he says:
    Is this true? I know that Bresenham paths are the only other alternative for long distance travel, but they ignore obstacles. Should I use "resource intensive" Web paths or should I force the user to start near the botting location (as I can't prepare the bot to make Bresenham paths from anywhere in the world without getting stuck)?
     
  2. Party

    Party The Favourite

    Joined:
    Oct 12, 2015
    Messages:
    1,734
    Likes Received:
    552
    "Technically". When you ask to generate a WebPath with the default web, you actually send a request to the RM server, which generates the path and sends it back.

    If end-users had to generate paths on their local machines using the default web, it would be incredibly performance costly (just ask Slash).

    Basically we're good guiz.
     
  3. SlashnHax

    SlashnHax The Chosen One

    Joined:
    Dec 10, 2014
    Messages:
    2,779
    Likes Received:
    733
    Ehh, it depends. The default web does all of the pathbuilding on RuneMates servers, as it's so large that it used to use tonnes of resources when built on the users machine. Smaller custom webs aren't all that bad though.
     
  4. Party

    Party The Favourite

    Joined:
    Oct 12, 2015
    Messages:
    1,734
    Likes Received:
    552
    Basically, feel free to use WebPath but if the users too lazy to use their common sense and start it nearby, then they don't really deserve to be using the bot 8)
     
    kazemanie likes this.
  5. SuperBotter

    SuperBotter Super Bot Author

    Joined:
    Jun 24, 2016
    Messages:
    101
    Likes Received:
    43
    @Party @SlashnHax
    Thanks for your replies, they helped me a lot. Time to replace all of my Bresenham paths with Web paths :)
     
  6. AlexH666

    AlexH666 Χ Ξ Σ

    Joined:
    Apr 15, 2016
    Messages:
    348
    Likes Received:
    95
    Keep bresenham paths as fallbacks.
     
  7. SuperBotter

    SuperBotter Super Bot Author

    Joined:
    Jun 24, 2016
    Messages:
    101
    Likes Received:
    43
    Wouldn't it be possible for the Bresenham paths to get the player stuck? And how could a Web path need a fallback? It can go all over RuneScape while accounting for obstacles in the path to the destination.
     
  8. Party

    Party The Favourite

    Joined:
    Oct 12, 2015
    Messages:
    1,734
    Likes Received:
    552
    Sometimes you can't generate a path with the default web, so you need to revert to fallbacks.
     
    kazemanie and AlexH666 like this.

Share This Page

Loading...