Oarcinae / FactorioScenarioMultiplayerSpawn

A custom scenario for Factorio which provides each player a unique starting spawn point in a multiplayer game.
MIT License
49 stars 30 forks source link

Crash on player respawn #133

Closed lewisandrew closed 3 years ago

lewisandrew commented 3 years ago

On player respawn, my server crashes.

Screenshot_10

Error log message

97776.339 Error MainLoop.cpp:1285: Exception at tick 3216849: The scenario level caused a non-recoverable error.
Please report this error to the scenario author.

Error while running event level::on_player_respawned (ID 43)
'name': string expected, got number
stack traceback:
    [C]: in function 'insert'
    /home/container/temp/currently-playing/lib/oarc_utils.lua:277: in function 'GivePlayerItems'
    /home/container/temp/currently-playing/lib/oarc_utils.lua:1332: in function 'PlayerRespawnItems'
    /home/container/temp/currently-playing/control.lua:229: in function </home/container/temp/currently-playing/control.lua:226>
97776.339 Error ServerMultiplayerManager.cpp:91: MultiplayerManager failed: "The scenario level caused a non-recoverable error.
Please report this error to the scenario author.

Error while running event level::on_player_respawned (ID 43)
'name': string expected, got number
stack traceback:
    [C]: in function 'insert'
    /home/container/temp/currently-playing/lib/oarc_utils.lua:277: in function 'GivePlayerItems'
    /home/container/temp/currently-playing/lib/oarc_utils.lua:1332: in function 'PlayerRespawnItems'
    /home/container/temp/currently-playing/control.lua:229: in function </home/container/temp/currently-playing/control.lua:226>"
97776.339 Info ServerMultiplayerManager.cpp:780: updateTick(3216849) changing state from(InGame) to(Failed)
97776.339 Quitting: multiplayer error.

More info

Oarcinae commented 3 years ago

Fixed the example config thanks!