From 1b5895b421d84ab90f717fd9236665ac225e94c4 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Tue, 4 Nov 2025 23:55:58 +0100 Subject: [PATCH 1/2] Fix hand craft only recipe name --- bzgas2/compatibility/electronic-circuit.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/bzgas2/compatibility/electronic-circuit.lua b/bzgas2/compatibility/electronic-circuit.lua index 65995f0..1dc0e02 100644 --- a/bzgas2/compatibility/electronic-circuit.lua +++ b/bzgas2/compatibility/electronic-circuit.lua @@ -27,6 +27,7 @@ if util.me.handcraft() then end local hcec = futil.table.deepcopy(data.raw.recipe["electronic-circuit"]) hcec.name = "electronic-circuit-handcraft-only" + hcec.localized_name = { "item-name.electronic-circuit" } data:extend({hcec}) util.set_icons("electronic-circuit-handcraft-only", { From 6c0876d0c8f5b3b50d5efd1d5ba91310242434a9 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Wed, 5 Nov 2025 00:22:10 +0100 Subject: [PATCH 2/2] Fix early game technologies with Krastorio --- bzgas2/data-final-fixes.lua | 6 +++--- bzgas2/prototypes/bakelite.lua | 4 +++- bzgas2/prototypes/formaldehyde.lua | 7 ++++++- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/bzgas2/data-final-fixes.lua b/bzgas2/data-final-fixes.lua index b23574f..dfa6292 100644 --- a/bzgas2/data-final-fixes.lua +++ b/bzgas2/data-final-fixes.lua @@ -9,9 +9,9 @@ util.set_product_amount("se-core-fragment-omni", "gas", 24) -- Fix basic chemical plant fuels for K2 if mods.Krastorio2 and -data.raw["assembling-machine"]["basic-chemical-plant"] and -data.raw["assembling-machine"]["basic-chemical-plant"].energy_source and -data.raw["assembling-machine"]["basic-chemical-plant"].energy_source.fuel_categories then + data.raw["assembling-machine"]["basic-chemical-plant"] and + data.raw["assembling-machine"]["basic-chemical-plant"].energy_source and + data.raw["assembling-machine"]["basic-chemical-plant"].energy_source.fuel_categories then table.insert(data.raw["assembling-machine"]["basic-chemical-plant"].energy_source.fuel_categories , "kr-vehicle-fuel") end diff --git a/bzgas2/prototypes/bakelite.lua b/bzgas2/prototypes/bakelite.lua index 7b7ceed..4597f08 100644 --- a/bzgas2/prototypes/bakelite.lua +++ b/bzgas2/prototypes/bakelite.lua @@ -1,7 +1,9 @@ local util = require("data-util"); local prereq = {"basic-chemistry"} -if mods["bzfoundry2"] then +if mods["Krastorio2"] then + table.insert(prereq, "steel-processing") +elseif mods["bzfoundry2"] then table.insert(prereq, "foundry") end diff --git a/bzgas2/prototypes/formaldehyde.lua b/bzgas2/prototypes/formaldehyde.lua index 36b0be4..66724e3 100644 --- a/bzgas2/prototypes/formaldehyde.lua +++ b/bzgas2/prototypes/formaldehyde.lua @@ -7,6 +7,11 @@ local util = require("data-util"); -- } -- }) +local prereq = {"gas-extraction"} +if mods["Krastorio2"] then + table.insert(prereq, "automation-science-pack") +end + data:extend({ { type = "fluid", @@ -40,7 +45,7 @@ data:extend({ name = "basic-chemistry", icon = "__bzgas2__/graphics/technology/formaldehyde.png", icon_size = 256, - prerequisites = {"gas-extraction"}, + prerequisites = prereq, effects = { {type = "unlock-recipe", recipe = "basic-chemical-plant"}, {type = "unlock-recipe", recipe = "formaldehyde"},