From 55655e2566abfa1cd61ecd0ad1cb69dbbe08ff48 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Sat, 11 Oct 2025 18:13:00 +0200 Subject: [PATCH] Mod compatibility fixes --- Tantalite2/data-util.lua | 8 ++++---- Tantalite2/prototypes/niobium-recipe.lua | 2 +- Tantalite2/prototypes/tantalite-248k.lua | 2 +- Tantalite2/prototypes/tantalite-enriched.lua | 4 ++-- Tantalite2/prototypes/tantalum-recipe.lua | 4 ++-- Tantalite2/prototypes/technology.lua | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Tantalite2/data-util.lua b/Tantalite2/data-util.lua index 4b2d096..0f15fce 100644 --- a/Tantalite2/data-util.lua +++ b/Tantalite2/data-util.lua @@ -11,7 +11,7 @@ function util.se_landfill(params) type = "recipe", icons = { { icon = "__base__/graphics/icons/landfill.png", icon_size = 64, icon_mipmaps = 3 }, - { icon = "__Chromium2__/graphics/icons/"..params.ore..".png", icon_size = params.icon_size, scale = 0.33*64/params.icon_size}, + { icon = "__Tantalite2__/graphics/icons/"..params.ore..".png", icon_size = params.icon_size, scale = 0.33*64/params.icon_size}, }, energy_required = 1, enabled=false, @@ -48,7 +48,7 @@ function util.se_matter(params) icon_size = 64, scale = 0.5}, {icon = "__space-exploration-graphics__/graphics/icons/fluid/particle-stream.png", icon_size = 64, scale = 0.33, shift = {8,-8}}, - {icon = "__Chromium2__/graphics/icons/"..params.ore..".png", + {icon = "__Tantalite2__/graphics/icons/"..params.ore..".png", icon_size = params.icon_size, scale = 0.33 * 64/params.icon_size, shift={-8, 8}}, {icon = "__space-exploration-graphics__/graphics/icons/transition-arrow.png", icon_size = 64, scale = 0.5}, @@ -87,7 +87,7 @@ function util.se_matter(params) icon_size = 64, scale = 0.5}, {icon = "__space-exploration-graphics__/graphics/icons/fluid/particle-stream.png", icon_size = 64, scale = 0.33, shift = {-8,8}}, - {icon = "__Chromium2__/graphics/icons/"..params.ore..".png", + {icon = "__Tantalite2__/graphics/icons/"..params.ore..".png", icon_size = params.icon_size, scale = 0.33 * 64/params.icon_size, shift={8, -8}}, {icon = "__space-exploration-graphics__/graphics/icons/transition-arrow.png", icon_size = 64, scale = 0.5}, @@ -129,7 +129,7 @@ function util.se_matter(params) {"se-astronomic-science-pack-4", 1}, {"se-energy-science-pack-4", 1}, {"se-material-science-pack-4", 1}, - {"matter-tech-card", 1}, + {"kr-matter-tech-card", 1}, {"se-deep-space-science-pack-1", 1}, } }, diff --git a/Tantalite2/prototypes/niobium-recipe.lua b/Tantalite2/prototypes/niobium-recipe.lua index cef0307..067ccf3 100644 --- a/Tantalite2/prototypes/niobium-recipe.lua +++ b/Tantalite2/prototypes/niobium-recipe.lua @@ -134,7 +134,7 @@ if mods["248k-Redux"] and mods["space-exploration"] then name = "energy-pyroflux", icons = { { icon = "__space-exploration-graphics__/graphics/icons/fluid/pyroflux.png", icon_size = 64}, - { icon = "__248k-Redux__/ressources/fusion/fu_materials/fu_materials_energy_crystal.png", icon_size = 64, scale=0.3, shift= {-8, -8}}, + { icon = "__248k-Redux-graphics__/ressources/fusion/fu_materials/fu_materials_energy_crystal.png", icon_size = 64, scale=0.3, shift= {-8, -8}}, }, category = "chemistry", order = "h", diff --git a/Tantalite2/prototypes/tantalite-248k.lua b/Tantalite2/prototypes/tantalite-248k.lua index e52e9d4..cbeac02 100644 --- a/Tantalite2/prototypes/tantalite-248k.lua +++ b/Tantalite2/prototypes/tantalite-248k.lua @@ -68,7 +68,7 @@ data:extend({ icon_size = 64, icons = (mods["Krastorio2"] and { - { icon = "__248k-Redux__/ressources/fluids/el_dirty_water.png", icon_size = 64}, + { icon = "__248k-Redux-graphics__/ressources/fluids/el_dirty_water.png", icon_size = 64}, { icon = "__Tantalite2__/graphics/icons/tantalite-ore.png", icon_size = 64, scale=0.2, shift= {-8, -8}}, } or { { icon = "__Tantalite2__/graphics/icons/tantalite-ore.png", icon_size = 64}, diff --git a/Tantalite2/prototypes/tantalite-enriched.lua b/Tantalite2/prototypes/tantalite-enriched.lua index e3794e2..f77c707 100644 --- a/Tantalite2/prototypes/tantalite-enriched.lua +++ b/Tantalite2/prototypes/tantalite-enriched.lua @@ -63,7 +63,7 @@ data:extend( always_show_made_in = true, always_show_products = true, ingredients = { {type="item", name="enriched-tantalite", amount=5} }, - results = { {type="item", name="tantalum-plate", 5}, {"niobium-plate", amount=5} }, + results = { {type="item", name="tantalum-plate", amount=5}, {type="item", name="niobium-plate", amount=5} }, order = "a", }, { @@ -80,7 +80,7 @@ data:extend( { icon = data.raw.item["tantalite-ore"].icon, icon_size = data.raw.item["tantalite-ore"].icon_size, - scale = 0.20 * (data.raw.fluid["kr-dirty-water"].icon_size/data.raw.item["tantalite-ore"].icon_size), + scale = 0.20, shift = {0, 4} } }, diff --git a/Tantalite2/prototypes/tantalum-recipe.lua b/Tantalite2/prototypes/tantalum-recipe.lua index 802d292..1d58ea4 100644 --- a/Tantalite2/prototypes/tantalum-recipe.lua +++ b/Tantalite2/prototypes/tantalum-recipe.lua @@ -19,7 +19,7 @@ data:extend({ if mods["248k-Redux"] then thoriated_filament_ingredients = {{type="item", name="thorium-ore", amount=1}} if mods["bztungsten"] then - table.insert({type="item", name="tungsten-plate", amount=1}) + table.insert(thoriated_filament_ingredients, {type="item", name="tungsten-plate", amount=1}) end data:extend({ { @@ -154,7 +154,7 @@ data:extend({ if mods["bzlead"] or mods["manganese"] then tantalum_capacitor_ingredients = {{type="item", name="tantalum-plate", amount=1}} if mods["bzlead"] then - table.insert({type="item", name="lead-plate", amount = 1}) + table.insert(tantalum_capacitor_ingredients, {type="item", name="lead-plate", amount = 1}) end if mods["manganese"] then table.insert(tantalum_capacitor_ingredients, {type="item", name="manganese-plate", amount=1}) diff --git a/Tantalite2/prototypes/technology.lua b/Tantalite2/prototypes/technology.lua index 848739a..906c8c1 100644 --- a/Tantalite2/prototypes/technology.lua +++ b/Tantalite2/prototypes/technology.lua @@ -144,7 +144,7 @@ data:extend( name = "energy-pyroflux", icons = { { icon = "__space-exploration-graphics__/graphics/icons/fluid/pyroflux.png", icon_size = 64}, - { icon = "__248k-Redux__/ressources/fusion/fu_materials/fu_materials_energy_crystal.png", icon_size = 64, scale=0.3, shift= {-8, -8}}, + { icon = "__248k-Redux-graphics__/ressources/fusion/fu_materials/fu_materials_energy_crystal.png", icon_size = 64, scale=0.3, shift= {-8, -8}}, }, prerequisites = {"se-energy-science-pack-1"}, effects = {