Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

NodeRouteFinder

Featured Replies

Hello everyone

 

In OSBot 2.4.29 there was a class called NodeRouteFinder. This has been removed in OSBot 2.4.33 and instead there now exists only a SimpleNodeRouteFinder.

 

How do I get information on the future status of this method?

  • Author

Thanks very much. As far as I can see this does not yet allow routefinding across the world, routes returned are null...

Position catherby = new Position(2808, 3439, 0);
Position varrock = new Position(3253, 3420, 0);
INodeRouteFinder router = INodeRouteFinder.createSimple();

List<IDirection> route = router.route(varrock, catherby);
System.out.println(route); // returns null

Am I doing something wrong, or is this stuff just too immature at the moment? I know these classes are currently undergoing development... I see the createAdvanced() throws RuntimeException: not implemented yet.

 

Just to be clear, I require a routing function that can return a route if there exists one purely on foot, otherwise null.

 

For example:

 

RouteFrom(Lumbridge, Ardougne) -> returns a valid route walking via white wolf mountain.

RouteFrom(Varrock, Varrock Sewers) -> returns null since there is no way to walk from A to B, a "teleport" (ladder) must be used.

 

Ideally this class would work with or without an active client.

 

What I described appears to be the desired functionality of NodeRouteFinder in 2.4.29, however I assume there were issues that meant it has been removed as opposed to simply being marked deprecated...

Edited by timthebot

  • Developer

Thanks very much. As far as I can see this does not yet allow routefinding across the world, routes returned are null...

Position catherby = new Position(2808, 3439, 0);
Position varrock = new Position(3253, 3420, 0);
INodeRouteFinder router = INodeRouteFinder.createSimple();

List<IDirection> route = router.route(varrock, catherby);
System.out.println(route); // returns null

Am I doing something wrong, or is this stuff just too immature at the moment? I know these classes are currently undergoing development... I see the createAdvanced() throws RuntimeException: not implemented yet.

 

Just to be clear, I require a routing function that can return a route if there exists one purely on foot, otherwise null.

 

For example:

 

RouteFrom(Lumbridge, Ardougne) -> returns a valid route walking via white wolf mountain.

RouteFrom(Varrock, Varrock Sewers) -> returns null since there is no way to walk from A to B, a "teleport" (ladder) must be used.

 

Ideally this class would work with or without an active client.

 

What I described appears to be the desired functionality of NodeRouteFinder in 2.4.29, however I assume there were issues that meant it has been removed as opposed to simply being marked deprecated...

 

 

Certain connections (such as varrock severs ladder) are not introduced yet, expect to see them available next week.

The code that you have posted does not return null for me - what build are you using?

  • Author

I'm just using the .jar you get when you click download. 

 

Looking in the MANIFEST shows:

 
build: 2.4.33
 
  • Author

I'm so dumb. facep.gif It helps if you actually run the jar and click the "install webwalking" button before you try to run it...

 

I've got routes working now :D It seems to force printing information to the terminal, what's the best way to turn this off? Currently I'm just temporarily redirecting System.out to filter out these messages, but ideally there would be a less ugly fix...

 

Many thanks for everything so far, this has been extremely helpful already

 

  • Developer

I'm so dumb. facep.gif It helps if you actually run the jar and click the "install webwalking" button before you try to run it...

 

I've got routes working now biggrin.png It seems to force printing information to the terminal, what's the best way to turn this off? Currently I'm just temporarily redirecting System.out to filter out these messages, but ideally there would be a less ugly fix...

 

Many thanks for everything so far, this has been extremely helpful already

 

What purpose do you need webwalking for without running an active client?

  • Author

What purpose do you need webwalking for without running an active client?

 

I'm working on a standalone runescape route finder. The vision I have is: given skills/quests/items on character will return the most optimum route for a task, considering accessible teleports/boats/fairy rings/all transportation methods.

 

This tool will then be used in my other project which will try to "evolve" the runescape character along the most efficient levelling route. For example:

 

Take current stats/quests/etc.

Generate 10 candidate "evolved" characters, with small deltas in skills/quests (e.g. +5 agility, +5 fm, + priest in peril)

Compare these small deltas with the resulting change in route speed.

 

Use successful permutations to attempt to find a random, but efficient, path for levelling in order to complete a certain route.

 

Bear in mind all of this is just an interesting problem I've thought up and would like to solve. It's actual use in any script is not really my interest.

Edited by timthebot

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.