xors (Forked) (optional) Space Exploration (+ Krastorio 2) tweaks and additions


Tweaks and additions of various small things for SE (and K2 if installed). All toggleable via settings! Check mod description for list.

Tweaks
16 hours ago
2.0
49

b [✓] Steel pipes can't connect to Casting Machines

21 days ago

This seems to be caused by the order of operations.

in final-fixes/steel-pipe-connectivity.lua k2 adds the "kr-steel-pipe" connection to all fluid_boxes (except for iron pipes).
Then this mod's data-final-fixes.lua overwrites the fluid_boxes for the casting machines

21 days ago

Thanks for the report! Working on a fix.

21 days ago

Should be fixed in the latest version.

21 days ago

That does fix it, thank you.

It is worth noting that copying the code like you have would mean that you would have to re license, at least that file, as LGPL. (because k2 is lgpl, and lgpl is kinda strict)

you could instead do something more like:
if mods["Krastorio2"] then require("__Krastorio2__.prototypes.final-fixes.steel-pipe-connectivity")
at least I think. my fix just requires both and has a final-fixes file that is just that requires line lol
to tell it to rerun that function from the other code, rather than copying it to avoid licensing stuff.

It probably doesn't matter. I don't think anybody really cares. Its just something I learned when I made my temp fix mod to publish that I thought I'd share.

20 days ago
(updated 20 days ago)

Oh dear... all right, time to change that I guess. I can pull the k2 category directly into the prototype definition and remove the part with the copied code.
Also learned-lesson for the future... license stuff is scary.

New response