Gleba Additions


Expands on the biochamber and Glebas unlocks by adding more recipes to the biochamber and new tech tied to Gleba, all in a vanilla feeling way.

Content
13 days ago
2.0 - 2.1
700
Factorio: Space Age Icon Space Age Mod
Logistics Combat Manufacturing

g 2.1 update?

a month ago

Sorry to bother again so soon, but I have a patch for you that is a "Works on my machine(tm) with five minutes of testing so far" to get to 2.1 compat. Do read it closely/check because this is a bit of a quick patch/hack job :)

note, due to my self-modified mod organization, this has a bit of my mangling with fish-barrelling mixed in inadvertently but this is more all meant to be a jumping off point for ya to copy/paste from...

diff -x info.json -r ./ext-orig/glebaadditions/glebaadditions_1.0.2/prototypes/recipe.lua ./ext-upd/glebaadditions/glebaadditions_1.0.2/prototypes/recipe.lua
1,21c1,34
< data.raw["recipe"]["burner-inserter"].additional_categories = { "organic" }
< data.raw["recipe"]["inserter"].additional_categories = { "organic" }
< data.raw["recipe"]["long-handed-inserter"].additional_categories = { "organic" }
< data.raw["recipe"]["fast-inserter"].additional_categories = { "organic" }
< data.raw["recipe"]["bulk-inserter"].additional_categories = { "organic" }
< data.raw["recipe"]["stack-inserter"].additional_categories = { "organic" }
< data.raw["recipe"]["landfill"].additional_categories = { "organic" }
< data.raw["recipe"]["artificial-yumako-soil"].additional_categories = { "organic" }
< data.raw["recipe"]["overgrowth-yumako-soil"].additional_categories = { "organic" }
< data.raw["recipe"]["artificial-jellynut-soil"].additional_categories = { "organic" }
< data.raw["recipe"]["overgrowth-jellynut-soil"].additional_categories = { "organic" }
< data.raw["recipe"]["agricultural-tower"].additional_categories = { "organic" }
< data.raw["recipe"]["lubricant"].additional_categories = { "organic" }
< -- data.raw["recipe"]["holmium-solution"].additional_categories = { "organic" } add back later?
< data.raw["recipe"]["ice-melting"].additional_categories = { "organic" }
< data.raw["recipe"]["solid-fuel-from-petroleum-gas"].additional_categories = { "organic" }
< data.raw["recipe"]["solid-fuel-from-light-oil"].additional_categories = { "organic" }
< data.raw["recipe"]["solid-fuel-from-heavy-oil"].additional_categories = { "organic" }
< data.raw["recipe"]["coal-synthesis"].additional_categories = { "organic" }
< data.raw["recipe"]["tungsten-carbide"].additional_categories = { "organic" }
< data.raw["recipe"]["flamethrower-ammo"].additional_categories = { "organic" }
---
> function add_recipe_category(rname)
>     local r = data.raw["recipe"][rname]
>     if r == nil then
>         error("recipe '"..rname.."' is missing?")
>     end
>     if r.categories == nil then
>         -- "crafting" is the default if nil/not set, so ensure to add that
>         r.categories = {"crafting"}
>     end
>     table.insert(r.categories,"organic")
> end
> add_recipe_category("burner-inserter")
> add_recipe_category("inserter")
> add_recipe_category("long-handed-inserter")
> add_recipe_category("fast-inserter")
> add_recipe_category("bulk-inserter")
> add_recipe_category("stack-inserter")
> add_recipe_category("landfill")
> add_recipe_category("artificial-yumako-soil")
> add_recipe_category("overgrowth-yumako-soil")
> add_recipe_category("artificial-jellynut-soil")
> add_recipe_category("overgrowth-jellynut-soil")
> add_recipe_category("agricultural-tower")
> add_recipe_category("lubricant")
> -- add_recipe_category("holmium-solution") add back later?
> add_recipe_category("ice-melting")
> add_recipe_category("solid-fuel-from-petroleum-gas")
> add_recipe_category("solid-fuel-from-light-oil")
> add_recipe_category("solid-fuel-from-heavy-oil")
> add_recipe_category("coal-synthesis")
> add_recipe_category("tungsten-carbide")
> add_recipe_category("flamethrower-ammo")
> 
> 
42,49c55
< data.raw["recipe"]["fish-breeding"].maximum_productivity = 0.5
< data.raw["recipe"]["fish-breeding"].ingredients =
< {
<     { type = "item",  name = "raw-fish", amount = 2,  ignored_by_stats = 2 },
<     { type = "item",  name = "spoilage", amount = 120 },
<     { type = "fluid", name = "water",    amount = 100 }
< }
< 
---
> data.raw["recipe"]["fish-breeding"].allow_productivity = true
55c61
<             category = "organic",
---
>             categories = {"organic"},
84c90
<             category = "organic",
---
>             categories = {"organic"},
121c127
<                     icon = "__quality__/graphics/icons/recycling.png"
---
>                     icon = "__recycler__/graphics/icons/recycling.png"
128c134
<                     icon = "__quality__/graphics/icons/recycling-top.png"
---
>                     icon = "__recycler__/graphics/icons/recycling-top.png"
131c137
<             category = "recycling-or-hand-crafting",
---
>             categories = {"recycling","hand-crafting"},
140,146c146,152
<                 { type = "item", name = "copper-cable",          amount = 1, probability = 0.15, show_details_in_recipe_tooltip = false },
<                 { type = "item", name = "iron-plate",            amount = 1, probability = 0.12, show_details_in_recipe_tooltip = false },
<                 { type = "item", name = "concrete",              amount = 1, probability = 0.06, show_details_in_recipe_tooltip = false },
<                 { type = "item", name = "steel-plate",           amount = 1, probability = 0.04, show_details_in_recipe_tooltip = false },
<                 { type = "item", name = "stone",                 amount = 1, probability = 0.04, show_details_in_recipe_tooltip = false },
<                 { type = "item", name = "low-density-structure", amount = 1, probability = 0.01, show_details_in_recipe_tooltip = false },
<                 { type = "item", name = "plastic-bar",           amount = 1, probability = 0.01, show_details_in_recipe_tooltip = false }
---
>                 { type = "item", name = "copper-cable",          amount = 1, independent_probability = 0.15, show_details_in_recipe_tooltip = false },
>                 { type = "item", name = "iron-plate",            amount = 1, independent_probability = 0.12, show_details_in_recipe_tooltip = false },
>                 { type = "item", name = "concrete",              amount = 1, independent_probability = 0.06, show_details_in_recipe_tooltip = false },
>                 { type = "item", name = "steel-plate",           amount = 1, independent_probability = 0.04, show_details_in_recipe_tooltip = false },
>                 { type = "item", name = "stone",                 amount = 1, independent_probability = 0.04, show_details_in_recipe_tooltip = false },
>                 { type = "item", name = "low-density-structure", amount = 1, independent_probability = 0.01, show_details_in_recipe_tooltip = false },
>                 { type = "item", name = "plastic-bar",           amount = 1, independent_probability = 0.01, show_details_in_recipe_tooltip = false }
153c159
<             category = "organic",
---
>             categories = {"organic"},
188c194
<             category = "organic-or-chemistry",
---
>             categories = {"organic", "chemistry"},
205a212,218
>     data.raw["recipe"]["fish-breeding"].ingredients =
>     {
>         { type = "item",  name = "raw-fish", amount = 2,  ignored_by_stats = 2 },
>         { type = "item",  name = "spoilage", amount = 120 },
>         { type = "fluid", name = "water",    amount = 100 }
>     }
> 
234c247
<             category = "crafting-with-fluid",
---
>             categories = {"crafting-with-fluid"},
272c285
<             category = "crafting-with-fluid",
---
>             categories = {"crafting-with-fluid"},
285c298
< end
\ No newline at end of file
---
> end
a month ago

Hi, I was about to publish a patch nowish since I finally got home today and saw this now. But the fact someone likes my mod enough to fix it themselves is quite flattering not gonna lie lol

New response