Page 1 of 1
[2.0.49]Train stations keep train reservations until the train has reached the next station.
Posted: Tue May 13, 2025 10:05 pm
by triggerman602
When a train leaves a station with a train limit, the train station keeps the trains reservation until the departed train reaches the next station. The train is also counted on the train count single after it has left. I expected the station would be available and the train count would read 0 the moment the train departs from the station.
Re: [2.0.49]Train stations keep train reservations until the train has reached the next station.
Posted: Tue May 13, 2025 10:09 pm
by boskid
You described how one of the features work:
https://www.factorio.com/blog/post/fff-389
Reservation upgrade
...
But there was one little problem with the system, which could even cause traffic jams/deadlocks, and which was made much more important with the generic schedules.
The problem is that once the train decides to leave the station, it instantly clears the reservation of the train limit, while still physically blocking the stop. This lets another train start its journey toward the stop, while there might not be enough space to wait without blocking the mainline.
So we fixed it, so the train will only give up its reservation once it leaves the block with the train stop. I would be interested to know if other people encountered this problem in 1.1 as well.
Re: [2.0.49]Train stations keep train reservations until the train has reached the next station.
Posted: Tue May 13, 2025 10:13 pm
by triggerman602
Thanks for the clarification. It looks like odd behaviour when no blocks are present.
Re: [2.0.49]Train stations keep train reservations until the train has reached the next station.
Posted: Tue May 13, 2025 10:19 pm
by boskid
triggerman602 wrote: Tue May 13, 2025 10:13 pm
Thanks for the clarification. It looks like odd behaviour when no blocks are present.
I know, this solution is slightly weak in case of rail network without any rail signals but a decision was made that in most cases either players have only one train and no signals and this behavior is not relevant or a player has multiple trains, signal present and this behavior is also not relevant. Releasing reservation when reaching next station was implemented as a safeguard so if a rail network indeed has no rail signals to guarantee a reservation is released at some point - without this a train would keep reservations indefinitely, one for each train stop visited if there were no signals present.