#3602 closed defect (fixed)
[PATCH] Game can't be started after gamesetup rejoin
Reported by: | elexis | Owned by: | elexis |
---|---|---|---|
Priority: | Must Have | Milestone: | Alpha 20 |
Component: | UI & Simulation | Keywords: | patch |
Cc: | Patch: |
Description
Reproduce:
- Start hosting a game with 2 player slots
- Join with a client and leave the match
- Set number of players to 1
- Rejoin with the client
When typing chat with the rejoined client
ERROR: JavaScript error: gui/gamesetup/gamesetup.js line 1814 TypeError: g_GameAttributes.settings.PlayerData[(g_PlayerAssignments[msg.guid].player - 1)] is undefined addChatMessage@gui/gamesetup/gamesetup.js:1814:3 handleNetMessage@gui/gamesetup/gamesetup.js:510:61 onTick@gui/gamesetup/gamesetup.js:875:4 __eventhandler185 (tick)@setupWindow tick:0:1
When trying to start the game:
ERROR: JavaScript error: gui/gamesetup/gamesetup.js line 1188 TypeError: g_GameAttributes.settings.PlayerData[(player.player - 1)] is undefined launchGame@gui/gamesetup/gamesetup.js:1188:4 __eventhandler124 (press)@startGame press:1:7
This bug exists since alpha 18.
Attachments (1)
Change History (7)
comment:1 by , 8 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
comment:2 by , 8 years ago
comment:3 by , 8 years ago
Keywords: | review patch added |
---|---|
Owner: | removed |
Status: | assigned → new |
Summary: | Game can't be started after gamesetup rejoin → [PATCH] Game can't be started after gamesetup rejoin |
by , 8 years ago
Attachment: | patch_3602.patch added |
---|
comment:4 by , 8 years ago
Keywords: | review removed |
---|
Read the Coding Conventions. The patch likely has some conflicts with some recent changes too. Sorry that it took so long to take a look at this.
comment:6 by , 8 years ago
Milestone: | Backlog → Alpha 20 |
---|
The patch violated almost every rule of the coding conventions and you forgot to define i. Yet it fixes the actual issue, so thanks for investigating and uploading it! :-)
Note:
See TracTickets
for help on using tickets.
Can't reproduce this bug any more. Any suggestions? How exactly should I set the number of players to 1? Through adding an AI to the slot? One time I was able to reproduce this but now without a changed codebase it isn't reproducible any more.