84.106 Error MainLoop.cpp:738: Exception at tick 488330: Error while running event on_tick (ID 0)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
wireless-charging-lib/src/main.lua:496: in function 'on_entity_removed'
wireless-charging-lib/src/main.lua:287: in function 'tracking_tick'
wireless-charging-lib/src/main.lua:572: in function <wireless-charging-lib/src/main.lua:571>
84.106 Error ServerMultiplayerManager.cpp:88: MultiplayerManager failed: "Error while running event on_tick (ID 0)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
wireless-charging-lib/src/main.lua:496: in function 'on_entity_removed'
wireless-charging-lib/src/main.lua:287: in function 'tracking_tick'
wireless-charging-lib/src/main.lua:572: in function <wireless-charging-lib/src/main.lua:571>"
84.118 Info ServerMultiplayerManager.cpp:625: mapTick(488330) changing state from(InGame) to(Failed)
Has the error on load in multiplayer.
EDIT: If load save in SP and remove armor then save I can load in Multiplayer no problem.
EDIT2:
Added to control.lua
script.on_event(defines.events.on_player_joined_game, on_player_joined_game)
Added to src/main.lua
function on_player_joined_game(event)
check_player_armor(event.player_index)
end
So far is allowing saving and loading in Multiplayer without error in the last hour or testing.