Inserters feeding into train act before station can report signals.
Posted: Wed Dec 17, 2025 7:44 pm
Inserters feeding into a train will react and begin inserting before the station has a chance to report on signals from the train.
I have a set of filtered inserters set to insert into a train. The filters are set based on what is inside the train, which means I have to read the contents of the train and run the values through a set of combinators from which the filters are set.
However, when there is no train at the station the rest of the circuit is still active and provides a set of filters for the inserters, which are different when there is no train in the station. This should not be a problem since as soon as the train arrives the filters are set correctly, except for the very first tick on arrival. There is one tick just when the train arrives when the inserters are active with the old filters which lets them do one swing inserting incorrect items and messing up the train cargo.
I was able to get around the problem easily by deactivating the inserters unless there is a train present, specifically the final decider combinator setting the filters also checks the train ID before outputting anything. But I think inserters should not react before the station has a chance to report signals from the train.
I have a set of filtered inserters set to insert into a train. The filters are set based on what is inside the train, which means I have to read the contents of the train and run the values through a set of combinators from which the filters are set.
However, when there is no train at the station the rest of the circuit is still active and provides a set of filters for the inserters, which are different when there is no train in the station. This should not be a problem since as soon as the train arrives the filters are set correctly, except for the very first tick on arrival. There is one tick just when the train arrives when the inserters are active with the old filters which lets them do one swing inserting incorrect items and messing up the train cargo.
I was able to get around the problem easily by deactivating the inserters unless there is a train present, specifically the final decider combinator setting the filters also checks the train ID before outputting anything. But I think inserters should not react before the station has a chance to report signals from the train.