Compare commits

..

5 commits
2.0.3 ... main

Author SHA1 Message Date
Simon Brodtmann
0cc76f5352 2.0.5 2025-11-01 22:59:09 +01:00
Simon Brodtmann
93f16e7183 Fix booleans being strings 2025-11-01 12:58:49 +01:00
pla
0bd3919618 Fix K2 matter recipe generation and tech icon (#1)
![image](/attachments/dc93bd8c-31a7-4358-b29f-1301323b2b1d)

Co-authored-by: pla
Reviewed-on: #1
Co-authored-by: pla <pla@noreply.example.org>
Co-committed-by: pla <pla@noreply.example.org>
2025-11-01 12:57:41 +01:00
Simon Brodtmann
e8d596dd36 2.0.4 2025-10-21 15:37:53 +02:00
Simon Brodtmann
801f5ddc37 Update to bz mods version 2 2025-10-21 14:59:11 +02:00
7 changed files with 38 additions and 24 deletions

View file

@ -1,4 +1,15 @@
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
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:
- Switch to bz mods forks
- Add incompatibility with Space Age
---------------------------------------------------------------------------------------------------
Version: 2.0.3 Version: 2.0.3
Date: 13.10.2025 Date: 13.10.2025
Bug Fixes: Bug Fixes:

View file

@ -855,8 +855,8 @@ function util.replace_ingredients_prior_to(tech, old, new, multiplier)
end end
util.remove_prior_unlocks(tech, old) util.remove_prior_unlocks(tech, old)
for i, recipe in pairs(data.raw.recipe) do for i, recipe in pairs(data.raw.recipe) do
if (recipe.enabled and recipe.enabled ~= 'false') if (recipe.enabled and recipe.enabled ~= false)
and (not recipe.hidden or recipe.hidden == 'true') -- probably don't want to change hidden recipes 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 :( and string.sub(recipe.name, 1, 3) ~= 'se-' -- have to exlude SE in general :(
then then
-- log("BZZZ due to 'enabled' replacing " .. old .. " with " .. new .." in " .. recipe.name) -- Handy Debug :| -- log("BZZZ due to 'enabled' replacing " .. old .. " with " .. new .." in " .. recipe.name) -- Handy Debug :|

View file

@ -1,8 +1,9 @@
{ {
"name": "Chromium2", "name": "Chromium2",
"version": "2.0.3", "version": "2.0.5",
"factorio_version": "2.0", "factorio_version": "2.0",
"title": "Chromium", "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", "author": "Timeken, cackling fiend",
"homepage": "https://discord.gg/ufvFUJtVwk", "homepage": "https://discord.gg/ufvFUJtVwk",
"dependencies": [ "dependencies": [
@ -11,17 +12,17 @@
"? aai-industry", "? aai-industry",
"? BrassTacks-Updated", "? BrassTacks-Updated",
"? bobassembly", "? bobassembly",
"? bzaluminum", "? bzaluminum2",
"? bzfoundry", "? bzfoundry2",
"? bzgas", "? bzgas2",
"? bzsilicon", "? bzsilicon2",
"? IfNickel-Updated", "? IfNickel-Updated",
"? Indium2", "? Indium2",
"? Krastorio2", "? Krastorio2",
"? RampantArsenal", "? RampantArsenal",
"? space-exploration", "? space-exploration",
"? Tantalite2", "? Tantalite2",
"? ThemTharHills-Updated" "? ThemTharHills-Updated",
], "! space-age"
"description": "Chromium is a mod adding the element chromium.\n\nThis mod is inspired by Brevven's BZ mods." ]
} }

View file

@ -1,5 +1,6 @@
[technology-name] [technology-name]
chromium-processing=Chromium processing chromium-processing=Chromium processing
chromium-matter-processing=Chromium conversion
polyethylene-plastic=Polyethylene plastic polyethylene-plastic=Polyethylene plastic
stainless-steel-processing=Stainless steel processing stainless-steel-processing=Stainless steel processing
basic-vehicle-frame-production=Basic vehicle frame production basic-vehicle-frame-production=Basic vehicle frame production

View file

@ -10,15 +10,16 @@ if mods["Krastorio2"] then
icons = icons =
{ {
{ {
icon = "__Krastorio2Assets__/technologies/matter-coal.png", icon = "__Krastorio2Assets__/technologies/backgrounds/matter.png",
icon_size = 256, icon_size = 256,
}, },
{ {
icon = "__Chromium2__/graphics/icons/chromite-ore.png", icon = "__Chromium2__/graphics/icons/chromite-ore.png",
icon_size = 64, icon_size = 64,
scale = 1.4, scale = 1,
} }
}, },
effects = {},
prerequisites = { "kr-matter-processing" }, prerequisites = { "kr-matter-processing" },
unit = unit =
{ {
@ -38,16 +39,16 @@ if mods["Krastorio2"] then
material = { type = "item", name = "chromite-ore", amount = 10 }, material = { type = "item", name = "chromite-ore", amount = 10 },
matter_count = 5, matter_count = 5,
energy_required = 1, energy_required = 1,
need_stabilizer = false, needs_stabilizer = false,
unlocked_by_technology = "chromium-matter-processing" unlocked_by = "chromium-matter-processing"
}) })
matter.make_recipes({ matter.make_deconversion_recipe({
material = { type = "item", name = "chromium-plate", amount = 10 }, material = { type = "item", name = "chromium-plate", amount = 10 },
matter_count = 10, matter_count = 10,
energy_required = 3, energy_required = 3,
only_deconversion = true, -- only_deconversion = true,
need_stabilizer = true, needs_stabilizer = true,
unlocked_by_technology = "chromium-matter-processing" unlocked_by = "chromium-matter-processing"
}) })
end end

