From fb1aeefc955b47bbda08a99b255b1bdaba3f6dea Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Sat, 11 Oct 2025 18:11:09 +0200 Subject: [PATCH] Mod compatibility fixes --- Nylon2/data-util.lua | 2 +- Nylon2/prototypes/recipes.lua | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Nylon2/data-util.lua b/Nylon2/data-util.lua index 4b2d096..81def01 100644 --- a/Nylon2/data-util.lua +++ b/Nylon2/data-util.lua @@ -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/Nylon2/prototypes/recipes.lua b/Nylon2/prototypes/recipes.lua index 9df0c52..8b05a4e 100644 --- a/Nylon2/prototypes/recipes.lua +++ b/Nylon2/prototypes/recipes.lua @@ -15,12 +15,12 @@ else }}) end -local ketone_alcohol_oil_ingredients = {{type="item", name="coal", amount = 5}, (data.raw.fluid["hydrogen"] and { type = "fluid", name = "hydrogen", amount = 10 }) or ({ type = "fluid", name = "water", amount = 10 }), (data.raw.item["cobalt-plate"] and {type="item", name="cobalt-plate", amount = 1}) or {type="item", name="iron-plate", amount=1}} +local ketone_alcohol_oil_ingredients = {{type="item", name="coal", amount = 5}, (data.raw.fluid["kr-hydrogen"] and { type = "fluid", name = "kr-hydrogen", amount = 10 }) or ({ type = "fluid", name = "water", amount = 10 }), (data.raw.item["cobalt-plate"] and {type="item", name="cobalt-plate", amount = 1}) or {type="item", name="iron-plate", amount=1}} if mods["bzgas"] then ketone_alcohol_oil_ingredients = {{type="item", name="phenol", amount = 5}, (data.raw.item["cobalt-plate"] and {type="item", name="cobalt-plate", amount = 1}) or {type="item", name="iron-plate", amount=1}} - if data.raw.fluid["hydrogen"] then - table.insert(ketone_alcohol_oil_ingredients, { type = "fluid", name = "hydrogen", amount = 10 }) + if data.raw.fluid["kr-hydrogen"] then + table.insert(ketone_alcohol_oil_ingredients, { type = "fluid", name = "kr-hydrogen", amount = 10 }) end end @@ -144,12 +144,12 @@ data:extend({ order = "n", enabled = false, energy_required = 30, - ingredients = {(data.raw.fluid["biomethanol"] and { type = "fluid", name = "biomethanol", amount = 50 }) or { type = "fluid", name = "light-oil", amount = 50 }, (data.raw.fluid["chlorine"] and { type = "fluid", name = "chlorine", amount = 50 }) or { type = "fluid", name = "water", amount = 50 }}, + ingredients = {(data.raw.fluid["biomethanol"] and { type = "fluid", name = "biomethanol", amount = 50 }) or { type = "fluid", name = "light-oil", amount = 50 }, (data.raw.fluid["kr-chlorine"] and { type = "fluid", name = "kr-chlorine", amount = 50 }) or (data.raw.fluid["chlorine"] and { type = "fluid", name = "chlorine", amount = 50 }) or { type = "fluid", name = "water", amount = 50 }}, results = {{ type = "fluid", name = "ethylene-oxide", amount = 50 }, { type = "fluid", name = "acetic-acid", amount = 50 }}, } }) -local vinyl_acetate_ingredients = {{ type = "fluid", name = "acetic-acid", amount = 25 },(data.raw.fluid["oxygen"] and { type = "fluid", name = "oxygen", amount = 25 }) or { type = "fluid", name = "water", amount = 25 }} +local vinyl_acetate_ingredients = {{ type = "fluid", name = "acetic-acid", amount = 25 },(data.raw.fluid["kr-oxygen"] and { type = "fluid", name = "kr-oxygen", amount = 25 }) or { type = "fluid", name = "water", amount = 25 }} if data.raw.item["palladium-plate"] then table.insert(vinyl_acetate_ingredients, {type="item", name="palladium-plate", amount=1}) end @@ -211,7 +211,7 @@ data:extend({ order = "e", enabled = false, energy_required = 4, - ingredients = {{ type = "fluid", name = "ethylene-oxide", amount = 10 }, (data.raw.fluid["ammonia"] and { type = "fluid", name = "ammonia", amount = 10 }) or { type = "fluid", name = "water", amount = 10 }}, + ingredients = {{ type = "fluid", name = "ethylene-oxide", amount = 10 }, (data.raw.fluid["kr-ammonia"] and { type = "fluid", name = "kr-ammonia", amount = 10 }) or { type = "fluid", name = "water", amount = 10 }}, results = {{ type = "fluid", name = "ethanolamine", amount = 20 }}, }, { @@ -273,12 +273,12 @@ if data.raw.fluid["kr-nitric-acid"] then end local adipic_acid_results = {{type="item", name="adipic-acid", amount=5}} if data.raw.fluid["depleted-acid"] then - table.insert({ type = "fluid", name = "depleted-acid", amount = 10 }) + table.insert(adipic_acid_results, { type = "fluid", name = "depleted-acid", amount = 10 }) end local hexamethylenediamine_ingredients = {{ type = "fluid", name = "petroleum-gas", amount = 10 }, (data.raw.item["cobalt-plate"] and {type="item", name="cobalt-plate", amount = 1}) or {type="item", name="iron-plate", amount=1}} -if data.raw.fluid["ammonia"] then - table.insert(hexamethylenediamine_ingredients, { type = "fluid", name = "ammonia", amount = 10 }) +if data.raw.fluid["kr-ammonia"] then + table.insert(hexamethylenediamine_ingredients, { type = "fluid", name = "kr-ammonia", amount = 10 }) end local hexamethylenediamine_results = {{ type = "fluid", name = "hexamethylenediamine", amount = 10 }, (data.raw.item["cobalt-plate"] and {type = "item", name ="cobalt-plate", amount=1, probability=0.4}) or {type = "item", name ="iron-plate", amount=1, probability=0.4}} if data.raw.fluid["chemical-waste"] then @@ -290,8 +290,8 @@ if data.raw.item["phenol"] then table.insert(destructive_distillation_ingredients, {type="item", name="phenol", amount=5}) end local destructive_distillation_results = {{ type = "fluid", name = "coal-tar", amount = 20 }} -if data.raw.fluid["ammonia"] then - table.insert(destructive_distillation_results, { type = "fluid", name = "ammonia", amount = 10 }) +if data.raw.fluid["kr-ammonia"] then + table.insert(destructive_distillation_results, { type = "fluid", name = "kr-ammonia", amount = 10 }) end if data.raw.item["kr-coke"] then table.insert(destructive_distillation_results, {type="item", name="kr-coke", amount=7}) @@ -357,7 +357,7 @@ data:extend({ name = "destructive-distillation", icon = "__Nylon2__/graphics/icons/destructive-distillation.png", icon_size = 64, - main_porduct = "ammonia", + main_porduct = "kr-ammonia", category = "chemistry", subgroup = "chemical", order = "a", @@ -370,7 +370,7 @@ data:extend({ util.add_productivity("destructive-distillation") if mods["Krastorio2"] then - local bio_nitric_acid_ingredients = {{ type = "fluid", name = "coal-tar", amount = 10 }, { type = "fluid", name = "water", amount = 10 }, {type="item", name="wood", 10}} + local bio_nitric_acid_ingredients = {{ type = "fluid", name = "coal-tar", amount = 10 }, { type = "fluid", name = "water", amount = 10 }, {type="item", name="wood", amount = 10}} if data.raw.item["limestone"] then table.insert(bio_nitric_acid_ingredients, {type="item", name="limestone", amount=4}) end @@ -475,7 +475,7 @@ if mods["bzcarbon"] and mods["Krastorio2"] then { type = "recipe", name = "coke-powder", - category = "crushing", + category = "kr-crushing", order = "l", enabled = false, energy_required = 4,