Factorio

Factorio

View Stats:
Mister Dawg Jan 14, 2018 @ 4:48pm
Would the Circuit Network be able to ...
... make a train go to a different station depending on whether the train is empty or not?

I have an artillery train that runs around the perimeter of my base. 17 total stops, waiting for 'inactivity' at each. If the artillery wagons run out of ammo, the train will continue to all the stops until it reaches the reload station.

I would prefer it return to the reload station as soon as all the wagons run out of ammo.

I can't envision how to wire this up, but then I've only used the circuit network a couple of times.
< >
Showing 1-3 of 3 comments
KatherineOfSky Jan 14, 2018 @ 5:23pm 
Since you can read train contents, I believe it would be possible to wire the stations to be Inactive (or whatever the term in-game is) IF the train contents has zero shells. So it should go back to the reload station. (I've not tested this -- I would think that the train empty info would pass to each station along the circuit network, instead of each station needing to read it locally).
Mister Dawg Jan 14, 2018 @ 5:26pm 
Sounds logical. I will give it a try. I figured you could read stations, but I wasn't sure about train contents, and I couldn't figure out what to do if I could... like 'turn off' subsequent stations... since you can't really control a train via switches etc... Anyway. Let's see...
Coffee Daemon Jan 15, 2018 @ 6:02am 
The only way I can see you being able to do this would be to have every station named the same, and to trigger each stop via circuits. A.K.A. opening the station instead of telling the train itself where to go. It's alot of wiring but possible. To ensure a smooth flow of trains, I'd also recommend a second station infront of the main stations just so the train has somthing to cycle through to on the list.

Somthing like:
All train stations you want to fire from are called Artillery areas.
Assuming 10 artillery areas
Just after each artillery area is another train stop called extra (or whatever).
Firing point is set to enabled on circuit network. Extra is always open for use.
Train is set to go to Firing Point for 30 seconds, then to Extra.
At extra, send a signal, say 1 artillery wagon to a counter.
Each artillery area opens up at signals 1 artillery wagon, 2 artillery wagon e.t.c.
Once the counter hits 11 (over the amount of artillery areas), reset the counter to 1.

If you counted the ammo in each extra station and it hit 0 you could open up the resupply station. This would probally be best done BEFORE the counter in the circuits. That way the train would go back to where I ran out of ammo and hopefully finish the job.
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Jan 14, 2018 @ 4:48pm
Posts: 3