Module Inserter


Mass insert modules into machines with construction bots

Utilities
2 months ago
0.13 - 1.1
140K

g crash in editor

4 years ago

Stop time, place some factories, use module-inserter on them (nothing happens since time is stopped), start time, game crashes:

ModuleInserter/control.lua:85:attempt to index local 'entity' (a boolean value)
called from create_request_proxy

4 years ago
(updated 4 years ago)

I have a similar crash, except I never stopped time:

The mod Module Inserter (5.0.6) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event ModuleInserter::on_nth_tick(55000949)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
ModuleInserter/control.lua:77: in function 'drop_module'
ModuleInserter/control.lua:135: in function 'create_request_proxy'
ModuleInserter/control.lua:205: in function <ModuleInserter/control.lua:194>
stack traceback:
[C]: in function 'index'
__ModuleInserter
/control.lua:77: in function 'drop_module'
ModuleInserter/control.lua:135: in function 'create_request_proxy'
ModuleInserter/control.lua:205: in function <ModuleInserter/control.lua:194>

4 years ago

Thanks for the reports, should be fixed in the latest update.

4 years ago
(updated 4 years ago)

Sadly I still got an error. This one happened when I tried to replace speed module 3 with module 2 (didn't test if it works normally if no module present):

The mod Module Inserter (5.0.7) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event ModuleInserter::on_nth_tick(59765927)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
ModuleInserter/control.lua:77: in function 'drop_module'
ModuleInserter/control.lua:135: in function 'create_request_proxy'
ModuleInserter/control.lua:206: in function <ModuleInserter/control.lua:194>
stack traceback:
[C]: in function 'index'
__ModuleInserter
/control.lua:77: in function 'drop_module'
ModuleInserter/control.lua:135: in function 'create_request_proxy'
ModuleInserter/control.lua:206: in function <ModuleInserter/control.lua:194>

4 years ago

Should be fixed in the latest update and sorry for the long wait.

I marked the chest where removed modules get put in for deconstruction before being finished with all the modules. Turns out in editor mode that leads to instant destruction of the chest, making it invalid right in the next line.

New response