View file

@ -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}} 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 end
local stainless_steel_category = "crafting" local stainless_steel_category = "crafting"
if mods["bzfoundry"] then if mods["bzfoundry2"] then
stainless_steel_category = "founding" stainless_steel_category = "founding"
end end
data:extend({ data:extend({
@ -110,7 +110,7 @@ local polyethylene_plastic_ingredients = {
{type = "fluid", name = "steam", amount = 50}, {type = "fluid", name = "steam", amount = 50},
{type = "item", name = "chromium-plate", amount = 2} {type = "item", name = "chromium-plate", amount = 2}
} }
if mods["bzgas"] and mods["bzsilicon"] then if mods["bzgas2"] and mods["bzsilicon2"] then
polyethylene_plastic_ingredients = { polyethylene_plastic_ingredients = {
{type = "fluid", name = "gas", amount = 50}, {type = "fluid", name = "gas", amount = 50},
{type = "fluid", name = "steam", 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}} 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}} basic_vehicle_frame_ingredients = {{type="item", name="steel-plate", amount=5}, {type="item", name="alumina", amount=10}}
end end
data:extend({ 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}} 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}} 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 end
data:extend({ data:extend({
@ -223,7 +223,7 @@ if mods["Tantalite2"] then
end end
local inconel_category = "crafting" local inconel_category = "crafting"
local inconel_subgroup = "intermediate-product" local inconel_subgroup = "intermediate-product"
if mods["bzfoundry"] then if mods["bzfoundry2"] then
inconel_category = "founding" inconel_category = "founding"
inconel_subgroup = "foundry-intermediate" inconel_subgroup = "foundry-intermediate"
end end

View file

@ -15,7 +15,7 @@ if mods["248k-Redux"] then
util.remove_ingredient("steam-turbine", "fi_materials_GFK") util.remove_ingredient("steam-turbine", "fi_materials_GFK")
end end
if mods["bzaluminum"] then if mods["bzaluminum2"] then
util.remove_ingredient("car", "aluminum-6061") util.remove_ingredient("car", "aluminum-6061")
util.remove_ingredient("vehicle-warden", "aluminum-6061") util.remove_ingredient("vehicle-warden", "aluminum-6061")
util.add_ingredient("vehicle-warden", "vehicle-frame", 1) util.add_ingredient("vehicle-warden", "vehicle-frame", 1)