Chest & Fluid Slot Reader plus train priority signals

by Wextor

Read empty, full, total slots from chests and fluid tanks and send signal to network. E = empty (slots for chests, fluid units for tanks), F = full/used (slots or fluid amount), T = total capacity (slots or fluid capacity), Also gives signal for priority for the trains based of filled capacity of container. P = priority full 0..255 (255 when full, 0 when empty), R = priority empty 0..255 (255 when empty, 0 when full), Links to the nearest valid target on placement. Easy way to create generic train station and set train permission based of usage of the chests.

Utilities
a month ago
2.0
67
Trains Circuit network

g BUG: Chests with a limit report wrong numbers

22 days ago

When connected to a chest with a slot limit set, the combinator reports wrong numbers for E, F, and T.

Example:

Steel chest with 2 slots blocked and full inventory:

E: 1 (expected 0)
F: 46 (correct)
T: 47 (expected 46)

If a stack is added to a blocked slot in the above scenario, the results become:

E: 0 (correct)
F: 47 (correct? or maybe expected 46)
T: 47 (expected 46)

Adding another stack in the remaining blocked slot in the above scenario, the results become:

E: 0 (correct)
F: 47 (expected 48 or 46)
T: 47 (expected 46)

Thank you for this mod! Even with this bug, your slot count combinator eliminates a lot of circuit irritation while controlling train stations on Gleba!

15 days ago

https://mods.factorio.com/mod/osha_container_signals has fixed that issue, maybe this mod can borrow a little from this one

New response