Remote Switch

by Darkcry

Adds new constant combinators which can be toggled remotely

Content
3 years ago
0.16 - 1.1
531
Circuit network

b Crash on opening GUI after CM instant deconstruct

5 years ago

Factorio 0.17.31
RS 2.0.0

I removed a few remote switches with Creative Mod instant deconstruction.
The remote switches didn't disappear from the GUI.
I closed and opened the RS GUI to refresh it. Crash on opening the GUI.
Instant contruction/destruction doesn't trigger construction/destruction event handlers :/

I expect that RS removes the invalid remote switches from its list instead of crashing.

The mod Remote Switch caused a non-recoverable error.
Please report this error to the mod author.

Error while running event remote-switch::on_gui_click (ID 1)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
remote-switch/switchGUI.lua:64: in function 'toggle_popup'
remote-switch/switchGUI.lua:131: in function <remote-switch/switchGUI.lua:128>
stack traceback:
[C]: in function 'index'
__remote-switch
/switchGUI.lua:64: in function 'toggle_popup'
remote-switch/switchGUI.lua:131: in function <remote-switch/switchGUI.lua:128>

5 years ago

Hi
Thanks for the report. I made a patch.

5 years ago

Thanks :)

New response