K2SO Rat's Fixes


A bugfix collection for Krastorio 2 + Space Age (K2SO): Krastorio2-spaced-out, its tweaks mod, nulls-k2so-tweaks and the xy fork playing together. Fixes for recipes with spoilage - most of them inherited spoilage from parent ingredients, leading to whole production chains collapsing. Especially noticeable with the recursive biomass recipe. Fixes a few interactions with Cerys, Maraxis, and radiation damage (K2-Arsenal supported). Mod will continue to be updated with more fixes/compatibility.

Tweaks
7 days ago
2.1
26

Changelog

Version: 1.5.0
Date: 2026-10-08
  Bugfixes:
    - Productivity no longer applies to the tweaks mod's kr-spoilage-to-matter (100 spoilage -> 5.2 matter): its exact quantity mirror kr-matter-to-spoilage already disallows productivity, so with productivity modules in the matter plant every round trip multiplied the stock (x1.4 per cycle with four module 3s) - a closed amplification loop turning a seed of spoilage into free exponential matter. Matches K2's own matter library convention; the sink recipe itself is unchanged.
Version: 1.4.0
Date: 2026-10-07
  Features:
    - k2-greenhouse-plus support: when it provides its own sand and glass (its default) and Krastorio 2 is installed, the duplicate k2gp-sand/k2gp-glass chain is unified into K2's kr-sand/kr-glass: greenhouse building recipes use 20x kr-glass (the rate the greenhouse-plus author sets for K2 glass), the duplicate sand/glass recipes and their technology unlocks are removed, and the orphaned k2gp items are hidden. Controlled by the new k2so-rats-fixes-greenhouse-plus-k2-glass startup setting (on by default); respects the other mod's glass-source setting when set to "other"/"disabled". Verified by a gameplay e2e (greenhouse crafting + recycling against the real mods) on top of the data-stage checks.
    - The k2-greenhouse-plus tree greenhouse is craftable in the K2SO stack again: k2gp hooks its unlock onto K2's kr-greenhouse technology, but K2SO replaces that technology in its final fixes and the hook is discarded with it - no technology unlocked the greenhouse (or its crop recipe), leaving it uncraftable. The unlock effects are re-attached to the surviving technology; the Gleba greenhouse variants hook onto base Space Age technologies and were never affected.
Version: 1.2.0
Date: 2026-10-06
  Features:
    - Asteroid radiation immunity is configurable via the k2so-rats-fixes-asteroid-radiation-immunity startup setting (auto/100/75/50/25/0). Auto keeps K2SO's 100% and uses 50% when eRisel-k2-arsenal (kr-radioactive weapons) is installed.
    - The K2 intergalactic transceiver can be built on Cerys again: Cerys blanket-restricts accumulators on its surface and the transceiver is an accumulator; its ambient-radiation restriction is removed (conditionally - a no-op without Cerys-style conditions).
  Bugfixes:
    - Biomass crafted via kr-biomass-from-spoilage (biochamber: jelly + spoilage) spawns fresh; the jelly ingredient's age no longer bleeds into the biomass pipeline.
    - Greenhouse-grown Gleba crops (kr-jellynut, kr-yumako) spawn fresh instead of inheriting the fertilizer's spoilage age.
Version: 1.1.0
Date: 2026-10-06
  Bugfixes:
    - Asteroids stay kr-radioactive immune: K2SO's 100% immunity was being erased by nulls-k2so-tweaks' resistance standardize pass; restored exactly one entry per asteroid at 100%.
    - maraxsis keeps using the right sand: nulls-k2so-tweaks wrote SAND_ITEM_NAME onto the mod-data prototype root instead of the .data table maraxsis reads; corrected and stray key removed.
    - Labs render >24 science packs: K2SO's widened icons_positioning fallback was shadowed by block-local declarations and never active; now applied when the pack count exceeds 24.
    - Two-item spoil cycles from nulls' item migration are broken (its always-true guard is enforced from outside: the 1-tick migration side is cleared when the new item spoils back).
    - The advanced centrifuge recipe consumes atan-atom-forges when atan-nuclear-science is present, matching the technology tree (xy computed the ingredient but never used it).
  Features:
    - Prototype e2e suite (tests/proto) covering every fix against the real mod stack, lua-level checks against the installed xy fork (tests/lua), and patches/upstream/ with ready-to-apply patches for the source mods incl. an apply checker.
Version: 1.0.0
Date: 2026-10-06
  Features:
    - Initial release.
    - Biomass crafted by the recursive kr-biomass recipe (bioprocessing facility) now spawns fully fresh instead of inheriting the parent spoilage, fixing the bio pipeline stall that eventually rots all biomass at once.
    - Biomass from egg crushing (kr-biter-biomass, kr-pentapod-biomass) spawns fully fresh.
    - Fertilizer (kr-fertilizer, crafted from biomass) spawns fully fresh.