Recycling in Factoriopedia


A mod that adds the recycling recipes to factoripedia.

Utilities
9 days ago
2.0
1.17K

b attempt to index local 'sub' (a nil value)

14 days ago

Since Updating to the Most Recent version i have been getting this error any time i try to load the mod.

4.709 Loading mod recycling-factoriopedia 0.6.0 (data-final-fixes.lua)
4.714 Error ModManager.cpp:1745: Failed to load mod "recycling-factoriopedia": recycling-factoriopedia/data-final-fixes.lua:58: attempt to index local 'sub' (a nil value)
stack traceback:
recycling-factoriopedia/data-final-fixes.lua:58: in main chunk
4.746 Loading mod core 0.0.0 (data.lua)
4.823 Checksum for core: 3663106354
4.847 Error ModManager.cpp:1745: Error in assignID: recipe-category with name 'recycling' does not exist.

13 days ago

Ok I've fixed it. (That was probably caused by another mod creating a new item, but not putting it in a specific row in factoriopedia).

The error at the end of your message is very strange, if the "recycling" category doesn't exist (because another mod has deleted it), my mod should just do nothing, but not give an error.

13 days ago

the last bit could very well be an artifact of an expected value actually being a nil as the first bit of the error indicates and the engine then doing something else then its supposed to because it sees something that it wasnt expecting.
since mods are loaded one after another a different mod shouldnt have been able to delete the category while it was working, it should have happened either before or after the mod.

New response