Page 1 of 1

1x1 Entity that scans adjacent Wagon contents for circuit conditions.

Posted: Thu Jan 09, 2025 11:43 pm
by Dogmai
TL;DR
1x1 Entity that scans adjacent Wagon contents for circuit conditions.
What?
A 1x1 machine (like the display panel) that scans the train wagon it is adjacent to (or preferably directed at), regardless if it is a cargo or fluid wagon, and outputs it's contents for circuit reading.

Edit: Connect it via wire to the station, and only have it active when a train is docked at the station, to help with performance issues.
Why?
Came into this issue a while ago trying to make a direct train to train inserter for blue circuits. Figured out if you could specifically load 14 (from memory) stacks of red circuits onto a train, you can output exactly full wagon -20 circuits of blue circuits back into the same train. It is setting the exact amount of red circuits to be loaded into the wagon that is the issue.

For megabasing.

Re: 1x1 Entity that scans adjacent Wagon contents for circuit conditions.

Posted: Fri Jan 10, 2025 1:29 am
by robot256
For reference, this is the purpose of the Inventory Sensor mod. It is obviously not performant since the script has to constantly search for vehicles nearby. https://mods.factorio.com/mod/Inventory%20Sensor

Re: 1x1 Entity that scans adjacent Wagon contents for circuit conditions.

Posted: Fri Jan 10, 2025 2:20 am
by Dogmai
robot256 wrote: Fri Jan 10, 2025 1:29 am For reference, this is the purpose of the Inventory Sensor mod. It is obviously not performant since the script has to constantly search for vehicles nearby. https://mods.factorio.com/mod/Inventory%20Sensor
I never knew there was a mod for that, but I thought of a solution to the issue you raised.

Perhaps it should only activate when a train is docked at the station, and deactivates when the train leaves. Connect it to the station using a wire, otherwise it is dormant.