Disabling depots
Posted: Tue May 29, 2018 7:33 pm
I have a problem with fluid wagons occasionally getting filled with the wrong fluid, and then going around screwing up basically everything. The same thing is happening with cargo wagons, but this is less of a problem as filter inserters are set up properly at stations (now - thanks to this forum!) so don't try to unload the wrong thing. I've tried to solve this by having depots read the train contents and disable if there is anything left in the train. The problem is, this isn't working.
I've tried two methods - first, connecting the station directly to a pole, and then reading the train contents and only enabling the stop if the train is empty. This looks like it is going to work - lamp is green when no train is in the station, train comes in, lamp goes blue if train is empty, and red if not empty. Problem is, the train still gets a new schedule and drives away.
The second solution I tried was a suggestion I read in this forum, whereby a decider combinator reads the train contents and only sends the depot signal if the train is empty. Again, this looks like it is working - lamp is green with no train, blue with an empty train and purple with a non-empty train (no longer a depot bus has the same name as the depots). But, again, the train will get a new schedule and drive away!
How can I actually stop a train in a depot? Disabling the depot doesn't do anything, stopping the station even being a depot isn't doing anything! I just don't understand how the train is getting a schedule.
I've tried two methods - first, connecting the station directly to a pole, and then reading the train contents and only enabling the stop if the train is empty. This looks like it is going to work - lamp is green when no train is in the station, train comes in, lamp goes blue if train is empty, and red if not empty. Problem is, the train still gets a new schedule and drives away.
The second solution I tried was a suggestion I read in this forum, whereby a decider combinator reads the train contents and only sends the depot signal if the train is empty. Again, this looks like it is working - lamp is green with no train, blue with an empty train and purple with a non-empty train (no longer a depot bus has the same name as the depots). But, again, the train will get a new schedule and drive away!
How can I actually stop a train in a depot? Disabling the depot doesn't do anything, stopping the station even being a depot isn't doing anything! I just don't understand how the train is getting a schedule.