The offending line code in my mod (as mentioned in the stacktace, line 76) was something like
Code: Select all
commands.add_command("mycommand", { "mymod.command" }, function(event)
// do stuff
game.players[event.player_index].print({"my_mod.stuff_done"})
end)
Code: Select all
215.907 Error MainLoop.cpp:1202: Exception at tick 107206793: Error while running
command "resetradars": radar-tech/control.lua:76: bad argument #3 of 3 to 'index' (string expected, got nil)
stack traceback:
[C]: in function '__index'
__radar-tech/control.lua:76: in function <radar-tech/control.lua:67>
215.907 Error ServerMultiplayerManager.cpp:90: MultiplayerManager failed: "Error while running command "resetradars
": radar-tech/control.lua:76: bad argument #3 of 3 to 'index' (string expected, got nil)
stack traceback:
[C]: in function '__index'
__radar-tech/control.lua:76: in function <radar-tech/control.lua:67>"
215.907 Info ServerMultiplayerManager.cpp:771: updateTick(107206793) changing state from(InGame) to(Failed)
215.907 Quitting: multiplayer error.