Zomis / FactorioMods

Various mods for the game Factorio
https://mods.factorio.com/mods/zomis
MIT License
15 stars 9 forks source link

Visual Signals crashing in multiplayer #48

Open Zomis opened 4 years ago

Zomis commented 4 years ago

Crash:

603005.674 Error MainLoop.cpp:1207: Exception at tick 19555041: The mod Visual Signals (0.18.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event visual-signals::on_gui_checked_state_changed (ID 3)
__visual-signals__/control.lua:212: attempt to index field 'gui_signal_display' (a nil value)
stack traceback:
        __visual-signals__/control.lua:212: in function <__visual-signals__/control.lua:205>
603005.675 Error ServerMultiplayerManager.cpp:90: MultiplayerManager failed: "The mod Visual Signals (0.18.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event visual-signals::on_gui_checked_state_changed (ID 3)
__visual-signals__/control.lua:212: attempt to index field 'gui_signal_display' (a nil value)
stack traceback:
        __visual-signals__/control.lua:212: in function <__visual-signals__/control.lua:205>"
Zomis commented 4 years ago

The erroring line is this: https://github.com/Zomis/FactorioMods/blob/master/visual-signals_0.18.2/control.lua#L212 So basically the new player didn't have the GUI root window.

So it's an easy fix.