Barreling Group

by EvilPLa

Adds new group for barreling and unbarreling recipes and IBC's

Tweaks
14 days ago
2.0
9.79K
Transportation Fluids Manufacturing

g [Done]Compatibility with Biological Machines

15 days ago
(updated 15 days ago)

My mod Biological Machines: Core (https://mods.factorio.com/mod/biological-machines-core) adds two new fluids nutrient wine/ethanol when BM: Hunger or BM: Industry is installed (or when the BM: Core startup setting "alternative nutrients standalone" is enabled). These fluids have barreling/unbarreling recipes but the barrel items are capsules which apply stickers to the players character when consumed (like bioflux). As a result I am getting the following error on load

Failed to load mods: barreling-group2/data-final-fixes.lua:7: attempt to index field '?' (a nil value)
stack traceback:
barreling-group2/data-final-fixes.lua:7: in main chunk

Mods to be disabled:
• barreling-group2 (0.5.0)

I was able to fix this by replacing line 7 in barreling-group2/data-final-fixes.lua with the following

if data.raw.item[fluid.name .. "-barrel"] then
data.raw.item[fluid.name .. "-barrel"]["subgroup"] = "barreling"
elseif data.raw.capsule[fluid.name .. "-barrel"] then
data.raw.capsule[fluid.name .. "-barrel"]["subgroup"] = "barreling"
end

If you could implement this I would greatly appreciate it

14 days ago

Thanks for the quick update!

New response