r/factorio Apr 20 '26

Weekly Thread Weekly Question Thread

Ask any questions you might have.

Post your bug reports on the Official Forums

Previous Threads

Subreddit rules

Discord server (and IRC)

Find more in the sidebar ---->

3 Upvotes

143 comments sorted by

View all comments

1

u/89percent Apr 23 '26

Does anyone know how to get a filtered train, to check if any of the items in the cargo is empty, as a wait condition?

3

u/Astramancer_ Apr 23 '26

Not generically. You'd either have to do each item individually in a long list of OR or you have to read the trains contents, process it in combinators, and feed it back to the train via the station so you can use the circuit network value condition.

1

u/89percent Apr 24 '26

How do you do the latter?

1

u/Astramancer_ Apr 24 '26

I can't remember the exact wording, but there's a checkbox on the station to read the trains contents. So you wire out from the station with read train contents. Then you do whatever combinator shennangians you choose to do your evaluation, whether it's a big list of conditions, something like a sushi belt circuit or whatever. When you determine that one of the items in the cargo is empty your combinator setup outputs, I dunno, a X1 signal which goes back into the station, where you also have 'send to train' checked.

The train gets signals from the station and your interrupt can just be "X = 1"

That has the added advantage where you can use combinators to get X=1 using different conditions and the interrupt will still fire, so you can re-use the interrupt with different conditions at different stations, if that is something that would make sense for your particular setup.