Circuit networks: make it practical to determine whether a train was empty when it departed from the train stop
Posted: Mon Dec 02, 2019 1:22 am
I've done a cursory search for this suggestion and found nothing, apologies if I missed a thread.
Consider a train stop with "read train contents" and "read stopped train", enabled, a train waiting at the station with the condition "empty cargo inventory", and inserters taking material out. Once it's empty, the train departs the station. The station's circuit signal goes straight from e.g. "61 T, 5 iron plate" to nothing. It would be very handy if the "61 T" signal stuck around just one tick longer, so it would be possible to determine that the train left the station empty. One possible way of implementing this would be to delay the train's departure just one tick.
The current work-around is to add "AND 1s inactivity" to the train's wait condition, which I think is really unfortunate.
Consider a train stop with "read train contents" and "read stopped train", enabled, a train waiting at the station with the condition "empty cargo inventory", and inserters taking material out. Once it's empty, the train departs the station. The station's circuit signal goes straight from e.g. "61 T, 5 iron plate" to nothing. It would be very handy if the "61 T" signal stuck around just one tick longer, so it would be possible to determine that the train left the station empty. One possible way of implementing this would be to delay the train's departure just one tick.
The current work-around is to add "AND 1s inactivity" to the train's wait condition, which I think is really unfortunate.