Advanced Centrifuge


An advanced centrifuge, to fill in the gap of advanced buildings for Krastorio 2

Content
a month ago
1.1 - 2.1
24.6K
Manufacturing

b K2SA Pre-Reqs Wrong

2 months ago
(updated 2 months ago)

EDIT: It should be K2SE, not K2SA. I've always just called it K2SA because Space Age.

Apologies if this is an issue with K2SA rather than with this mod specifically, but there are missing prerequisite requirements for the advanced centrifuge tech. In game the advanced centrifuge only explicitly requires the energy control unit research, but the centrifuge tech itself requires matter tech cards which, in K2SA, are locked behind the Cryo plant on Aquilo. This makes the tech unresearchable until Aquilo, despite showing as available right after energy control units.

2 months ago

sounds like an issue with that mod then

2 months ago
(updated 2 months ago)

I want to preface this with: I don't know Lua, so I could be wrong about this, but I looked at the source code just to check. In prototypes > technologies > buildings.lua, the K2/K2SO (what I incorrectly called K2SA) compatibility section on GitHub reads as:
-- Changes for K2

if mods["Krastorio2"] or mods["Krastorio2-spaced-out"] then
table.insert(ingredients, {"kr-matter-tech-card", 1})
table.insert(ingredients, {"kr-advanced-tech-card", 1})

table.insert(prerequisites, "kr-energy-control-unit")
table.insert(prerequisites, "kr-advanced-tech-card")
end
If I had to make a guess, the weirdness here is coming from the fact that in base K2, the advanced tech card requires matter, but it is the other way around in K2SO. I tried testing this by adding the line "table.insert(prerequisites, "kr-matter-tech-card")" which both fixed the issue in K2SO and did not affect anything in base K2. Is that a fine fix, or would it break something somewhere else that I am not seeing?

a month ago

that compat was written when k2so was more of a fork, it has deviated too much so i am inclined to just revert that check back to k2 alone.

New response