I assumed (wrongly) that the train station can output cargo content to the circuit network. I'd like this very much, so my inserters can decide if it's a good idea to empty my trains or not in my wip omni-ore offload station

Moderator: ickputzdirwech
Same opinion. If I have to choose, which device should be added circuit network next, then the train stop/train-content etc.MeduSalem wrote:If not then it should be one of the top priorities for one of the next circuit network expansions.
Optera wrote:Having Stations report a trains inventory to circuit network would open a lot of possibilities for smarter train loading.
But it's already done - when you hover over the locomotive, you can see cargo wagon content pretty clearly. The devs only need to add this as an option to the train station.MindChanger wrote:This one could be pretty hard to do anyway. I mean you would have problems with loading the train anyway (as you don't know how many free slots wagon have).
Also if it is connected to the train then all wagons would count in. It would be problematic to create system that works for any number of wagons properly for custom player's setups.
I talked about getting info into circuit networkDevilXD wrote:But it's already done - when you hover over the locomotive, you can see cargo wagon content pretty clearly. The devs only need to add this as an option to the train station.MindChanger wrote:This one could be pretty hard to do anyway. I mean you would have problems with loading the train anyway (as you don't know how many free slots wagon have).
Also if it is connected to the train then all wagons would count in. It would be problematic to create system that works for any number of wagons properly for custom player's setups.
You said that getting the cargo wagon content into circuit network would be hard. I showed you that the cargo wagon content is already available, only the train stop can't read those valuesMindChanger wrote:I talked about getting info into circuit network
But how can I get this data into circuit network fo example to let know inserter to stop inserting special item type? Maybe I don't know somethingDevilXD wrote:You said that getting the cargo wagon content into circuit network would be hard. I showed you that the cargo wagon content is already available, only the train stop can't read those valuesMindChanger wrote:I talked about getting info into circuit network
I said that earlier:MindChanger wrote:But how can I get this data into circuit network fo example to let know inserter to stop inserting special item type? Maybe I don't know something
You connect the train station with a red or green wire and set it to 'Get train content' instead of 'Send to train'DevilXD wrote:The devs only need to add this as an option to the train station.
But I was asking about single wagon. Your way will get contents from all wagons, which is not what I asked forDevilXD wrote: You connect the train station with a red or green wire and set it to 'Get train content' instead of 'Send to train'
But, why do you want to read the content of a single wagon ? I would be really happy if I could read at least the content of the whole train itselfMindChanger wrote:But I was asking about single wagon. Your way will get contents from all wagons, which is not what I asked for
For example to know how much items more to put into wagon without using filters in train where it is no needed (to allow wagon to have different kinds of items).DevilXD wrote:[
But, why do you want to read the content of a single wagon ? I would be really happy if I could read at least the content of the whole train itself
And why couldn't this be achieved using the whole train contents?MindChanger wrote:For example to know how much items more to put into wagon without using filters in train where it is no needed (to allow wagon to have different kinds of items).
What if I want to have balanced amount of specified materials across my all wagons? (It is not often situation to customize slots like that, but is possible).MeduSalem wrote:And why couldn't this be achieved using the whole train contents?MindChanger wrote:For example to know how much items more to put into wagon without using filters in train where it is no needed (to allow wagon to have different kinds of items).
If you for example want to load Coal into the 3 third wagon you will surely have inserters there that are able to grab coal anyways... so if there is no coal in that wagon you basically just check if Coal amount of train is smaller than 40*2400 or something like that. And the inserter only works then if it is smaller.