Krastorio Legacy deprecated


Caution!!! Krastorio 2 is now available! Therefore Krastorio Legacy is no longer supported! This mod expands the endgame, adds 30+ HR buildings, 60+ technologies, new ores, new items and rebalances almost all vanilla game content, making it harder.

1 year, 4 months ago
0.17 - 0.18
123633

b Krastorio incompatibilities with bob's mods.

1 year, 5 months ago
(updated 1 year, 5 months ago)

The problem comes in that the file "Krastorio/prototypes/vanilla-changes/vanilla-changes-mandatory/vanilla-changes-next-upgrades.lua" only changes the fast_replace_group on the vanilla pipe-to-ground and vanilla pump ignoring any modded versions. This instantly causes errors with mismatching fast replace groups:
"Failed to load mods: Error while running setup for entity prototype "pump" (pump): next_upgrade target (bob-pump-2) must have the same fast_replaceable_group (pipe != pump)."

I did two replacements to resolve the issue.

--Pump
--data.raw.pump["pump"].fast_replaceable_group = "pump"
for i, pump in pairs(data.raw["pump"]) do
pump.fast_replaceable_group = "pump"
end
data.raw.pump["pump"].next_upgrade = "steel-pump"

and

--Underground pipes
--data.raw["pipe-to-ground"]["pipe-to-ground"].fast_replaceable_group = "pipe-to-ground"
for i, pipe in pairs(data.raw["pipe-to-ground"]) do
pipe.fast_replaceable_group = "pipe-to-ground"
end
data.raw["pipe-to-ground"]["pipe-to-ground"].next_upgrade = "steel-pipe-to-ground"

1 year, 5 months ago

Thank u for our report. Read mod FAQ

New response