Module Inserter


Mass insert modules into machines with construction bots

Utilities
2 months ago
0.13 - 1.1
140K

b [fixed] Crash when associating a module with an unassigned entity

3 years ago

Hi. Normally, in the module configuration GUI, you can't select which modules to insert into before the entity selection. When in the 10th row (or higher) an entity was selected, a "new entry" row gets added to the end of the list (no icon, "Select an entity with module slots" hint when hovering). But for these dynamically added entries (for the case the initial list wasn't long enough) the user can always pick a module, which will lead to a crash when no entity has been assigned:

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

Error while running event ModuleInserter::on_gui_elem_changed (ID 68)
ModuleInserter/scripts/gui.lua:677: attempt to index local 'entity_proto' (a nil value)
stack traceback:
ModuleInserter/scripts/gui.lua:677: in function 'handler'
ModuleInserter/control.lua:697: in function <ModuleInserter/control.lua:689>

2 months ago

Will be fixed in the next version

New response