Limit trains routed to a stop

Post Reply
User avatar
Omnifarious
Filter Inserter
Filter Inserter
Posts: 267
Joined: Wed Jul 26, 2017 3:24 pm
Contact:

Limit trains routed to a stop

Post by Omnifarious »

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.

User avatar
Omnifarious
Filter Inserter
Filter Inserter
Posts: 267
Joined: Wed Jul 26, 2017 3:24 pm
Contact:

Re: Limit trains routed to a stop

Post by Omnifarious »

Does anybody have any opinions on this? This seems like a fairly simple primitive, that if implemented, would enable a lot of things.

IronCartographer
Filter Inserter
Filter Inserter
Posts: 454
Joined: Tue Jun 28, 2016 2:07 pm
Contact:

Re: Limit trains routed to a stop

Post by IronCartographer »

This is actually something mentioned before, by myself and others: viewtopic.php?p=258253#p258253

Given how much of a minefield train logic is, I wouldn't put too much weight on it happening...but it would be nice if there were a clean solution.

User avatar
Omnifarious
Filter Inserter
Filter Inserter
Posts: 267
Joined: Wed Jul 26, 2017 3:24 pm
Contact:

Re: Limit trains routed to a stop

Post by Omnifarious »

IronCartographer wrote:
Wed Dec 11, 2019 9:56 pm
This is actually something mentioned before, by myself and others: viewtopic.php?p=258253#p258253

Given how much of a minefield train logic is, I wouldn't put too much weight on it happening...but it would be nice if there were a clean solution.
Thanks for pointing me at that. :-)

mrvn
Smart Inserter
Smart Inserter
Posts: 5696
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: Limit trains routed to a stop

Post by mrvn »

Maybe you could write a simpler mod that would work with station names with patterns.

For example name your station "Iron Plate 1", "Iron Plate 2", ... and then every time a train has "Iron Plate X" as next stop it would pick one of "Iron Plate 1" or "Iron Plate 2" depending on the number of trains for each station.

curiosity
Filter Inserter
Filter Inserter
Posts: 321
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: Limit trains routed to a stop

Post by curiosity »


mrvn
Smart Inserter
Smart Inserter
Posts: 5696
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: Limit trains routed to a stop

Post by mrvn »

It's in the GUI too, been there for quite a while. It can also be circuit controlled.

Post Reply

Return to “Implemented mod requests”