timthebot Posted January 14, 2016 Share Posted January 14, 2016 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? Quote Link to comment Share on other sites More sharing options...
Chris Posted January 14, 2016 Share Posted January 14, 2016 http://osbot.org/api/org/osbot/rs07/api/webwalk/package-summary.html Quote Link to comment Share on other sites More sharing options...
Developer MGI Posted January 15, 2016 Developer Share Posted January 15, 2016 INodeRouteFinder.createSimple() Quote Link to comment Share on other sites More sharing options...
timthebot Posted January 15, 2016 Author Share Posted January 15, 2016 (edited) 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 January 15, 2016 by timthebot Quote Link to comment Share on other sites More sharing options...
Developer MGI Posted January 15, 2016 Developer Share Posted January 15, 2016 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? Quote Link to comment Share on other sites More sharing options...
timthebot Posted January 15, 2016 Author Share Posted January 15, 2016 I'm just using the .jar you get when you click download. Looking in the MANIFEST shows: build: 2.4.33 Quote Link to comment Share on other sites More sharing options...
timthebot Posted January 15, 2016 Author Share Posted January 15, 2016 I'm so dumb. 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 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 Quote Link to comment Share on other sites More sharing options...
Developer MGI Posted January 16, 2016 Developer Share Posted January 16, 2016 I'm so dumb. 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 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? Quote Link to comment Share on other sites More sharing options...
timthebot Posted January 16, 2016 Author Share Posted January 16, 2016 (edited) 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 January 16, 2016 by timthebot Quote Link to comment Share on other sites More sharing options...