Wireless Charging Lib

by mknejp

Contains all the support code that allows for wireless charging. The workhorse behind the Wireless Charging mod.

9 years ago
0.14
17

b Error on Load

10 years ago
(updated 10 years ago)

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.

10 years ago

Thanks for the hint. This should be fixed in 0.2.3. Unfortunately I was unable to do multiplayer testing so I hope there won't be other MP related issues.

New response