Spoilage Combinator


Outputs the remaining spoil time of items in connected chests and transport belts as circuit network signals, in ticks

Tweaks
a day ago
2.0 - 2.1
36
Factorio: Space Age Icon Space Age Mod
Circuit network
Owner:
valertron
Source:
N/A
Homepage:
N/A
License:
MIT
Created:
3 days ago
Latest Version:
0.1.2 (a day ago)
Factorio version:
2.0 - 2.1
Downloaded by:
36 users

How it works

  • Based on the vanilla Decider Combinator
  • Periodically scans connected chests to find item stacks and determine their actual spoilage time
  • Uses a hidden timer combinator to calculate the remaining spoilage time every tick without additional Lua script overhead. If no items are added or removed between scans, the countdown remains accurate to a single tick

Known limitations

  • UPS spikes: Scanning inventories can cause temporary UPS spikes and I haven't found a way to completely avoid these spikes. Unfortunately, Spoilage Combinator has the same issue as Spoilage Scanner. This is a limitation of the Factorio API that mods cannot work around
  • Multiplayer GUI flicker: When opening the combinator in multiplayer, the vanilla Decider Combinator interface may briefly appear before being replaced by the Spoilage Combinator GUI a few milliseconds later

Differences from Spoilage Scanner

  • Outputs remaining spoilage time in ticks instead of freshness %
  • Reads chests and belts connected via circuit wires
  • Does not calculate average freshness