Factorio

Factorio

View Stats:
Train departure if one waggon is empty
Since my train station doesnt perfectly empty all waggons at the same time, sometimes a train is idleing in a train station, with 100 ore in the last and the first waggon. Is there a way to tell a train to departure, if at least one waggon is fully emptied instead of the whole train?
< >
Showing 1-7 of 7 comments
Jupiter3927 May 13, 2017 @ 1:03pm 
I have the same problem.
I tried using a circuit network to bother my train to move when one set of chests was empty but it got wonky and gave me negative and 0 values where negative and 0 values shouldn't exist.
Chatastroph May 13, 2017 @ 1:08pm 
Try the Traincondition Inactivity. For Example, when nothing for 10 Seconds happen the train should depart anyway, even when it's not completly Empty.
Jupiter3927 May 13, 2017 @ 1:16pm 
That would work if the 1 car that isn't completely empty wasn't touched for the inactivity period.
Fel May 13, 2017 @ 1:18pm 
You can always play with values instead of "empty".

Let's say you transport iron ores, you can set the departure condition to "iron ore < 100".
Obviously, you will have to tweak the amount based on stack size and your own setup, but it's a fairly good way to do that if you didn't balance your unloading.

You could also try to do some logic with circuit network stuff, but I find it much easier to just set that condition and change it if it's either too high or too low.

EDIT:
Combine that with the inactivity for better results, so that it doesn't iddle for too long if nothing is unloaded for a while, but that runs the risk of having full trains constantly going back and forth if your unloading gets filled up.
Last edited by Fel; May 13, 2017 @ 1:20pm
Chatastroph May 13, 2017 @ 1:20pm 
Another Option would be, you connect the Chest of each waggon to its own Circuitnetwork. Put a decidercombinator for each waggon with a condition: Chestcontent = maximum Chestcontent and as Output a Signal like F for Full. Connect this to the trainstation and then use the traincondition: Circuitnetwork F > 0.
IamNic May 13, 2017 @ 1:38pm 
Originally posted by Jupiter3927:
That would work if the 1 car that isn't completely empty wasn't touched for the inactivity period.
Then set the inactivity to a very - very short time period.
Warlord May 13, 2017 @ 2:20pm 
EDIT: I assume you are using a 2 wagon train below:

If the two wagons have the same cargo, it's far better to use a belt balancer after unloading than to try to setup a condition like "inactivity".

If the cargo is different, set two leave conditions. Each cargo wagon can hold 40 stacks of an item, so it has 2000 ore, 4000 of an item that is 100 stacks (steel, plates), or 8000 of 200-stack circuits. Set it to leave when
CARGO A = 0
OR CARGO B = 0.

If both wagons are the same and for some reason you don't balance the output (I actually have a case where this happens), do this:
-
CARGO <= (whatever a single wagon can hold)
AND 1 SECONDS OF INACTIVITY
-
This will let the train leave if the inserters stop for any reason, and only if at least one wagon has been fully unloaded. I have a coal train taking from remote coal mines to a storage depot, which simply loads into chest after chest and then loads into a train bound for more local consumption. This way I don't have to schedule coal for plastics to come directly from a coal mine that might run out on me. I have no belts, so I can't balance for when I have a single wagon train pickup from the storage. So I just have the supply train go back to the mining base if it could only unload the front wagon.
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: May 13, 2017 @ 12:55pm
Posts: 7