Page 1 of 1

Train "Item count" Condition based on current inventory

Posted: Wed May 17, 2017 5:02 am
by 5thHorseman
TL;DR
You should be able to tell a train to leave a station if you have an amount of inventory equal to the current train's inventory, or equal to its filters.
What ?
Currently when setting the "Item count" train condition, you can select a item and type a count.
I propose adding 1 or 2 buttons to that dialog: "Current amount" and "Filtered Amount."
Clicking "Current Amount" would fill in the number with the current amount of that item on the train.
Clicking "Filtered Amount" would fill in the number with what the item inventory would be if all filtered slots for that item were full.

Alternatively (and possibly better from a user's point of view) a new condition, "Filtered item full"
This would check on the fly if all filtered slots of the type in the condition were full, so you don't have to specify a number (that may change as you modify the cargo filters on the train)
Why ?
Frequently while setting up trains, I wait for them to fill up with the items, check the train dialog to see how much of that item is on the train, then set the condition to that amount of item. It'd be convenient if the game would do some of that work for me. Or, with the second idea, I could just tell the train to wait until a specific item's filtered slots were full and then not worry about it again.

Re: Train "Item count" Condition based on current inventory

Posted: Wed May 17, 2017 5:30 pm
by ssilk
Why could you not use the circuit condition for the train instead?

Re: Train "Item count" Condition based on current inventory

Posted: Wed May 17, 2017 5:45 pm
by rampelstinskin
5thHorseman wrote:Or, with the second idea, I could just tell the train to wait until a specific item's filtered slots were full and then not worry about it again.
+1
ssilk wrote:Why could you not use the circuit condition for the train instead?
How to read the contents of the train?

Re: Train "Item count" Condition based on current inventory

Posted: Wed May 17, 2017 6:31 pm
by 5thHorseman
ssilk wrote:Why could you not use the circuit condition for the train instead?
I've only ever used the barest rudimentary circuit networks, so there is likely something I just don't understand, but I have no idea how to use the circuit condition to tell a train to leave a station when a specific item has no more free filtered slots on the train.

Re: Train "Item count" Condition based on current inventory

Posted: Wed May 17, 2017 8:50 pm
by ssilk
Me too, I build a new station/train for such stuff. It's much easier. :D