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
7 hours ago
2.0
35

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

20 hours 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

8 hours ago

Thanks for the report! Working on a fix.

6 hours ago

Should be fixed in the latest version.

2 hours 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.

7 minutes ago
(updated 6 minutes 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