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
Owner:
deadrat22
Source:
https://github.com/UndeadRat22/k2so-r...
Homepage:
https://mods.factorio.com/mod/k2so-rats-fixes
License:
MIT
Created:
9 days ago
Latest Version:
1.5.0 (7 days ago)
Factorio version:
2.1
Downloaded by:
26 users

K2SO Rat's Fixes

A stack-audit bugfix collection for Krastorio 2 + Space Age (K2SO): fixes for Krastorio 2 Spaced Out, its tweaks mod, nulls-k2so-tweaks and the xy-k2so-enhancements fork playing together, plus k2-greenhouse-plus integration.

The biomass stall

The tweaks mod makes biomass spoil, and the bioprocessing facility's biomass recipe is recursive (2 biomass + gases → 5 biomass). Crafted items inherit the parent spoilage, so loop freshness can only go down and the whole stock expires at the same moment — measured end-to-end, a 90% spoiled seed yields 91.7% spoiled output, then 93.3%, until military science (which needs biomass) starves. The tweaks mod's own fix attempt puts reset_freshness_on_craft on the item prototype, where it is a silent no-op in Factorio 2.1.

With this mod, crafted biomass always spawns with a full spoil timer:

  • kr-biomass (recursive bioprocessing facility recipe)
  • kr-biter-biomass, kr-pentapod-biomass (egg crushing)
  • kr-biomass-from-spoilage (biochamber: jelly + spoilage)
  • kr-fertilizer (crafted from biomass)
  • kr-jellynut, kr-yumako (greenhouse crops grown from fertilizer)

All fixes

  • Asteroids keep their kr-radioactive immunity — nulls-k2so-tweaks' resistance standardization pass silently erased it. Configurable via a startup setting: auto (default) keeps K2SO's 100% and drops to 50% when eRisel-k2-arsenal (kr-radioactive weapons) is installed; explicit 100/75/50/25/0 values are also available.
  • The K2 intergalactic transceiver can be built on Cerys again. Cerys blanket-restricts accumulators on its surface and the transceiver is an accumulator; the ambient-radiation restriction is removed (K2SO's own gravity rule is kept). No-op on other surfaces / without such conditions.
  • Labs render correctly with more than 24 science packs. K2SO ships a widened icon layout for this case, but it was shadowed by block-local declarations and never ran.
  • Maraxsis reads the intended sand item. nulls-k2so-tweaks wrote its SAND_ITEM_NAME onto the mod-data prototype root instead of the .data table maraxsis actually reads.
  • k2-greenhouse-plus uses K2's sand and glass. Its default config ships a private k2gp-sand/k2gp-glass chain duplicating K2's identical one; greenhouses are built from kr-glass instead (at the author's own K2 rate), and the duplicate recipes/unlocks/items are removed from play. On by default, configurable via a startup setting; respects the other mod's glass-source setting.
  • k2-greenhouse-plus greenhouses are craftable in the K2SO stack. The tree greenhouse hooks its unlock onto K2's kr-greenhouse technology, which K2SO replaces in its final fixes — discarding the hook and leaving the greenhouse uncraftable; the unlock is re-attached to the surviving technology. The Gleba greenhouse variants were never affected.
  • Two-item spoil cycles from nulls' item migrations are broken. Its replacement guard is always true, so a new item that spoils back into the old one loops forever; the migration side is now cleared when that happens.
  • The advanced centrifuge recipe consumes 2x atan-atom-forge when atan-nuclear-science is present, matching the technology tree (the xy fork computed the ingredient but never used it).
  • The spoilage → matter sink can no longer be amplified by productivity modules. The tweaks mod enables allow_productivity on kr-spoilage-to-matter (100 spoilage → 5.2 matter) while its exact quantity mirror kr-matter-to-spoilage disallows it; with productivity modules in the matter plant, every round trip multiplies the stock (×1.4 per cycle with four module 3s), turning a seed of spoilage into free exponential matter. K2's own matter library never enables productivity on conversion recipes. The sink itself keeps working.

Quality

Every fix is verified against the real mod stack with a headless e2e suite: gameplay benchmarks (biomass pipeline freshness; greenhouse crafting + recycling of the actual glass items), data-stage checks for every fix, lua-level checks against the installed xy fork, and an apply-checker for the bundled patches. patches/upstream/ carries ready-to-apply patches for the same issues in the original mods, where the underlying bugs belong.

Safe on existing saves. Without the K2SO stack installed this mod does nothing.