Limit trains routed to a stop
Posted: Sun Dec 01, 2019 8:12 pm
There is fundamental functionality that I feel is missing in Factorio that (given my very limited knowledge of the game internals) seems like it wouldn't be too hard to implement. This missing functionality results in mods that I think do too much (Train Supply Manager and Logistics Train Network) or mods that resort to extremely hacky solutions like Concurrent Train Restriction that make me reluctant to use them.
It would be really nice (even if it wasn't exposed in the base game in any way) if there was a way to limit the number of trains that can be routed to a stop and/or a way to query how many trains are currently travelling to a stop. The latter would allow circuit conditions to be set at other stops to hold the train there until the number of trains routed to a stop was less than a certain value. But... it has the issue that it's a loop between the circuit logic and the train dispatch logic that may require something like only one train being dispatched to a given stop per tick or something equally ugly.
It would be really nice (even if it wasn't exposed in the base game in any way) if there was a way to limit the number of trains that can be routed to a stop and/or a way to query how many trains are currently travelling to a stop. The latter would allow circuit conditions to be set at other stops to hold the train there until the number of trains routed to a stop was less than a certain value. But... it has the issue that it's a loop between the circuit logic and the train dispatch logic that may require something like only one train being dispatched to a given stop per tick or something equally ugly.