Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Feature Request/WIP: Rail Planner track builder #7607
I am working on this Rail Planner tool, a rail building tool which lets you designate a start point and a goal point. 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 . This saves a lot of effort in "planning" your route between two points, and I think it will make it easier for mobile/console/laptop players to play the game.
There's still some work to do, though:
For now I am going to implement this for 1. ship canals and then 2. roads as they have simpler mechanics compared to rails.
For now, you can view and compile the source here. So far, I've developed this against the CityMania client codebase, but the rest of my progress will be made using the OpenTTD/OpenTTD GitHub codebase.
As far as I know, there are no search algorithms which are memory-bound and can work in a dynamic environment. If you know of any, please let me know!
I look forward to your feedback/suggestions :)
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!