From 801f5ddc376d121a236d31729ecbe7853cf0ef9a Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Tue, 21 Oct 2025 14:59:11 +0200 Subject: [PATCH 1/5] Update to bz mods version 2 --- Chromium2/info.json | 8 ++++---- Chromium2/prototypes/chromium-recipe.lua | 10 +++++----- Chromium2/recipe-modify.lua | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Chromium2/info.json b/Chromium2/info.json index 369b6ac..133566c 100644 --- a/Chromium2/info.json +++ b/Chromium2/info.json @@ -11,10 +11,10 @@ "? aai-industry", "? BrassTacks-Updated", "? bobassembly", - "? bzaluminum", - "? bzfoundry", - "? bzgas", - "? bzsilicon", + "? bzaluminum2", + "? bzfoundry2", + "? bzgas2", + "? bzsilicon2", "? IfNickel-Updated", "? Indium2", "? Krastorio2", diff --git a/Chromium2/prototypes/chromium-recipe.lua b/Chromium2/prototypes/chromium-recipe.lua index 83620b5..7ac73c0 100644 --- a/Chromium2/prototypes/chromium-recipe.lua +++ b/Chromium2/prototypes/chromium-recipe.lua @@ -80,7 +80,7 @@ if mods["IfNickel-Updated"] then stainless_steel_ingredients = {{type="item", name="steel-plate", amount=8}, {type="item", name="chromium-plate", amount=1}, {type="item", name="nickel-plate", amount=1}} end local stainless_steel_category = "crafting" -if mods["bzfoundry"] then +if mods["bzfoundry2"] then stainless_steel_category = "founding" end data:extend({ @@ -110,7 +110,7 @@ local polyethylene_plastic_ingredients = { {type = "fluid", name = "steam", amount = 50}, {type = "item", name = "chromium-plate", amount = 2} } -if mods["bzgas"] and mods["bzsilicon"] then +if mods["bzgas2"] and mods["bzsilicon2"] then polyethylene_plastic_ingredients = { {type = "fluid", name = "gas", amount = 50}, {type = "fluid", name = "steam", amount = 50}, @@ -163,7 +163,7 @@ data:extend({ }) local basic_vehicle_frame_ingredients = {{type="item", name="steel-plate", amount=5}, {type="item", name="copper-plate", amount=10}} -if mods["bzaluminum"] then +if mods["bzaluminum2"] then basic_vehicle_frame_ingredients = {{type="item", name="steel-plate", amount=5}, {type="item", name="alumina", amount=10}} end data:extend({ @@ -189,7 +189,7 @@ data:extend({ }) local vehicle_frame_ingredients = {{type="item", name="basic-vehicle-frame", amount=1}, {type="item", name="stainless-steel-plate", amount=15}, {type="item", name="copper-plate", amount=20}} -if mods["bzaluminum"] then +if mods["bzaluminum2"] then vehicle_frame_ingredients = {{type="item", name="basic-vehicle-frame", amount=1}, {type="item", name="stainless-steel-plate", amount=15}, {type="item", name="aluminum-6061", amount=20}} end data:extend({ @@ -223,7 +223,7 @@ if mods["Tantalite2"] then end local inconel_category = "crafting" local inconel_subgroup = "intermediate-product" -if mods["bzfoundry"] then +if mods["bzfoundry2"] then inconel_category = "founding" inconel_subgroup = "foundry-intermediate" end diff --git a/Chromium2/recipe-modify.lua b/Chromium2/recipe-modify.lua index 2aaa1e2..9bb6679 100644 --- a/Chromium2/recipe-modify.lua +++ b/Chromium2/recipe-modify.lua @@ -15,7 +15,7 @@ if mods["248k-Redux"] then util.remove_ingredient("steam-turbine", "fi_materials_GFK") end -if mods["bzaluminum"] then +if mods["bzaluminum2"] then util.remove_ingredient("car", "aluminum-6061") util.remove_ingredient("vehicle-warden", "aluminum-6061") util.add_ingredient("vehicle-warden", "vehicle-frame", 1) From e8d596dd364d062456820928b2900b125f7192cc Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Tue, 21 Oct 2025 15:37:53 +0200 Subject: [PATCH 2/5] 2.0.4 --- Chromium2/changelog.txt | 6 ++++++ Chromium2/info.json | 9 +++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Chromium2/changelog.txt b/Chromium2/changelog.txt index f6d0785..099dafe 100644 --- a/Chromium2/changelog.txt +++ b/Chromium2/changelog.txt @@ -1,4 +1,10 @@ --------------------------------------------------------------------------------------------------- +Version: 2.0.4 +Date: 21.10.2025 + Changes: + - Switch to bz mods forks + - Add incompatibility with Space Age +--------------------------------------------------------------------------------------------------- Version: 2.0.3 Date: 13.10.2025 Bug Fixes: diff --git a/Chromium2/info.json b/Chromium2/info.json index 133566c..6e3b30a 100644 --- a/Chromium2/info.json +++ b/Chromium2/info.json @@ -1,8 +1,9 @@ { "name": "Chromium2", - "version": "2.0.3", + "version": "2.0.4", "factorio_version": "2.0", "title": "Chromium", + "description": "Chromium is a mod adding the element chromium.\n\nThis mod is inspired by Brevven's BZ mods.", "author": "Timeken, cackling fiend", "homepage": "https://discord.gg/ufvFUJtVwk", "dependencies": [ @@ -21,7 +22,7 @@ "? RampantArsenal", "? space-exploration", "? Tantalite2", - "? ThemTharHills-Updated" - ], - "description": "Chromium is a mod adding the element chromium.\n\nThis mod is inspired by Brevven's BZ mods." + "? ThemTharHills-Updated", + "! space-age" + ] } \ No newline at end of file From 0bd3919618d19243774352ad898ab31e0bbe5e0c Mon Sep 17 00:00:00 2001 From: pla Date: Sat, 1 Nov 2025 12:57:41 +0100 Subject: [PATCH 3/5] Fix K2 matter recipe generation and tech icon (#1) ![image](/attachments/dc93bd8c-31a7-4358-b29f-1301323b2b1d) Co-authored-by: pla Reviewed-on: https://git.cacklingfiend.info/cacklingfiend/Chromium2/pulls/1 Co-authored-by: pla Co-committed-by: pla --- Chromium2/locale/en/Chromium.cfg | 1 + Chromium2/prototypes/chromium-matter.lua | 17 +++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Chromium2/locale/en/Chromium.cfg b/Chromium2/locale/en/Chromium.cfg index 671c197..b5033e5 100644 --- a/Chromium2/locale/en/Chromium.cfg +++ b/Chromium2/locale/en/Chromium.cfg @@ -1,5 +1,6 @@ [technology-name] chromium-processing=Chromium processing +chromium-matter-processing=Chromium conversion polyethylene-plastic=Polyethylene plastic stainless-steel-processing=Stainless steel processing basic-vehicle-frame-production=Basic vehicle frame production diff --git a/Chromium2/prototypes/chromium-matter.lua b/Chromium2/prototypes/chromium-matter.lua index 24bedc5..208bbbe 100644 --- a/Chromium2/prototypes/chromium-matter.lua +++ b/Chromium2/prototypes/chromium-matter.lua @@ -10,15 +10,16 @@ if mods["Krastorio2"] then icons = { { - icon = "__Krastorio2Assets__/technologies/matter-coal.png", + icon = "__Krastorio2Assets__/technologies/backgrounds/matter.png", icon_size = 256, }, { icon = "__Chromium2__/graphics/icons/chromite-ore.png", icon_size = 64, - scale = 1.4, + scale = 1, } }, + effects = {}, prerequisites = { "kr-matter-processing" }, unit = { @@ -38,16 +39,16 @@ if mods["Krastorio2"] then material = { type = "item", name = "chromite-ore", amount = 10 }, matter_count = 5, energy_required = 1, - need_stabilizer = false, - unlocked_by_technology = "chromium-matter-processing" + needs_stabilizer = false, + unlocked_by = "chromium-matter-processing" }) - matter.make_recipes({ + matter.make_deconversion_recipe({ material = { type = "item", name = "chromium-plate", amount = 10 }, matter_count = 10, energy_required = 3, - only_deconversion = true, - need_stabilizer = true, - unlocked_by_technology = "chromium-matter-processing" + -- only_deconversion = true, + needs_stabilizer = true, + unlocked_by = "chromium-matter-processing" }) end From 93f16e7183561ee52dc161724e2d03c74e350de3 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Sat, 1 Nov 2025 12:58:49 +0100 Subject: [PATCH 4/5] Fix booleans being strings --- Chromium2/data-util.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Chromium2/data-util.lua b/Chromium2/data-util.lua index 81def01..a20f4b8 100644 --- a/Chromium2/data-util.lua +++ b/Chromium2/data-util.lua @@ -855,8 +855,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 0cc76f5352ee59c4723542c28d87388b8ebe4bc6 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Sat, 1 Nov 2025 22:59:09 +0100 Subject: [PATCH 5/5] 2.0.5 --- Chromium2/changelog.txt | 5 +++++ Chromium2/info.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Chromium2/changelog.txt b/Chromium2/changelog.txt index 099dafe..674fadf 100644 --- a/Chromium2/changelog.txt +++ b/Chromium2/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 2.0.5 +Date: 01.11.2025 + Bug Fixes: + - Fix K2 matter integration (thanks pla) +--------------------------------------------------------------------------------------------------- Version: 2.0.4 Date: 21.10.2025 Changes: diff --git a/Chromium2/info.json b/Chromium2/info.json index 6e3b30a..52751af 100644 --- a/Chromium2/info.json +++ b/Chromium2/info.json @@ -1,6 +1,6 @@ { "name": "Chromium2", - "version": "2.0.4", + "version": "2.0.5", "factorio_version": "2.0", "title": "Chromium", "description": "Chromium is a mod adding the element chromium.\n\nThis mod is inspired by Brevven's BZ mods.",