Auto Deconstruct

by mindmix

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

Utilities
12 days ago
0.13 - 2.1
356K
Mining

b [Fixed] Crash building pipes to ghosts

13 days 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>

13 days ago

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

12 days ago

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

12 days ago

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

12 days ago
(updated 12 days ago)

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

12 days ago
(updated 12 days ago)

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

12 days 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.

12 days 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