Solidified Fluids (for Factorio 2.0)


[Beta for Factorio 2.0] Fill liquids into bottles and use them directly in recipes instead of liquids

Content
a month ago
2.0
412
Logistics Fluids Power

b [TODO] Incompatibility with Cerys probably

2 months ago

Probably more of an incompatibility, but while i can fix some LUA things, i have no real idea how the icons work

Error ModManager.cpp:1751: Error while loading recipe prototype "cerys-science-pack--solidified-fluids" (recipe): Key "icon" not found in property tree at ROOT.recipe.cerys-science-pack--solidified-fluids.icons[0]
Modifications: Solidified Fluids (republication)

Disabling cerys fixes the error, but i would like to get a new game going with all the mod planets. It did work before with cerys, but i have no idea what changed on that side.

2 months ago
(updated 2 months ago)

yes I know the code is still chaotic with a mix from old mod code and my new code. it's so complex that I'm still carefully tidying up without breaking anything

recipe.cerys-science-pack has no icon specified
and accordingly my copy does not either
but the icon is mandatory.
I need to take a closer look at the data where it is defined or whether cerys-science-pack needs to be transformed at all

2 months ago
(updated 2 months ago)

cerys-science-pack is only defined in data-final-fixes, which means that at the time of my data-final-fixes scans the items the item does not even exist yet. this is why no developer should define new items in data-final-fixes! :-(

2 months ago

Ok, that helped me to "fix" it for now. I just added cerys as an optional mod and IIRC that forces this to load after cerys. It did fix the bug, but this solution is far from clean and i have no idea how you could do a proper fix for situations like this.

2 months ago
(updated 2 months ago)

i did write the mod author to address the actual problem, we'll have to wait and see if he does.
adding each mod as dependency that doing such things in data-final-fixes is just a bad workaround

i have also localized the icon problem: i search all recipes for liquids and create new ones, if the recipe itself has no icon/icons, then i use the result item, which in this case does not (yet) exist and therefore an empty icon was copied. i have intercepted the crash, but the recipe then has no icon.

In summary, we have two issues
a) the creation of new prototypes in data-final-fixes
b) the separate creation of recipes and items in different stages

2 months ago
(updated 2 months ago)

should work now w/o the workaround
Thank goes to thesixthroc

New response