New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Rail/Road/Tram/Canal-Planner (WIP) #7607
Conversation
The demo video page says Access denied... :( |
Thanks, fixed! |
Thanks for this. The video is pretty neat, but I don't know if this is something that would be accepted for vanilla OpenTTD. As there has been no activity on this PR for some, I'm proposing closing it in a few weeks if nothing more has changed, as we try to keep the PR count low. Thanks for contributing! |
Hi sorry for the hiatus - I've been very busy with school. I'm going to work on this in January, if not earlier :) |
Hello |
I had an existing implementation last year (on CMClient repo fork), ported to this repo just now. |
wow! this is absolutely fascinating. are you able to set how long it prefers curves to be? |
Thanks :) Curve length is WIP, I believe @ldpl has a similar tool in development and he has implemented curve length limits. Also @andythenorth could you un-stale this PR? |
…working (or compilable) at the moment.
Hi @Hexus-One ! I was wondering if you were still working on this? It looks really interesting .. have not looked at the code yet, or if it fits in vanilla OpenTTD, but I like the concept and idea :) If there is something we can help you with, do let us know! Otherwise see this as a friendly reminder you have an open Pull Request in draft mode :) Tnx! |
For now I am going to close this PR. Not because we are not interested, but because it appears this PR is sitting idle :) Please feel free to re-open this PR if I am in the wrong here, not a problem at all! (just tidying up the Pull Request list :)). |
Hello!
I am working on a series of route planners, which will let you quickly build rail, road, tram and ship routes between two points. It is based on the Factorio Rail Planner, and it uses A* path search algorithm to find the shortest route from the start to the goal. It previews the track before you build, and can be cancelled with the shift key. This saves a lot of effort in building long or complex routes between two points, and I think it will make it easier for mobile/console/laptop players to play the game.
Here's a demo video of the rail planner in action (WIP)
Here is the canal planner (WIP). It can build locks!
There's still some work to do, though:
For now I am going to implement this for 2. roads as they have simpler mechanics compared to rails. The current codebase is a mess so I will try clean it up and modularise it so it uses a single class file for the A* algorithm, with separate functions for node expansion/creation.
I look forward to your feedback/suggestions :)