Auto Deconstruct

by mindmix

This mod marks drills that have no more resources to mine for deconstruction.

Utilities
16 days ago
0.13 - 2.0
343K
Mining

g Crash Error

16 days ago

First time this happens to me.
it used to work fine before I updated to the latest version:

The mod Auto Deconstruct (1.0.11) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event AutoDeconstruct::on_nth_tick(17)
AutoDeconstruct/script/pipeutil.lua:280: attempt to index a number value
stack traceback:
AutoDeconstruct/script/pipeutil.lua:280: in function 'choose_pipe'
AutoDeconstruct/script/autodeconstruct.lua:557: in function 'order_deconstruction'
AutoDeconstruct/script/autodeconstruct.lua:703: in function 'process_queue'
AutoDeconstruct/control.lua:23: in function <AutoDeconstruct/control.lua:22>

16 days ago

Got the same, happened when my uranium mine exhausted completely.

16 days ago

Sorry for the crash, must be something in the last update but I don't see it immediately in the code. I'll look at it tonight (and if you don't mind sharing a save file that crashes, that would be helpful!)

16 days ago
(updated 16 days ago)

https://files.catbox.moe/pyylnx.zip

ignore the save name lmao

it is an SE save, the crash happens about 20 seconds after you load the save

48.444 Error MainLoop.cpp:1468: Exception at tick 35766453: The mod Auto Deconstruct (1.0.11) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event AutoDeconstruct::on_nth_tick(17)
AutoDeconstruct/script/pipeutil.lua:280: attempt to index a number value
stack traceback:
AutoDeconstruct/script/pipeutil.lua:280: in function 'choose_pipe'
AutoDeconstruct/script/autodeconstruct.lua:557: in function 'order_deconstruction'
AutoDeconstruct/script/autodeconstruct.lua:703: in function 'process_queue'
AutoDeconstruct/control.lua:23: in function <AutoDeconstruct/control.lua:22>

16 days ago

I get the same too k2se
here is the save
https://files.catbox.moe/ruswi8.zip

16 days ago

Got the same Error :/

The mod Auto Deconstruct (1.0.11) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event AutoDeconstruct::on_nth_tick(17)
AutoDeconstruct/script/pipeutil.lua:280: attempt to index a number value
stack traceback:
AutoDeconstruct/script/pipeutil.lua:280: in function 'choose_pipe'
AutoDeconstruct/script/autodeconstruct.lua:557: in function 'order_deconstruction'
AutoDeconstruct/script/autodeconstruct.lua:703: in function 'process_queue'
AutoDeconstruct/control.lua:23: in function <AutoDeconstruct/control.lua:22>

16 days ago

Fix is live, please download 1.0.12. Thank you all for the save files and your patience!

It was a stupid "optimization" error. Turns out next() in Lua doesn't give the next element of a table, it gives the index of the next element...

16 days ago

Thanks!

New response