Recycle recipes inspector

by Quezler

Adds a scrollable gui with all items and their recycle outputs.

Utilities
7 months ago
2.0
77
Manufacturing

b attempt to perform arithmetic on field 'amount' (a nil value)

7 days ago
(updated 7 days ago)

Hi there!

Got this right after "/recycle-recipes-inspector" (I never used your mod before so I don't know if it ever worked in my save):

Error while running command "recycle-recipes-inspector": recycle-recipes-inspector/control.lua:87: attempt to perform arithmetic on field 'amount' (a nil value)
stack traceback:
recycle-recipes-inspector/control.lua:87: in function 'open_gui'
recycle-recipes-inspector/control.lua:140: in function <recycle-recipes-inspector/control.lua:138>

Have a ton of mods installed, so maybe some mod doesn't set some field you expect to be set... can you do something with this information or can I provide some more info?

Thanks!

6 days ago

could you share a fresh world save? that way i can sync to your mods

5 days ago

Hi there! Thanks for your reply. I found out (logged some stuff locally in your mod), it's this guy:

https://github.com/aboucher51/common-prototypes/blob/e77445315e16fca30cfd155a557695d6a0ca2afe/prototypes/recycling-recipes.lua#L29

I believe I have this mod https://mods.factorio.com/mod/common-prototypes active because https://mods.factorio.com/mod/metal-and-stars depends on it (I've not even reached this place in my save though).

It's the only recipe in all of my tons of mods that uses amount_min and amount_max instead of amount in their recycling recipe. Seems legit, though: https://lua-api.factorio.com/latest/concepts/ItemProduct.html

So I reckon you'd have to cope with this way of specifying an amount... for me, it's fine, because i edited the mod locally (some if product.amount ~= nil then shenanigans), so no hurry. :-)

Thank you!

New response