Train depot
Posted: Wed Jun 26, 2019 1:38 pm
Hello again,
Yesterday while playing Factorio I got into a situation where I needed to create a train depot and I noticed that in the current situation is not possible to do so without wiring EVERYTHING between long distance stations which is not pretty nice.
Situation:
We have 2 trains;
* Train 1: For transporting Sulfuric Acid
* Train 2: For transporting Uranium ore
We have 6 stations;
* Station 1a: Uranium ore extractor; Station 1b: Empty Sulfuric Acid. (Both stations are in same area)
* Station 2a: Uranium ore extractor; Station 2b: Empty Sulfuric Acid. (Both stations are in same area)
* Station 3: Uranium extractor for my centrifuges and Filling train with Sulfuri Acid (1 station for 2 trains).
* Station 4: Train depot where the Train 1 should awaits the signal.
Normally you would suggest me to separate Station 3 to 2 stations, one for each train or just moving the pump to Station 4 and the problem is solved itself, but I like to complicate things, to challenge myself and better understand mechanics of this game.
Problem:
Train 1, the one that transport Sulfuric Acid, have the following path:
Station 4 (Received signal, go to destination) -> Station 1/2b (empty H2SO4) -> Station 3 (Fill H2SO4) -> Station 4 (Awaits new signal).
Stations 1/2b have a circuit signal connected to local tank storage, if Sulfuric Acid is less than 5k send signal A with enable/disable value.
So if the current station has enough Sulfuric Acid to keep miners working, disable the station.
The problem happens when both stations are filled with Sulfuric Acid and both stations are disabled the Train 1 keep going between Station 4 -> Station 3 in a loop.
I cannot use AND/OR conditions because I wouldn't know when Station1/2 needs another deliver of Sulfuric Acid and the only solution is to wiring the entire network from Station1/2 to Station 4 which in some circumstance it would be very impractical, expecially on very long distances. So I don't have any solution to keep Train 1 blocked in Station 4 until Station 1 or Station 2 is enabled again.
Solution:
Add another conditions for trains, Wait for next station to be available, not skipping the disabled one.
Yesterday while playing Factorio I got into a situation where I needed to create a train depot and I noticed that in the current situation is not possible to do so without wiring EVERYTHING between long distance stations which is not pretty nice.
Situation:
We have 2 trains;
* Train 1: For transporting Sulfuric Acid
* Train 2: For transporting Uranium ore
We have 6 stations;
* Station 1a: Uranium ore extractor; Station 1b: Empty Sulfuric Acid. (Both stations are in same area)
* Station 2a: Uranium ore extractor; Station 2b: Empty Sulfuric Acid. (Both stations are in same area)
* Station 3: Uranium extractor for my centrifuges and Filling train with Sulfuri Acid (1 station for 2 trains).
* Station 4: Train depot where the Train 1 should awaits the signal.
Normally you would suggest me to separate Station 3 to 2 stations, one for each train or just moving the pump to Station 4 and the problem is solved itself, but I like to complicate things, to challenge myself and better understand mechanics of this game.
Problem:
Train 1, the one that transport Sulfuric Acid, have the following path:
Station 4 (Received signal, go to destination) -> Station 1/2b (empty H2SO4) -> Station 3 (Fill H2SO4) -> Station 4 (Awaits new signal).
Stations 1/2b have a circuit signal connected to local tank storage, if Sulfuric Acid is less than 5k send signal A with enable/disable value.
So if the current station has enough Sulfuric Acid to keep miners working, disable the station.
The problem happens when both stations are filled with Sulfuric Acid and both stations are disabled the Train 1 keep going between Station 4 -> Station 3 in a loop.
I cannot use AND/OR conditions because I wouldn't know when Station1/2 needs another deliver of Sulfuric Acid and the only solution is to wiring the entire network from Station1/2 to Station 4 which in some circumstance it would be very impractical, expecially on very long distances. So I don't have any solution to keep Train 1 blocked in Station 4 until Station 1 or Station 2 is enabled again.
Solution:
Add another conditions for trains, Wait for next station to be available, not skipping the disabled one.