Schall Uncraft


Revert a product back to its ingredients. Designed for recycling unused items. (Locale: English, Deutsch, 正體中文, 简体中文, Русский, Português Brasileiro)

Utilities
3 months ago
0.16 - 2.0
5.82K
Manufacturing

b [Solved] Crash uncrafting (all) concrete

4 months ago

While uncrafting all dectorio striped concrete I got a crash.

https://i.imgur.com/RH3XA8Q.png

4 months ago

I came here to report the same, it crashes with other items as well.

The mod Schall Uncraft (2.0.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event SchallUncraft::event-Schall-UC-all (ID 219)
'filter': table expected, got userdata
stack traceback:
[C]: in function 'get_item_count'
SchallUncraft/control.lua:171: in function <SchallUncraft/control.lua:154>

4 months ago

I was able to make it work for some (most?) items by changing line 171 in control.lua from
local itemcount = player.get_item_count(player.cursor_stack)

to
local itemcount = player.get_item_count(player.cursor_stack.name)

It does not work if the item Quality is above normal vanilla quality. Must do higher quality items one stack at a time.

3 months ago

Thanks for reporting.
Should be solved with updates 2.0.3.

The error is caused by 2.0.22, where the get_item_count() API calls are changed (again). Different get_item_count() calls from different objects are requiring different data inputs, which has confused me.
2.0.3 should work again. (Before such API calls are changed again...)

New response