Auto Deconstruct

by mindmix

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

Utilities
a month ago
0.13 - 2.1
358K
Mining

b [Fixed] Crash building pipes to ghosts

a month ago

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

Error while running event AutoDeconstruct::on_nth_tick(17)
Unable to create LuaFluidBoxPrototype for entity-ghost from a given FluidBoxPrototype pointer 0x0000021c81cbce28
stack traceback:
[C]: in function 'get_fluid_box_prototype'
AutoDeconstruct/script/pipeutil.lua:194: in function 'find_pipes_to_build'
AutoDeconstruct/script/autodeconstruct.lua:556: in function 'order_deconstruction'
AutoDeconstruct/script/autodeconstruct.lua:708: in function 'process_queue'
AutoDeconstruct/control.lua:23: in function <AutoDeconstruct/control.lua:22>

a month ago

found the culprit:
https://imgur.com/a/O3wCsR1

a month ago

what does the image show, that site no longer works in the UK

a month ago

Tganks foe the report! Would you mind sharing your save file so I can reproduce this easily?

a month ago
(updated a month ago)

if you want 2 Im happy to give you mine, on my save it only happens when i move

a month ago
(updated a month ago)

That would be helpful. This is a new kind of crash so I don't know what causes it yet.

a month ago

Ah, I've figured it out. Just any ghost pipe connected to the drill when it is deconstructed will throw the error. This might be a game engine bug, I'll look into it.

a month ago

I found the bug and pushed the fix. It was an undocumented difference in the API between regular entities and ghosts. Thanks for the report!

New response