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/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 :| 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.", 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