Reverse Factory

by Kryzeth

Reverse Factory machine will recycle (uncraft) nearly any item placed inside. Supports the recycling of most, if not all, modded items. Fully featured integration with Bobs Mods, Industrial Revolution, and Fantario (independently, not simultaneously)

Content
23 days ago
0.13 - 1.1
56.2K
Manufacturing

g [Fixed] Out of bounds error while starting

1 year, 3 months ago

I'm getting the following error with this mod. I'm not exactly sure what mod that is from, but I have 248k, k2, and Warptorio2+expansion installed, among other more minor mods. Although I'm guessing a simple check could catch this for any mod it runs into.
18.976 Error ModManager.cpp:1560: Error while loading recipe prototype "rf-fu_tokamak_1_recipe" (recipe): Difficulty normal: Value (110000.000000) outside of range. The data type allows values from 0 to 65535 in property tree at ROOT.recipe.rf-fu_tokamak_1_recipe.ingredients[0].amount

1 year, 3 months ago
(updated 1 year, 3 months ago)

Hm, quite an unusual error.. somehow the ingredient amount is read as near-infinite? I've tried running those 4 mods (248k, K2, Warptorio2 +expansion, and Reverse Factory) and I'm not getting the same error. However, I can see that there is a recipe called "fu_tokamak_1_recipe" that somehow requires 110,000 "fu_lead_fluid_coal", which is an insane amount, though I'm surprised to see that amount is even allowed as ingredients, but not as results.

Though it seems that with my minimal mod list, the reverse recipe for that item is not created. I've made a temporary patch that disables the category for that recipe, in case there were any other "fu_tokamak_reactor_crafting_category" recipes that used similar amounts of ingredients. It's annoyingly difficult to get the ingredient counts without a lot of code (due to needing to account for differing formats, including basic ingredients table, normal/expensive ingredients table, simple recipe without labels, etc)

It also seems that the mod portal is currently having issues with uploading mods, but I have the temporary patch ready for uploading. If you would like to implement this fix for your own version of the mod, you can extract the current version of the mod, open the "data.lua" file in a text editor, scroll to the bottom, and add the line:

table.insert(rf.norecycle_categories, "fu_tokamak_reactor_crafting_category")

1 year, 3 months ago

Thanks!

1 year, 3 months ago

Sorry for the delay, I actually forgot about this until now, but uploaded the fix as v8.1.17

New response