albertz / openlierox

OpenLieroX - Liero clone / Worms realtime / 2D shooter
http://openlierox.net
Other
265 stars 60 forks source link

wrong level when server changes level while client is dl #446

Open albertz opened 13 years ago

albertz commented 13 years ago

Converted from SourceForge issue 2893789, submitted by albertzeyer

The server had the level Mars.lxl and client didn't had it, so it started the downloaded. In the meanwhile, server changed map to CKsomething but client continued to download Mars.lxl. When client was ready with downloading, it loaded Mars.lxl.

albertz commented 13 years ago

Submitted by albertzeyer

Console log:

H: JoinServer 95.223.115.95:34647 (Races) with player '=HP= BakTer' n: Client connect to 95.223.115.95:34647 n: sending challenge request to 95.223.115.95:34647 n: Server is using OpenLieroX/0.58_beta8 n: CClient: got challenge response from OpenLieroX/0.58_beta8 server n: Client: Got ParsePrepareGame n: CClient::DownloadMap() Mars.lxl n: Client: we got PrepareGame but we have to wait first until the download of the map finishes n: Client: preparing worm 1: for battle n: Client: readPacketState called on unused worm 0: n: Client: readPacketState called on unused worm 0: n: Client: readPacketState called on unused worm 0: n: MaxFPS is 200 n: GameLoopStart n: Client: readPacketState called on unused worm 0: n: Client: readPacketState called on unused worm 0: n: Client: readPacketState called on unused worm 0: n: Client: readPacketState called on unused worm 0: n: Client: readPacketState called on unused worm 0: n: Client: readPacketState called on unused worm 0: n: Client: readPacketState called on unused worm 0: n: Client: readPacketState called on unused worm 0: n: Client: readPacketState called on unused worm 0: n: Client: readPacketState called on unused worm 0: n: Client: readPacketState called on unused worm 0: n: Client: readPacketState called on unused worm 0: n: Client: readPacketState called on unused worm 0: n: Client: readPacketState called on unused worm 0: n: Client: readPacketState called on unused worm 0: n: Client: readPacketState called on unused worm 0: n: Client:ParseCLReady: weapons for 0:hankey: Zimm, Zimm, Zimm, Zimm, Zimm H: Client: the game is over, the winner is worm 0:hankey n: Save screenshot to game_results n: Client: received gotoLobby signal n: GotoJoinLobby() n: GameLoopEnd: GotoJoinLobby n: Client: Got ParsePrepareGame n: Client: we got PrepareGame but we have to wait first until the download of the map finishes n: Client: preparing worm 0:hankey for battle n: Client: preparing worm 1:=HP= BakTer for battle n: MaxFPS is 200 n: GameLoopStart n: Client:ParseCLReady: weapons for 0:hankey: Zimm, Zimm, Zimm, Zimm, Zimm n: Loading just downloaded map Mars.lxl n: CMap::Load: level levels/Mars.lxl is in image format n: LoadTheme: Theme dirt already loaded H: Client: we are ready, waiting now for start game signal n: Client:ParseCLReady: weapons for 1:=HP= BakTer: Zimm, Zimm, Zimm, Zimm, Zimm n: Client: get BeginMatch signal W: CClientNetEngine::ParseSpawnWorm: Y-coordinate not in map (523) W: CClientNetEngine::ParseSpawnWorm: Y-coordinate not in map (523) n: Ingame console: ]suicide W: CClientNetEngine::ParseSpawnWorm: Y-coordinate not in map (523) n: GotoNetMenu n: GameLoopEnd: GotoNetMenu n: Sent getserverlist to server.az2000.de:23450 n: Got a reply from server.az2000.de:23450 n: Menu_SvrList_ParseUdpServerlist 5 n: Got a reply from server.az2000.de:23450 n: Menu_SvrList_ParseUdpServerlist 1 W: no available thread in ThreadPool for Menu_SvrList_Process ping waiter timer, creating new one... W: no available thread in ThreadPool for CListview tooltip waiter timer, creating new one... W: no available thread in ThreadPool for CListview tooltip waiter timer, creating new one... W: no available thread in ThreadPool for CListview tooltip waiter timer, creating new one... W: no available thread in ThreadPool for CListview tooltip waiter timer, creating new one... n: Sent getserverlist to ms.olx.dailyupload.net:23450 n: Got a reply from ms.olx.dailyupload.net:23450 n: Menu_SvrList_ParseUdpServerlist 3 H: JoinServer 95.223.115.95:40553 (Races) with player '=HP= BakTer' n: Client connect to 95.223.115.95:40553 n: sending challenge request to 95.223.115.95:40553 n: Server is using OpenLieroX/0.58_beta8 n: CClient: got challenge response from OpenLieroX/0.58_beta8 server n: Client: Got ParsePrepareGame n: CMap::Load: level levels/CK1 level14.lxl is in image format n: LoadTheme: Theme dirt already loaded n: Client: preparing worm 1: for battle n: MaxFPS is 200 n: GameLoopStart