NguhRoutes: Difference between revisions
made one think into a code tag |
No edit summary |
||
| Line 9: | Line 9: | ||
; <code>/nr start <dest></code> or <code>/nrs <dest></code> : Start a route from your current location to the station with code <code>dest</code>. It will suggest you use a warp if it thinks that is faster. | ; <code>/nr start <dest></code> or <code>/nrs <dest></code> : Start a route from your current location to the station with code <code>dest</code>. It will suggest you use a warp if it thinks that is faster. | ||
; <code>/nr start <start> <dest></code> or <code>/nrs <start> <dest></code> : Start a route from your the station with code <code>start</code> to the station with code <code>dest</code>. It will not suggest warps. | ; <code>/nr start <start> <dest></code> or <code>/nrs <start> <dest></code> : Start a route from your the station with code <code>start</code> to the station with code <code>dest</code>. It will not suggest warps. | ||
; <code>/nr start <x> <y> <z> [nether]</code> : Start a route from your current location to the coordinate (x, y, z). Add <code>nether</code> at the end to specify that it is a coordinate in the Nether. | |||
; <code>/nr stop</code> : Cancel the current route. | ; <code>/nr stop</code> : Cancel the current route. | ||
; <code>/nr search <regex></code> : Search for a station code based on a name or part of a name. The search query is interpreted as a regex, in case you want to do complex searches. | ; <code>/nr search <regex></code> : Search for a station code based on a name or part of a name. The search query is interpreted as a regex, in case you want to do complex searches. | ||
Revision as of 21:04, 9 November 2025
NguhRoutes is a route planner mod for Nguhcraft. It lets you enter stations that you want to go to and it finds a route to that station and tells you where you need to go next.
Manual
Besides the commands, there are a number of keybinds in that are available in the usual control settings. They are all unbound by default.
Commands
The main command is /nguhroutes, with /nr as a shortcut. There is also /nrs, which is a shortcut for /nr start.
/nr start <dest>or/nrs <dest>- Start a route from your current location to the station with code
dest. It will suggest you use a warp if it thinks that is faster. /nr start <start> <dest>or/nrs <start> <dest>- Start a route from your the station with code
startto the station with codedest. It will not suggest warps. /nr start <x> <y> <z> [nether]- Start a route from your current location to the coordinate (x, y, z). Add
netherat the end to specify that it is a coordinate in the Nether. /nr stop- Cancel the current route.
/nr search <regex>- Search for a station code based on a name or part of a name. The search query is interpreted as a regex, in case you want to do complex searches.
/nr reload- Redownload the network data from the wiki and recalculate the routes. This may take a few seconds, but a message should be displayed at the end if it was successful.
/nr reload nonether- Same as
/nr reload, but it excludes routes that cross dimensions. /nr restart- Start a new route to the destination of the current route, but from your current location. This can be useful for example if there is some kind of desync where the mod doesn't realise you have made it to a stop further ahead in the route than the one it is currently telling you to go to (because the data is inaccurate).
/nr status- Display whether the network data from the wiki has been successfully loaded or not.
/nr stationlist <ngationcode>- Display all stations in a ŋation, provided the two-letter code for that ŋation.
/nr random- Start a route to a random station.
Measuring
(Video tutorial hopefully coming soon)
NguhRoutes has a set of commands for measuring line segments and generating the JSON for the network file. Keybinds are also available for these commands, so that you can quickly start/stop the timer. You could also use CommandKeys if you want more complex shortcuts.
The tracking is done for each station, so you start the tracking at the one station, go to the next one, stop it, and then that gives you the information for the one that you stopped at with the time and distance since the previous one, and then you do the same for the next one etc. If you are adding to a line that already has data in the network file, make sure you are going in the same direction as the preexisting data.
/nr measure start starts the tracking. Usually I do this while in a minecart and then press the button and go. /nr measure stop stops the tracking and copies the JSON for the end stop to your clipboard, with the time and distance since the start, which you can paste into the network file. You can also copy the last tracking information using /nr measure copy, and you can copy both the start and end stops using /nr measure copy both, which is useful at the start of a line.
In the network file, each stop has the time and distance since the previous one, unless it is the first station or you cannot get there from the previous station (put "impassable" as a stop if the line is broken between two stations). For loops, put "loop": true as part of the line object and it will use the time from the first stop for the time that it takes to go from the last stop to the first. It is actually not strictly necessary to include the time and distance, so if "time" is not provided, it will approximate it using "dist", and if that is not available it will calculate the Manhattan distance between the stops and try to use that. The coordinates must be provided however.