Stack Combinator

by modo_lv

An arithmetic combinator that performs stack size multiplication/division/rounding on item signals. Features signal inversion and output display, compatible with Picker Dollies and Nullius.

Content
a month ago
1.1
14.0K
Circuit network

Changelog

Version: 1.6.1
Date: 2024.02.05
  Bugfixes:
    - Fixed a crash in wagon mode when using non-entity items.
Version: 1.6.0
Date: 2024.02.04
  Features:
    - Wagon stack mode for using train wagon capacity instead of plain stack size in output calculations.
Version: 1.5.3
Date: 2024.01.30
  Bugfixes:
    - Signals were duplicated on merge if two wires connected, but one empty.
Version: 1.5.2
Date: 2024.01.27
  Bugfixes:
    - StaCo GUIs now resume normal functioning on game load in cases when the game was (auto)saved with the GUI open.
Version: 1.5.1
Date: 2024.01.20
  Changes:
    - Low-power combinators now continue to function normally instead of stopping (to be more in line with how vanilla combinators work).
    - No-power combinators stop updating, but keep the output signals from the last update (like vanilla constant combinator; configurable in settings).
Version: 1.5.0
Date: 2024.01.13
  Features:
    - Rounding mode selection for division operations.
    - Option to merge input signals from both wires before applying stack calculations.
    - Input signals are now shown in the SC.
  Changes:
    - Signal displays are now single-line and horizontally scrollable.
  Bugfixes:
    - Fixed nearest full stack rounding which was outputting completely wrong result.
Version: 1.4.0
Date: 2024.01.03
  Minor Features:
    - A map setting for controlling how SCs handle non-item signals.
  Bugfixes:
    - Fixed a crash when placing a new SC in map editor.
Version: 1.3.5
Date: 2024.01.03
  Modding:
    - SCs are now registered as oblong entities with Picker Dollies, allowing full rotation even after placement.
Version: 1.3.4
Date: 2024.01.03
  Bugfixes:
    - Fixed update queue getting lost on batch updates (removing chunks/surfaces), which broke signal output on things like Space Exploration ships launching/landing.
    - Fixed settings paste not updating operation correctly.
    - Fixed settings paste making output become visible.
Version: 1.3.3
Date: 2023.01.03
  Bugfixes:
    - *Actually* fixed a bug that caused a crash sometimes when wiring things up to circuit networks.
Version: 1.3.2
Date: 2023.01.03
  Bugfixes:
    - Fixed a bug that caused a crash sometimes when wiring things up to circuit networks.
Version: 1.3.1
Date: 2022.12.30
  Bugfixes:
    - Newly placed StaCos were not updating until reload (introduced in 1.3.0).
Version: 1.3.0
Date: 2022.12.24
  Optimizations:
    - Mod now splits updates across multiple ticks (configurable).
    - Default update delay increased from 0 to 6 ticks.
Version: 1.2.13
Date: 2022.05.02
  Bugfixes:
    - Fixed a crash after clearing/removing surfaces.
Version: 1.2.12
Date: 2022.01.09
  Bugfixes:
    - Fixed another crash on game load.
Version: 1.2.11
Date: 2021.08.20
  Bugfixes:
    - Fixed a crash on game load.
Version: 1.2.10
Date: 2021.08.16
  Bugfixes:
    - Fixed a crash related to using circuit wires (introduced in 1.2.9).
Version: 1.2.9
Date: 2021.08.15
  Bugfixes:
    - Fixed several multi-player crashes and desyncs.
Version: 1.2.8
Date: 2021.08.01
  Bugfixes:
    - Added combinator update delay setting for performance tweaking.
Version: 1.2.7
Date: 2021.06.21
  Bugfixes:
    - Cloning StaCos no longer creates duplicate outputs.
Version: 1.2.6
Date: 2021.05.18
  Bugfixes:
    - Fixed an occasional crash when anchoring Space Exploration spaceships containing StaCos (and possibly other situations)
Version: 1.2.5
Date: 2021.03.27
  Minor Features:
    - Startup setting to toggle whether StaCos require electricity.
  Bugfixes:
    - Fixed an internal issue with reading boolean startup settings that are `true` by default.
