From fb1aeefc955b47bbda08a99b255b1bdaba3f6dea Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Sat, 11 Oct 2025 18:11:09 +0200 Subject: [PATCH 1/2] 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, From ac2637518bb67a5e818918e6e18824a515049d33 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Sat, 11 Oct 2025 18:11:36 +0200 Subject: [PATCH 2/2] 2.0.1 --- Nylon2/changelog.txt | 69 +++++--------------------------------------- Nylon2/info.json | 2 +- 2 files changed, 8 insertions(+), 63 deletions(-) diff --git a/Nylon2/changelog.txt b/Nylon2/changelog.txt index 01be669..ae96e74 100644 --- a/Nylon2/changelog.txt +++ b/Nylon2/changelog.txt @@ -1,65 +1,10 @@ --------------------------------------------------------------------------------------------------- -Version: 0.5.2 -Date: 2024-07-24 - Features: - - Added ethanolamine to SE vitamelange spice. - - Upped nylon drive belt from 2 -> 8 +Version: 2.0.1 +Date: 11.10.2025 + Bug Fixes: + - Increase mod compatibility --------------------------------------------------------------------------------------------------- -Version: 0.5.1 -Date: 2024-07-16 +Version: 2.0.0 +Date: 10.10.2025 Features: - - Fixed conflict when using K2 but not bzcarbon. ---------------------------------------------------------------------------------------------------- -Version: 0.5.0 -Date: 2024-06-27 - Features: - - Added nylon drive belt if BrimStuff is installed. - - Fixed error when not using Cobalt mod. - - Fixed missing mod errors. ---------------------------------------------------------------------------------------------------- -Version: 0.4.3 -Date: 2024-01-21 - Features: - - Removed old unused files. ---------------------------------------------------------------------------------------------------- -Version: 0.4.2 -Date: 2024-01-14 - Features: - - Added SE delivery cannon recipe for fluids. ---------------------------------------------------------------------------------------------------- -Version: 0.4.1 -Date: 2024-01-06 - Features: - - Added coal tar solid fuel recipe. ---------------------------------------------------------------------------------------------------- -Version: 0.4.0 -Date: 2024-01-02 - Features: - - Added a new production chain for alternative lubricant and epoxy if K2 is installed. - - Increesed destructive distillation base craft time to 12 from 10. ---------------------------------------------------------------------------------------------------- -Version: 0.3.0 -Date: 2023-12-25 - Features: - - Added bio nitric acid recipe. - - Fixed Nylons K2 progression with few mods. ---------------------------------------------------------------------------------------------------- -Version: 0.2.0 -Date: 2023-12-24 - Features: - - Split cobalt into its own mod. - - Replaced 248k fiberer maker iron gear wheel with nylon machine parts. - - Replaced 248k compound machine iron gear wheel with nylon machine parts. - - Replaced K2 biusart lab copper cable with nylon machine parts. - - Replaced bobassembly electronics machine 2 steel gear wheel with nylon machine parts. - - Replaced aai industry stack filter inserter steel gear wheel with nylon machine parts. ---------------------------------------------------------------------------------------------------- -Version: 0.1.1 -Date: 2023-12-21 - Features: - - Added cobalt ore as a byproduct from nickel if If I Had A Nickel is installed. ---------------------------------------------------------------------------------------------------- -Version: 0.1.0 -Date: 2023-12-20 - Features: - - Alpha release. \ No newline at end of file + - Update to Factorio 2.0 \ No newline at end of file diff --git a/Nylon2/info.json b/Nylon2/info.json index cf80fa9..3140351 100644 --- a/Nylon2/info.json +++ b/Nylon2/info.json @@ -1,6 +1,6 @@ { "name": "Nylon2", - "version": "2.0.0", + "version": "2.0.1", "factorio_version": "2.0", "title": "Nylon", "author": "Timeken, cackling fiend",