[2.0.21] Train Count including trains leaving the station.

Bugs that are actually features.
bountygiver
Burner Inserter
Burner Inserter
Posts: 8
Joined: Fri Nov 15, 2024 5:45 am
Contact:

[2.0.21] Train Count including trains leaving the station.

Post by bountygiver »

What did you do?
I use a train station's "Read Train Count" signal to start harvesting fruit when a train is approaching. And stop when the number of fruits harvested reaches the amount the train can carry. By using OR decider to enable the agriculture towers when the train count signal is more than 1 and the amount of fruit in the inserters, chests, belt and the train contents is lower than certain number.
What happened?
The harvest did start and stop properly, however the harvest starts again as soon as the train leaves because the train leaves so the station is no longer reading the train contents, but the train count still remains to be 1. This behaviour lasts until the train reaches the next station.
What did you expect to happen instead? It might be obvious to you, but do it anyway!
The train count should drop to 0 when the train leaves the station, as per the description it says it outputs the number of train that is coming to the station including stopped trains, which should not include trains leaving the station.
Does it happen always, once, or sometimes?
It always happens.
Loewchen
Global Moderator
Global Moderator
Posts: 9351
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [2.0.21] Train Count including trains leaving the station.

Post by Loewchen »

That is intended, the train is considered in station until it leaves its block.
bountygiver
Burner Inserter
Burner Inserter
Posts: 8
Joined: Fri Nov 15, 2024 5:45 am
Contact:

Re: [2.0.21] Train Count including trains leaving the station.

Post by bountygiver »

If that's the case, that should be mentioned in the description. It mentions trains GOING to the station, where including stopped trains is explicitly mentioned but not trains still in the block.
Post Reply

Return to “Not a bug”