From 8739f2c2e69290c9a25f897afbd1c6779624c196 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Thu, 16 Oct 2025 00:41:15 +0200 Subject: [PATCH 1/6] Fix K2 compatibility --- MDbobelectronics2/prototypes/recipe-updates.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/MDbobelectronics2/prototypes/recipe-updates.lua b/MDbobelectronics2/prototypes/recipe-updates.lua index 1ef2f43..63a7db1 100644 --- a/MDbobelectronics2/prototypes/recipe-updates.lua +++ b/MDbobelectronics2/prototypes/recipe-updates.lua @@ -28,10 +28,9 @@ if data.raw.item["tinned-copper-cable"] then end if data.raw.item["carbon"] then - bobmods.lib.recipe.replace_ingredient("basic-electronic-components", "coal", "carbon") -elseif data.raw.item["coke"] then - bobmods.lib.recipe.replace_ingredient("basic-electronic-components", "coal", "coke") +elseif data.raw.item[mods["Krastorio2"] and "kr-coke" or "coke"] then + bobmods.lib.recipe.replace_ingredient("basic-electronic-components", "coal", mods["Krastorio2"] and "kr-coke" or "coke") end if data.raw.item["silicon-wafer"] then From c8727f5e563b8e495d0c8517fc44df7e6406cd67 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Thu, 16 Oct 2025 00:41:56 +0200 Subject: [PATCH 2/6] 4.0.5 --- MDbobelectronics2/changelog.txt | 5 +++++ MDbobelectronics2/info.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/MDbobelectronics2/changelog.txt b/MDbobelectronics2/changelog.txt index a647132..7aced8e 100644 --- a/MDbobelectronics2/changelog.txt +++ b/MDbobelectronics2/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 4.0.5 +Date: 16.10.2025 + Bug Fixes: + - Increase mod compatibility +--------------------------------------------------------------------------------------------------- Version: 4.0.4 Date: 13.10.2025 Bug Fixes: diff --git a/MDbobelectronics2/info.json b/MDbobelectronics2/info.json index c34c8da..9bcf01c 100644 --- a/MDbobelectronics2/info.json +++ b/MDbobelectronics2/info.json @@ -1,6 +1,6 @@ { "name": "MDbobelectronics2", - "version": "4.0.4", + "version": "4.0.5", "factorio_version": "2.0", "title": "Bob's Electronics SE KR for 2.0", "author": "Bobingabout, MdRuz, cackling fiend, Kejser Kagespiser", From c61ada2486736f2d8aa1743993859d406877e337 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Tue, 21 Oct 2025 15:03:31 +0200 Subject: [PATCH 3/6] Update to bz mods version 2 --- MDbobelectronics2/info.json | 6 +++--- MDbobelectronics2/prototypes/MDrecipes.lua | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/MDbobelectronics2/info.json b/MDbobelectronics2/info.json index 9bcf01c..5f51b74 100644 --- a/MDbobelectronics2/info.json +++ b/MDbobelectronics2/info.json @@ -13,9 +13,9 @@ "? space-exploration >= 0.7.34", "? space-exploration-postprocess >= 0.7.4", "? aai-industry >= 0.6.13", - "? bzsilicon >= 2.0.18", - "? bzlead >= 2.0.28", - "? bztitanium >= 2.0.26", + "? bzsilicon2 >= 2.0.19", + "? bzlead2 >= 2.0.29", + "? bztitanium2 >= 2.0.27", "? Krastorio2 >= 2.0.8", "! bobelectronics", "! space-age" diff --git a/MDbobelectronics2/prototypes/MDrecipes.lua b/MDbobelectronics2/prototypes/MDrecipes.lua index 64703c8..211d69c 100644 --- a/MDbobelectronics2/prototypes/MDrecipes.lua +++ b/MDbobelectronics2/prototypes/MDrecipes.lua @@ -20,7 +20,7 @@ end --insulated-cable -if mods["bzsilicon"] then +if mods["bzsilicon2"] then bobmods.lib.recipe.add_ingredient("optical-fiber", {type="item", name="insulated-cable", amount=1}) --seems that new version of bzsilicon adds this ingredient which interfears From 09a964cd55eb6a55502876ed70ef3a74222bbda2 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Tue, 21 Oct 2025 15:27:40 +0200 Subject: [PATCH 4/6] 4.0.6 --- MDbobelectronics2/changelog.txt | 5 +++++ MDbobelectronics2/info.json | 11 +++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/MDbobelectronics2/changelog.txt b/MDbobelectronics2/changelog.txt index 7aced8e..00ba125 100644 --- a/MDbobelectronics2/changelog.txt +++ b/MDbobelectronics2/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 4.0.6 +Date: 21.10.2025 + Changes: + - Switch to bz mods forks +--------------------------------------------------------------------------------------------------- Version: 4.0.5 Date: 16.10.2025 Bug Fixes: diff --git a/MDbobelectronics2/info.json b/MDbobelectronics2/info.json index 5f51b74..9852337 100644 --- a/MDbobelectronics2/info.json +++ b/MDbobelectronics2/info.json @@ -1,11 +1,11 @@ { "name": "MDbobelectronics2", - "version": "4.0.5", + "version": "4.0.6", "factorio_version": "2.0", "title": "Bob's Electronics SE KR for 2.0", + "description": "(Space Exploration and Krastorio edition) Requires Bob's functions library mod.\n\nThis mod changes the way you build electronics, making the process more realistic.\nFirst you have to assemble electronic components, then combine them into circuit boards.\nOptional setting for the following: 'unlike in the base game, each tier of circuit board does NOT require the previous tier.'\nIt also adds a 4th tier of electronics used for high end machinery.\n\nAlthough it can work by itself, it is designed to function best with krastorio and space exploration.", "author": "Bobingabout, MdRuz, cackling fiend, Kejser Kagespiser", - "contact": "", - "homepage": "https://forums.factorio.com/viewtopic.php?f=190&t=95748", + "homepage": "https://discord.gg/ufvFUJtVwk", "dependencies": [ "base >= 2.0.0", "boblibrary >= 2.0.1", @@ -19,6 +19,5 @@ "? Krastorio2 >= 2.0.8", "! bobelectronics", "! space-age" - ], - "description": "(Space Exploration and Krastorio edition) Requires Bob's functions library mod.\n\nThis mod changes the way you build electronics, making the process more realistic.\nFirst you have to assemble electronic components, then combine them into circuit boards.\nOptional setting for the following: 'unlike in the base game, each tier of circuit board does NOT require the previous tier.'\nIt also adds a 4th tier of electronics used for high end machinery.\n\nAlthough it can work by itself, it is designed to function best with krastorio and space exploration." -} + ] +} \ No newline at end of file From 351c9d7aee2aad2d95b68ba69bb1836534cd2fdd Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Tue, 21 Oct 2025 21:19:07 +0200 Subject: [PATCH 5/6] Fix crash due to result_count --- MDbobelectronics2/prototypes/resource.lua | 99 +++++++++-------------- 1 file changed, 37 insertions(+), 62 deletions(-) diff --git a/MDbobelectronics2/prototypes/resource.lua b/MDbobelectronics2/prototypes/resource.lua index 3bdf22c..b7ed173 100644 --- a/MDbobelectronics2/prototypes/resource.lua +++ b/MDbobelectronics2/prototypes/resource.lua @@ -1,5 +1,4 @@ -data:extend( -{ +data:extend({ { type = "item", name = "resin", @@ -9,21 +8,18 @@ data:extend( order = "f[resin]", stack_size = 100 }, - { type = "recipe", name = "bob-resin-wood", category = "crafting-machine", subgroup = "bob-resource-chemical", energy_required = 1, - ingredients = - { - { type = "item", name = "wood", amount = 1}, + ingredients = { + { type = "item", name = "wood", amount = 1 }, }, - results = {{type="item", name="resin", amount=1}}, + results = { { type = "item", name = "resin", amount = 1 } }, allow_decomposition = false }, - { type = "recipe", name = "bob-resin-oil", @@ -31,25 +27,21 @@ data:extend( subgroup = "bob-resource-chemical", energy_required = 1, enabled = false, - ingredients = - { - {type="fluid", name="heavy-oil", amount=10}, + ingredients = { + { type = "fluid", name = "heavy-oil", amount = 10 }, }, - results = {{type="item", name="resin", amount=1}}, - crafting_machine_tint = - { - primary = {r = 0.5, g = 0.04, b = 0.0, a = 0.000}, - secondary = {r = 0.85, g = 0.6, b = 0.3, a = 0.000}, - tertiary = {r = 1, g = 0.6, b = 0.0, a = 0.000}, + results = { { type = "item", name = "resin", amount = 1 } }, + crafting_machine_tint = { + primary = { r = 0.5, g = 0.04, b = 0.0, a = 0.000 }, + secondary = { r = 0.85, g = 0.6, b = 0.3, a = 0.000 }, + tertiary = { r = 1, g = 0.6, b = 0.0, a = 0.000 }, }, allow_decomposition = false }, -} -) +}) -data:extend( -{ +data:extend({ { type = "item", name = "rubber", @@ -59,28 +51,24 @@ data:extend( order = "f[rubber]", stack_size = 100 }, - { type = "recipe", name = "bob-rubber", subgroup = "bob-resource-chemical", category = "smelting", energy_required = 3.5, - ingredients = - { + ingredients = { { type = "item", name = "resin", amount = 1 }, }, - results = {{type="item", name="rubber", amount=1}}, + results = { { type = "item", name = "rubber", amount = 1 } }, allow_decomposition = false }, -} -) +}) if not data.raw.item["silicon-wafer"] then if data.raw.item["kr-silicon"] or data.raw.item["silicon"] or data.raw.item["silicon-plate"] then - data:extend( - { + data:extend({ { type = "item", name = "silicon-wafer", @@ -90,36 +78,30 @@ if not data.raw.item["silicon-wafer"] then order = "f[silicon-wafer]", stack_size = 200 }, - { type = "recipe", name = "silicon-wafer", category = "crafting-machine", enabled = false, energy_required = 5, - ingredients = - { - }, - results = {{type="item", name="silicon-wafer", amount=1}}, - result_count = 8 - }, - } - ) + ingredients = {}, + results = { { type = "item", name = "silicon-wafer", amount = 8 } }, + } + }) if data.raw.item["kr-silicon"] then - table.insert(data.raw.recipe["silicon-wafer"].ingredients ,{type="item", name="kr-silicon", amount=1}) + table.insert(data.raw.recipe["silicon-wafer"].ingredients, { type = "item", name = "kr-silicon", amount = 1 }) elseif data.raw.item["silicon"] then - table.insert(data.raw.recipe["silicon-wafer"].ingredients ,{type="item", name="silicon", amount=1}) + table.insert(data.raw.recipe["silicon-wafer"].ingredients, { type = "item", name = "silicon", amount = 1 }) else - table.insert(data.raw.recipe["silicon-wafer"].ingredients ,{type="item", name="silicon-plate", amount=1}) + table.insert(data.raw.recipe["silicon-wafer"].ingredients, { type = "item", name = "silicon-plate", amount = 1 }) end end end if data.raw.item["tin-plate"] then - data:extend( - { + data:extend({ { type = "item", name = "solder-alloy", @@ -129,46 +111,39 @@ if data.raw.item["tin-plate"] then order = "c-b-h[solder]", stack_size = 200 }, - { type = "recipe", name = "solder-alloy", energy_required = 7, enabled = false, category = "crafting-machine", - ingredients = - { - {type="item", name="tin-plate", amount=9}, - {type="item", name="copper-plate", amount=1}, + ingredients = { + { type = "item", name = "tin-plate", amount = 9 }, + { type = "item", name = "copper-plate", amount = 1 }, }, - results = {{type="item", name="solder-alloy", amount=11}}, + results = { { type = "item", name = "solder-alloy", amount = 11 } }, allow_decomposition = false }, - } - ) + }) if data.raw.item["silver-plate"] then - table.insert(data.raw.recipe["solder-alloy"].ingredients,{type="item", name="silver-plate", amount=1}) + table.insert(data.raw.recipe["solder-alloy"].ingredients, { type = "item", name = "silver-plate", amount = 1 }) end if data.raw.item["lead-plate"] then - data:extend( - { + data:extend({ { type = "recipe", name = "solder-alloy-lead", energy_required = 7, enabled = false, category = "crafting-machine", - ingredients = - { - {type="item", name="tin-plate", amount=4}, - {type="item", name="lead-plate", amount=7}, + ingredients = { + { type = "item", name = "tin-plate", amount = 4 }, + { type = "item", name = "lead-plate", amount = 7 }, }, - results = {{type="item", name="solder-alloy", amount=11}}, + results = { { type = "item", name = "solder-alloy", amount = 11 } }, allow_decomposition = false }, - } - ) + }) end end - From ce91e2406c512cf5a8c601350028f773be3e7abd Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Tue, 21 Oct 2025 21:21:26 +0200 Subject: [PATCH 6/6] 4.0.7 --- MDbobelectronics2/changelog.txt | 5 +++++ MDbobelectronics2/info.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/MDbobelectronics2/changelog.txt b/MDbobelectronics2/changelog.txt index 00ba125..8b0d1ae 100644 --- a/MDbobelectronics2/changelog.txt +++ b/MDbobelectronics2/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 4.0.7 +Date: 21.10.2025 + Bug Fixes: + - Fix crash due to result_count +--------------------------------------------------------------------------------------------------- Version: 4.0.6 Date: 21.10.2025 Changes: diff --git a/MDbobelectronics2/info.json b/MDbobelectronics2/info.json index 9852337..9f5c926 100644 --- a/MDbobelectronics2/info.json +++ b/MDbobelectronics2/info.json @@ -1,6 +1,6 @@ { "name": "MDbobelectronics2", - "version": "4.0.6", + "version": "4.0.7", "factorio_version": "2.0", "title": "Bob's Electronics SE KR for 2.0", "description": "(Space Exploration and Krastorio edition) Requires Bob's functions library mod.\n\nThis mod changes the way you build electronics, making the process more realistic.\nFirst you have to assemble electronic components, then combine them into circuit boards.\nOptional setting for the following: 'unlike in the base game, each tier of circuit board does NOT require the previous tier.'\nIt also adds a 4th tier of electronics used for high end machinery.\n\nAlthough it can work by itself, it is designed to function best with krastorio and space exploration.",