Vesta + K2SO Ammonia Trigger Fix


Compatibility fix for Planet Vesta + Krastorio 2 Spaced Out. Makes Vesta's Ammonia Chilled Alloy research trigger listen to the actual fluid produced by the Vesta ammonia recipe (for example kr-ammonia after K2SO remapping).

Tweaks
a month ago
2.1
26
Fluids
Owner:
ControlNet
Source:
N/A
Homepage:
N/A
License:
GNU GPLv3
Created:
a month ago
Latest Version:
1.0.0 (a month ago)
Factorio version:
2.1
Downloaded by:
26 users

Vesta + K2SO Ammonia Trigger Fix

A tiny Factorio 2.1 compatibility mod for Planet Vesta + Krastorio 2 Spaced Out (K2SO).

What it fixes

With the affected mod combination, the Vesta technology:

  • s1_ammonia_chilled_plate

can still have a craft-fluid research trigger pointing at:

  • ammonia

while K2SO changes Vesta's ammonia recipe:

  • ske_ammonia_vesta

so that it actually outputs:

  • kr-ammonia

Because Factorio research triggers use the internal FluidID, producing kr-ammonia does not satisfy a trigger waiting for ammonia.

How this fix works

data-final-fixes.lua runs after the dependent mods' normal data updates. It reads the actual fluid output of ske_ammonia_vesta and points s1_ammonia_chilled_plate.research_trigger.fluid at that fluid.

It does not permanently hard-code kr-ammonia; if a future update makes the recipe and trigger agree again, the mod simply does nothing.

Diagnostic log

The mod writes a line beginning with:

[Vesta K2SO Ammonia Fix]

to Factorio's log during the data stage, including the old and new FluidID when a patch is applied.