Rigor Module


New type of module: Rigor modules. Rigor modules increase the probability of a recipe returning its most valuable product.

Content
3 days ago
2.0
2.29K
Manufacturing

b Crash with table index is nil

19 days ago
(updated 19 days ago)

Failed to load mod "rigor-module": rigor-module/data-final-fixes.lua:584: table index is nil
stack traceback:
rigor-module/data-final-fixes.lua:584: in main chunk

not sure what's the cause, logging at that place tells me it happens with the recipe "juice-extractor", I'm not sure where that's from (I have a lot of mods installed), but this recipe's category is indeed not set...

maybe you can skip what you're doing if the category is not set, or have another idea for a fallback?

Edit: Hm, it's this I think: https://github.com/factorio-plexpt/fruit/blob/90ff9406a9f814a24e4ab9b2e4c1e56f586b9db3/data/entity.lua#L242 though it's not a recipe, but an assembler...the prototype is also touched by planet-rabbasca, maybe they convert it to a recipe or something...

Edit2: ah nah, there's some magic happening here: https://github.com/factorio-plexpt/fruit/blob/90ff9406a9f814a24e4ab9b2e4c1e56f586b9db3/data/entity.lua#L1054 so I think they just introduce a recipe without a category and thus your mod crashes...

19 days ago

Thanks for reporting this, and for doing this investigating! You're right, it's because the recipe has no category--but it does have additional_categories--the combination of which causes this mod to crash.

I should have a fix up in a few hours.

18 days ago

Fixed in v0.1.8

16 days ago

thank you, works!

New response