Add alternative routes and tile distance display#175
Add alternative routes and tile distance display#175sasoder wants to merge 28 commits intoSkretzo:masterfrom
Conversation
|
This is a nice addition! Would it not make more sense to list the alternative paths in ascending order from shortest at the top to longest at the bottom, similar to how most people read a book?
Is there any particular reason why are you using A*? Could you not simply let the BFS pathfinder continue running once it found the shortest path? private final Set<TransportId> excludedTransportIds;Why are you creating a new |
Good point. Keep it the way you did it with the shortest at the bottom.
A different colour for the shortest path is a nice addition. You could also make that configurable too, since the white text is already configurable. |
Colour config for best path + reworked path alternatives
|
@Skretzo I ended up reworking it from scratch by aligning more with the existing codebase + your suggestions. It also solved some bugs. You can now also select a color for the best path if alternatives are showing!
|
remove unnecessary vars
|
This is a fantastic change! Let me know if there's anything I can do to help push this into the next published build. I also want to bump this! |
Hehe, I have not made it easy for other people to contribute, since I keep changing the code. So they constantly need to fix the conflicts. I have a few things I want to test myself, but haven't had the time to do it yet. |
|
@Skretzo let me know if you're down to merge the pr if I resolve the conflicts and I'll get on it :) or are you currently working on architectural changes that might affect it? I'm currently pretty low on time so happy for @BeniReydman to co-author if that helps move things forward |





Fixes #169, maybe some aspect of #120
Adds two new features to help players compare different travel options:
Alternative paths: show multiple teleport options after the best path. Configurable count (0-10) via new "Show alt. paths" setting.

Path length: all paths can now show their tile distance in parentheses for easier comparison.