Version: 1.2.4
Date: 2021.03.26
  Bugfixes:
    - Fixed inconsistent event registration leading to an occasional crash in multiplayer.
Version: 1.2.3
Date: 2021.03.23
  Bugfixes:
    - Fixed a crash when running the mod without Picker Dollies installed.
Version: 1.2.2
Date: 2021.03.21
  Bugfixes:
    - Added a workaround for a crash caused by a bug in Factorio Standard Library.
Version: 1.2.1
Date: 2021.03.21
  Bugfixes:
    - Fixed an occasional crash related to displaying operation description.
Version: 1.2.0
Date: 2021.03.20
  Features:
    - Added division and rounding operations.
  Bugfixes:
    - Combinator no longer works without power.
    - Fixed Picker Dollies not working in map editor.
    - Partially failed Picker Dollies oblong rectangle rotation is now handled correctly.
    - Fixed crash when removing a StaCo while its GUI is open.
Version: 1.1.4
Date: 2021.03.15
  Bugfixes:
    - Fixed Picker Dollies integration that broke in 1.1.2.
Version: 1.1.3
Date: 2021.03.14
  Bugfixes:
    - Fixed a crash introduced in 1.1.2.
Version: 1.1.2
Date: 2021.03.14
  Bugfixes:
    - Crash when trying to remove StaCos in map editor.
    - Moving StaCo with Picker Dollies in map editor no longer leaves behind the internal constant combinator.
    - Cut internal wiring (such as with a wire cutter tool) is now automatically restored when opening a StaCo's GUI or picking a circuit wire.
  Balancing:
    - Tweaked tech research costs in Nullius.
Version: 1.1.1
Date: 2021.03.02
  Bugfixes:
    - Wrong wire name causing crash on startup.
Version: 1.1.0
Date: 2021.03.02
  Features:
    - Added support for Nullius mod.
  Balancing:
    - Technology now costs less time to research, in line with science pack costs.
    - Crafting a StaCo takes the same amount of time as building an arithmetic combinator (except in Nullius, where the time is halved).
  Bugfixes:
    - Technology research costs are now always in full science packs, no partials.
    - Fixed a crash when trying to use StaCo in map editor.
    - Other mods overwriting arithmetic combinator localised name/description no longer affects static combinators.
Version: 1.0.5
Date: 2021.02.04
  Bugfixes:
    - Fixed an output display bug introduced in 1.0.4.
Version: 1.0.4
Date: 2021.02.04
  Bugfixes:
    - Fixed a second crash when connecting a stack combinator to a network containing virtual signals: https://mods.factorio.com/mod/stack-combinator/discussion/601b19fc067e93916960c181
    - Fixed main output display also including signals from output networks.
Version: 1.0.3
Date: 2021.02.04
  Bugfixes:
    - Fixed a crash when connecting a stack combinator to a network containing virtual signals: https://mods.factorio.com/mod/stack-combinator/discussion/601b19fc067e93916960c181
Version: 1.0.2
Date: 2021.02.04
  Bugfixes:
    - Fixed a crash when trying to play without Picker Dollies installed: https://mods.factorio.com/mod/stack-combinator/discussion/601b19fc067e93916960c181
Version: 1.0.1
Date: 2021.01.25
  Bugfixes:
    - Fixed a crash when trying to open GUI for a newly placed combinator: https://mods.factorio.com/mod/stack-combinator/discussion/600f1158b39430e7636e9168
Version: 1.0.0
Date: 2021.01.25
  Info:
    - Initial "proper" release.
  Features:
    - Display for all signals on the circuit network that the stack combinator's output is connected to (to easily see resulting merged signals).
  Minor Features:
    - Support for modified signal wire colors: now using in-game wire images instead of "red" and "green" text and colors.
  Gui:
    - Some layout changes.
    - Fixed status indicator not resizing with increased UI scaling.
  Bugfixes:
    - Game ID was resetting on each load.
    - Runtime settings weren't being updated while playing.
    - Fixed crash when outputting a signal with value outside the -2147483647 .. 2147483647 range.
  Optimisations:
    - Reduced GUI update speed to 10 ticks (6 times a second).
  Other:
    - Lots of code rewrites and improvements.
Version: 0.9.0
Date: 2021.01.19
  Info:
    - Initial release.