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
10 hours ago
0.13 - 2.0
62.6K
Manufacturing

b [Fixed] Warptorio 2 Error

7 months ago

I have a proplem with reverse factory and warptorio 2. When i warp and on platform I have reverse fatory (working), then after teleporting i have that popout and game crashed.
this is a text into: "
Error while running event reverse-factory::on_tick (ID 0)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function'index'
reverse-factory
/control.lua: 12: in function 'checkinvs'
reverse-factory__/control.lua: 76: in function
<reverse-factory/control.lua:72>
"
Please help.

7 months ago
(updated 7 months ago)

Ahh, that sounds like a problem with the automatic ingredient push setting. To stop the crashes on your side, you can disable the setting with your map loaded, save the game, and then reload the same map, and I think that should preserve the setting changes. That setting is just to prevent things like 1 underground belt (when that item normally crafts in pairs) from clogging in the input slot, waiting for a second underground belt, so if you aren't mass recycling things like that, then it won't change anything for you.

If you are... then I guess I'll have to look into that issue. It's the second error regarding invalid entities that I've gotten recently (though they never provided any additional info), so I should probably actually fix it at some point.

7 months ago
(updated 7 months ago)

Actually, having Warptorio to test out changing surfaces really helped me figure out the problem. Hopefully should be fixed as of v8.2.5

6 months ago

Kryzeth.
problem is still on board
Here's the screen when error gets
https://imgur.com/Dcmo8kI
What i done - I save game before that, put item to assemble. Platform teleport. Everything is looking good, but when i try to get the mashine - game crash

6 months ago
(updated 6 months ago)

I see what the issue was; rcecylers (and buildings in general) that are already on the platform (on the surface of the planet) are kept and warped to the next surface, and my code wasn't accounting for that; it was just clearing the list of recyclers for the new surface, so trying to remove a recycler that wasn't on the list.

I've changed a bit of the code so that (in theory) when the surface changes, the new surface is scanned and added to the list. I'm not sure how this will interact with moving between the internal surface of the warptorio.. ship thing, but it seemed like everything was working, and not crashing, so hopefully that's fine. Now I'm concerned if these changes affect space exploration in some way...

But this particular crash should be fixed as of v8.2.10
EDIT: I released a follow-up shortly after, since I left some debug code in, among other issues. Potentially fixed as of v8.2.11

New response