Compare commits

...

11 commits
2.0.0 ... main

Author SHA1 Message Date
Simon Brodtmann
9ea99b716c 2.0.2 2025-10-22 23:14:42 +02:00
Simon Brodtmann
858d7d4f20 Fix bakelite prerequisite if foundry is present 2025-10-22 23:03:34 +02:00
Simon Brodtmann
159ca3b1c0 Fix booleans being strings 2025-10-22 23:03:09 +02:00
Simon Brodtmann
c02885c314 2.0.1 2025-10-21 15:59:29 +02:00
Simon Brodtmann
824922faf7 Update to bzzirconium2 2025-10-21 14:53:05 +02:00
Simon Brodtmann
b604045779 Update to bztitanium2 2025-10-21 14:28:02 +02:00
Simon Brodtmann
0767319efd Update to bztin2 2025-10-21 14:27:59 +02:00
Simon Brodtmann
da43a2cdb2 Update to bzlead2 2025-10-20 10:23:28 +02:00
Simon Brodtmann
206aa4614d Update to bzcarbon2 2025-10-19 17:54:11 +02:00
Simon Brodtmann
7dead53138 Update to bztungsten2 2025-10-19 15:52:44 +02:00
Simon Brodtmann
30d3b89193 readme 2025-10-19 15:20:29 +02:00
7 changed files with 24 additions and 20 deletions

View file

