Page 1 of 1

Gadget error (Modified Chickens)

Posted: 12 Nov 2013, 03:16
by Forboding Angel
This error occurs when the players successfully destroy the queen, but one of the original players has disconnected in the during the game:

Code: Select all

[f=0073616] -----------
[f=0073616] Error: LuaRules::RunCallIn: error = 2, TeamDied, [string "LuaRules/Gadgets/chickens_unit_spawner_defe..."]:455: Invalid message playerID: %i
stack traceback:
        [C]: in function 'SendMessage'
        [string "LuaRules/Gadgets/chickens_unit_spawner_defe..."]:455: in function 'DisplayScores'
        [string "LuaRules/Gadgets/chickens_unit_spawner_defe..."]:1190: in function 'TeamDied'
        [string "LuaRules/gadgets.lua"]:1078: in function <[string "LuaRules/gadgets.lua"]:1076>
        (tail call): ?
        [C]: in function 'spKillTeam'
        [string "LuaRules/Gadgets/game_end.lua"]:177: in function 'KillResignedTeams'
        [string "LuaRules/Gadgets/game_end.lua"]:192: in function 'GameFrame'
        [string "LuaRules/Gadgets/hotfixes.lua"]:32: in function <[string "LuaRules/Gadgets/hotfixes.lua"]:29>
        (tail call): ?
Relevant files:
https://code.google.com/p/evolutionrts/ ... tail?id=26
http://pastebin.com/XELHLJT6

https://code.google.com/p/evolutionrts/ ... se.lua#455

Halp! Is it getting the player list incorrectly or something?