Having LuaRailPath on trains is great, but knowing if a train can path before setting a schedule and how long that path will be would be great.
Currently to find a train closest to a given stop through LuaRailPath we have to:
1) set the destination in train schedule
2) send it off
3) quickly grab the path
4) remove the schedule entry
5) send the train back to the original stop and hope it didn't creep out of the station by now
Proposal:
add a function rail.get_path(rail) -> LuaRailPath between two rail pieces or nil
Ability to generate LuaRailPath between two rail pieces
- themadgunman
- Inserter
- Posts: 47
- Joined: Wed Jan 18, 2017 5:07 pm
- Contact:
Re: Ability to generate LuaRailPath between two rail pieces
Agreed, knowing if there is a valid path between two rail segments before sending a train would indeed be very useful
-
- Burner Inserter
- Posts: 17
- Joined: Mon Aug 22, 2016 3:42 pm
- Contact:
Re: Ability to generate LuaRailPath between two rail pieces
Agreed x2! I was just going to post a feature request / bug report for LTN that trains get assigned for stops they can't reach. If this makes it into LTN then I won't have to redesign my depots
Re: Ability to generate LuaRailPath between two rail pieces
+11!
Would love to have this too.
Greetings from Vietnam
Would love to have this too.
Greetings from Vietnam