@ -12,8 +12,7 @@ This mod mostly impacts the early game including electronic circuit creation. Wi
- [cackling fiend](https://mods.factorio.com/user/cackling.fiend) (Update to 2.0) - [cackling fiend](https://mods.factorio.com/user/cackling.fiend) (Update to 2.0)
- [ElAdamo](https://mods.factorio.com/user/ElAdamo) (Gas-fired boiler: code, design, graphics) (code is public domain) - [ElAdamo](https://mods.factorio.com/user/ElAdamo) (Gas-fired boiler: code, design, graphics) (code is public domain)
- [Sakuro](https://github.com/sakuro) (expand options, icon tweaks) - [Sakuro](https://github.com/sakuro) (expand options, icon tweaks)
- [Benjah-bmm27](https://commons.wikimedia.org/wiki/User:Benjah-bmm27) ([Formaldehyde icon](https://commons.wikimedia.org/wiki/File:Formaldehyde-3D-vdW.png), - [Benjah-bmm27](https://commons.wikimedia.org/wiki/User:Benjah-bmm27) ([Formaldehyde icon](https://commons.wikimedia.org/wiki/File:Formaldehyde-3D-vdW.png), public domain)
public domain)
### Compatibility ### Compatibility
- [nihilistzsche](https://github.com/nihilistzsche) - [nihilistzsche](https://github.com/nihilistzsche)

View file

@ -1,4 +1,14 @@
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
Version: 2.0.2
Date: 22.10.2025
Bug Fixes:
- Fix bakelite prerequisite if foundry is present
---------------------------------------------------------------------------------------------------
Version: 2.0.1
Date: 21.10.2025
Changes:
- Switch to bz mods forks
---------------------------------------------------------------------------------------------------
Version: 2.0.0 Version: 2.0.0
Date: 19.10.2025 Date: 19.10.2025
Changes: Changes:

View file

@ -17,7 +17,7 @@ end
-- Vanilla burner phase tweaks -- green circuits after electronics -- Vanilla burner phase tweaks -- green circuits after electronics
-- Electronic circuit recipe set below in compatibility script -- Electronic circuit recipe set below in compatibility script
if not mods.Krastorio2 and not mods["aai-industry"] and not mods.bzaluminum2 and not mods.bzcarbon then if not mods.Krastorio2 and not mods["aai-industry"] and not mods.bzaluminum2 and not mods["bzcarbon2"] then
util.replace_ingredient("offshore-pump", "electronic-circuit", "copper-cable") util.replace_ingredient("offshore-pump", "electronic-circuit", "copper-cable")
util.replace_ingredient("lab", "electronic-circuit", "copper-cable") util.replace_ingredient("lab", "electronic-circuit", "copper-cable")
util.replace_ingredient("electric-mining-drill", "electronic-circuit", "copper-cable", 2, true) util.replace_ingredient("electric-mining-drill", "electronic-circuit", "copper-cable", 2, true)
@ -38,7 +38,7 @@ if not mods.Krastorio2 and not mods["aai-industry"] and not mods.bzaluminum2 and
util.set_enabled("inserter", false) util.set_enabled("inserter", false)
util.add_prerequisite("logistic-science-pack", "electronics") util.add_prerequisite("logistic-science-pack", "electronics")
end end
if not mods.bzaluminum2 and not mods.bzcarbon then if not mods.bzaluminum2 and not mods["bzcarbon2"] then
util.replace_ingredients_prior_to("electronics", "electronic-circuit", "copper-cable", 2) util.replace_ingredients_prior_to("electronics", "electronic-circuit", "copper-cable", 2)
end end

View file

@ -1188,8 +1188,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,6 +1,6 @@
{ {
"name": "bzgas2", "name": "bzgas2",
"version": "2.0.0", "version": "2.0.2",
"factorio_version": "2.0", "factorio_version": "2.0",
"title": "Natural Gas", "title": "Natural Gas",
"description": "Adds a natural gas resource, along with early game plastic.", "description": "Adds a natural gas resource, along with early game plastic.",
@ -9,12 +9,12 @@
"dependencies": [ "dependencies": [
"base >= 2.0.0", "base >= 2.0.0",
"? bzfoundry2 >= 2.0.0", "? bzfoundry2 >= 2.0.0",
"? bztitanium >= 2.0.26", "? bztitanium2 >= 2.0.26",
"? bzlead >= 2.0.28", "? bzlead2 >= 2.0.29",
"? bzzirconium >= 2.1.13", "? bzzirconium2 >= 2.1.14",
"? bztungsten >= 0.6.0", "? bztungsten2 >= 2.0.0",
"? bzcarbon >= 2.0.21", "? bzcarbon2 >= 2.0.22",
"? bztin >= 2.1.15", "? bztin2 >= 2.1.16",
"? warptorio2_expansion", "? warptorio2_expansion",
"? space-exploration >= 0.7.34", "? space-exploration >= 0.7.34",
"? aai-industry >= 0.6.13", "? aai-industry >= 0.6.13",

View file

@ -1,10 +1,5 @@
local util = require("data-util"); local util = require("data-util");
b_prereq = {"basic-chemistry"}
if data.raw.technology["foundry"] then
table.insert(b_prereq, "foundry")
end
data:extend({ data:extend({
{ {
type = "item", type = "item",
@ -35,7 +30,7 @@ data:extend({
name = "bakelite", name = "bakelite",
icon = "__bzgas2__/graphics/technology/bakelite.png", icon = "__bzgas2__/graphics/technology/bakelite.png",
icon_size = 256, icon_size = 256,
prerequisites = b_prereq, prerequisites = {"basic-chemistry"},
effects = { effects = {
{type = "unlock-recipe", recipe = "bakelite"}, {type = "unlock-recipe", recipe = "bakelite"},
}, },

View file

@ -7,7 +7,7 @@ local ge_ingredients = {
{type="item", name="stone-brick", amount=4}, {type="item", name="stone-brick", amount=4},
} }
local ge_prereq = {"automation"} local ge_prereq = {"automation"}
if mods.bzlead then table.insert(ge_ingredients, {type="item", name="lead-plate", amount=4}) end if mods["bzlead2"] then table.insert(ge_ingredients, {type="item", name="lead-plate", amount=4}) end
if mods.Krastorio2 then if mods.Krastorio2 then
table.insert(ge_ingredients, {type="item", name="kr-sand", amount=10}) table.insert(ge_ingredients, {type="item", name="kr-sand", amount=10})
ge_prereq = {"kr-stone-processing"} ge_prereq = {"kr-stone-processing"}