[2.0.13] Delay before "read train count" signal gets updated

Bugs that are actually features.
AndreasTPC
Burner Inserter
Burner Inserter
Posts: 6
Joined: Wed Dec 13, 2017 2:36 pm
Contact:

[2.0.13] Delay before "read train count" signal gets updated

Post by AndreasTPC »

There is a significant delay between a train leaving the station and the "read train count" signal from the station going down. In the below screenshot I have two train stations set to "read train count" and both stations hooked up to the same circuit network. Just after the train leaves the first station the combined count reads 2, as seen in the below screenshot. Both stations are counting the same train.

This means you get wrong results if you're trying to use circuit networks to track how many trains are in use. Ideally the train count of the departing station and the new destination would get updated simultaneously.
factorio-trains.png
factorio-trains.png (5.47 MiB) Viewed 255 times
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3335
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.13] Delay before "read train count" signal gets updated

Post by boskid »

Thanks for the report however what you are seeing is actually a feature. You can read about it in https://factorio.com/blog/post/fff-389, section "Reservation upgrade". In general the train will hold the reservation for as long as it is seen in the rail block next to the train stop it is departing from because that means it is still occupying slot of the station by disallowing other trains from entering it. If there are absolutely no signals in the rail network, then the train will release that reservation at most when arriving at the next train stop. You can see some details about reservations by using `show-train-reservations` debug setting from under F4.
Post Reply

Return to “Not a bug”