xyrc's K2SO Enhancements

by xyrc

Laundry list of tweaks, fixes, and overall enhancements to Krastorio 2 Spaced Out for compatability with other mods, consistency changes, and balancing. Adds sprited tech cards to a lot of mods. Patches vehicles added by other mods to work with K2's equipment system. Patches can be toggled in settings.

Tweaks
a month ago
2.0
928
Factorio: Space Age Icon Space Age Mod
Transportation Logistics Trains Combat Manufacturing

b Bug Fix for Pelagos update crash

a day ago
(updated a day ago)

The mod would cause this load-order race condition after the pleagos mod added barreling_machines as a required dependency:

Failed to load mods: ...-out _ /prototypes/updates/generate-tech-card-cooling.lua: 14: attempt to index local ‘science _pack’ (a nil value)
stack traceback:
..=out
/prototypes/updates/generate-tech-card-cooling.lua: 14: in main chunk
[C]: in function 'require' _ _Krastorio2-spaced-out
_/data-updates.lua:43: in main chunk
Mods to be disabled:
» Krastorio2-spaced-out (1.6.18) B Reset mod settings

I fixed it by adding this in the info.json dependencies list for this mod:
"? barreling_machines"

EDIT: nevermind that actually does nothing because I did something and the mod wasn't even loading anymore :sob:

EDIT 2: [FIXED] i fixed it by moving the require("fixes.tech_cards") line from data.lua to a new data-updates.lua file in the mod root. maybe ill make a pull request but im lazy

New response