From 7b8bcf42172b1ec0c054f5b9aebb7a3f33e308fd Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Wed, 22 Oct 2025 00:11:11 +0200 Subject: [PATCH 1/4] Fix booleans being strings --- bzaluminum2/compatibility/248k-recipes.lua | 2 +- bzaluminum2/data-util.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bzaluminum2/compatibility/248k-recipes.lua b/bzaluminum2/compatibility/248k-recipes.lua index 30031ea..58dc490 100644 --- a/bzaluminum2/compatibility/248k-recipes.lua +++ b/bzaluminum2/compatibility/248k-recipes.lua @@ -5,7 +5,7 @@ data:extend({ { name = 'el_purify_aluminum_recipe', type = 'recipe', - enabled = 'false', + enabled = false, category = 'el_purifier_category', main_product = 'el_dirty_water', ingredients = { diff --git a/bzaluminum2/data-util.lua b/bzaluminum2/data-util.lua index 177944b..e69f0d5 100644 --- a/bzaluminum2/data-util.lua +++ b/bzaluminum2/data-util.lua @@ -1188,8 +1188,8 @@ function util.replace_ingredients_prior_to(tech, old, new, multiplier) end util.remove_prior_unlocks(tech, old) for i, recipe in pairs(data.raw.recipe) do - if (recipe.enabled and recipe.enabled ~= 'false') - and (not recipe.hidden or recipe.hidden == 'true') -- probably don't want to change hidden recipes + if (recipe.enabled and recipe.enabled ~= false) + and (not recipe.hidden or recipe.hidden == true) -- probably don't want to change hidden recipes and string.sub(recipe.name, 1, 3) ~= 'se-' -- have to exlude SE in general :( then -- log("BZZZ due to 'enabled' replacing " .. old .. " with " .. new .." in " .. recipe.name) -- Handy Debug :| From 8d5e83db992cc22f7ae057813414de59afa62785 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Wed, 22 Oct 2025 23:02:26 +0200 Subject: [PATCH 2/4] Fix technologies --- bzaluminum2/aluminum-burner-phase.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bzaluminum2/aluminum-burner-phase.lua b/bzaluminum2/aluminum-burner-phase.lua index 00a4a50..28fb76d 100644 --- a/bzaluminum2/aluminum-burner-phase.lua +++ b/bzaluminum2/aluminum-burner-phase.lua @@ -17,10 +17,19 @@ if not mods.Krastorio2 and not mods["aai-industry"] then util.add_effect("electronics", { type = "unlock-recipe", recipe = "electronic-circuit" }) util.add_effect("electronics", { type = "unlock-recipe", recipe = "inserter" }) util.add_effect("electronics", { type = "unlock-recipe", recipe = "long-handed-inserter" }) + util.remove_recipe_effect("electronics", "lab") util.remove_recipe_effect("automation", "long-handed-inserter") util.set_enabled("electronic-circuit", false) util.set_enabled("inserter", false) util.add_prerequisite("logistic-science-pack", "electronics") + util.remove_prerequisite("automation-science-pack", "electronics") + util.add_prerequisite("copper-processing", "automation-science-pack") + util.remove_prerequisite("automation-science-pack", "electronics") + util.add_effect("steam-power", { type = "unlock-recipe", recipe = "lab" }) + util.remove_prerequisite("fast-inserter", "automation-science-pack") + util.add_prerequisite("fast-inserter", "electronics") + util.remove_prerequisite("lamp", "automation-science-pack") + util.add_prerequisite("lamp", "electronics") end util.replace_ingredient("lab", "copper-plate", "aluminum-plate") From 9585fe87e500967f06c4f1144d6924ebc894c2db Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Wed, 22 Oct 2025 23:02:44 +0200 Subject: [PATCH 3/4] remove dependency on bz-dsr-bridge --- bzaluminum2/info.json | 1 - 1 file changed, 1 deletion(-) diff --git a/bzaluminum2/info.json b/bzaluminum2/info.json index 7e033c6..ccd800a 100644 --- a/bzaluminum2/info.json +++ b/bzaluminum2/info.json @@ -9,7 +9,6 @@ "dependencies": [ "base >= 2.0.0", "bzfoundry2 >= 2.0.0", - "~ bz-dsr-bridge", "? bztitanium2 >= 2.0.27", "? bzlead2 >= 2.0.29", "? bzzirconium2 >= 2.1.14", From 90290e98cd64ff77775cfe8f798da7856c715a79 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Wed, 22 Oct 2025 23:27:37 +0200 Subject: [PATCH 4/4] 2.0.2 --- bzaluminum2/changelog.txt | 5 +++++ bzaluminum2/info.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bzaluminum2/changelog.txt b/bzaluminum2/changelog.txt index 76bbad1..f243d81 100644 --- a/bzaluminum2/changelog.txt +++ b/bzaluminum2/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 2.0.2 +Date: 22.10.2025 + Bug Fixes: + - Fix technologies +--------------------------------------------------------------------------------------------------- Version: 2.0.1 Date: 21.10.2025 Changes: diff --git a/bzaluminum2/info.json b/bzaluminum2/info.json index ccd800a..79b1b04 100644 --- a/bzaluminum2/info.json +++ b/bzaluminum2/info.json @@ -1,6 +1,6 @@ { "name": "bzaluminum2", - "version": "2.0.1", + "version": "2.0.2", "factorio_version": "2.0", "title": "Aluminum", "description": "Adds aluminum, alumina, cables, alloys and more to the game.",