The built in chooser prevents you selecting the same signal twice. Running set_slot in the console returns an error. "Filter conflicts with filter in slot 1.".
pic
However, when using set_slot in mod lua and unknowingly colliding with an existing signal, the mod crashes with the same error.Code: Select all
The mod Editor Extensions (2.5.0) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event EditorExtensions::on_entity_settings_pasted (ID 37)
Filter conflicts with filter in slot 4.
stack traceback:
[C]: in function 'set_slot'
__EditorExtensions__/scripts/infinity-loader.lua:92: in function 'copy_from_loader_to_combinator'
__EditorExtensions__/scripts/infinity-loader.lua:189: in function 'handler'
__core__/lualib/event_handler.lua:47: in function <__core__/lualib/event_handler.lua:45>
As a possible suggestion, if set_slot would silently fail and return the colliding slot index on collision, that would help a lot.