House Fire Overhaul Mod


Overhauls the quality and recycling systems, introduces new technologies, and makes various other gameplay tweaks.

Tweaks
9 days ago
2.1
28
Fluids Manufacturing

b Recycling recipes error

a month ago

Hello!
I got an issue while loading this mod in my pack:

Failed to load mods: ..se-fire-overhaul-mod__/data/adjust-recycling-recipes.lua:77: attempt to perform arithmetic on local 'base_amount' (a nil value)
stack traceback:
...se-fire-overhaul-mod__/data/adjust-recycling-recipes.lua:77: in main chunk
[C]: in function 'require'
house-fire-overhaul-mod/data-final-fixes.lua:1: in main chunk

Not sure which exact mod causes that, so for now i just use fixer mod to change every recicling recipe to not have a nil value.
If you need, i can go through all my mods and tell, which of them raise this error.

a month ago

Hmmm, I would probably need the mod that is causing it to see what they are doing. I have a feeling they must be using results min/max for a recycling recipe... which is a bit odd I guess, because the base game uses the probability to get the extra item - like if there's a 50/50 chance to get 4 or 5, the amount will be 4 and the probability to get the 5th is 50%, so the way I'm "fixing" this to always be a whole number works. I think I can just do (max-min)/2 to get the average and set the output result amount to that... but I'd have to think about it and verify that it doesn't cause an issue.

a month ago
(updated a month ago)

Seems like only Solar System Science mod causes issue with it "sssp-ferro-tungsten-expanded-recycling" recipe (both ingredients and result).

a month ago
(updated a month ago)

Should be fixed in v1.0.10. Note that to avoid overly complicating the logic I have to "fix" recycling recipes, if the min/max adjustment results in a fractional value, it will still have a probability chance to it - meaning that the results aren't exact like they are for other recycling recipes (when using my mod). In this case, the Ferro Tungsten Expanded recycling recipe has a 4-5 iron ore and stone output chance (50% to output 4, 50% to output 5).

The only recipe that this actually affects in that mod is that single recipe. I'm assuming that recycling recipe is hard-coded to be the way that it is, because the game's auto-generating recycling recipes don't use min/max, they use the probability chance.

a month ago

Thanks for the fix!

This thread has been locked.