Description
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>
A cursed, naive workaround would be to wrap the set_slot call in pcall, or to walk the LogisticSection::filters array checking each for a match of the signal you're setting.
I also filed this on the factorio forums, because this does seem like a deficiency in the API instead of a thing mods should each individually need to handle, potentially with pcalls.
https://forums.factorio.com/viewtopic.php?t=127891
Reproduction
Infinity loader with filter set for Iron Ore (Normal, on either or both lanes).
Constant Combinator with Iron Ore (Normal, any quantity) set on any slot greater than 2.
Shift-R Click on the loader, Shift-L Click the combinaor an observe crash.



LogisticSection-RussianRoulette.zip
Description
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>
A cursed, naive workaround would be to wrap the set_slot call in pcall, or to walk the LogisticSection::filters array checking each for a match of the signal you're setting.
I also filed this on the factorio forums, because this does seem like a deficiency in the API instead of a thing mods should each individually need to handle, potentially with pcalls.
https://forums.factorio.com/viewtopic.php?t=127891
Reproduction
Infinity loader with filter set for Iron Ore (Normal, on either or both lanes).
Constant Combinator with Iron Ore (Normal, any quantity) set on any slot greater than 2.
Shift-R Click on the loader, Shift-L Click the combinaor an observe crash.
LogisticSection-RussianRoulette.zip