Opened 9 years ago

Closed 7 years ago

#3323 closed defect (fixed)

[PATCH] Summary screen fails if a team number is skipped

Reported by: elexis Owned by: Itms
Priority: Should Have Milestone: Alpha 19
Component: UI & Simulation Keywords: patch
Cc: Patch:

Description

If you start a match with team 1 and team 3 but no team 2, then the summary screen throws some errors and doesn't display any results at all:

WARNING: JavaScript warning: gui/summary/summary.js line 198
reference to undefined property g_Teams[i]
WARNING: JavaScript warning: gui/summary/layout.js line 248
reference to undefined property g_Teams[i]
WARNING: ClientArea definitions may only contain numerics. Your input: '50 NaN 100% NaN'
ERROR: JavaScript error: gui/summary/layout.js line 254
Error: Invalid value for setting 'size'
  updateGeneralPanelTeams@gui/summary/layout.js:254:3
  updatePanelData@gui/summary/summary.js:76:2
  selectPanel@gui/summary/summary.js:66:2
  init@gui/summary/summary.js:201:2
  leaveGame@gui/session/session.js:344:8
  g_messageBoxCallbackFunction@gui/common/functions_global_object.js:34:4
  init/action@gui/msgbox/msgbox.js:76:5

A null element was added to g_Teams implicitly, so two simple checks have been added in the patch attached.

Attachments (2)

t3323_fix_missing_team_summary_screen.patch (4.2 KB ) - added by elexis 9 years ago.
Works with r16832.
wip (17.9 KB ) - added by elexis 8 years ago.

Download all attachments as: .zip

Change History (7)

by elexis, 9 years ago

Works with r16832.

comment:1 by Itms, 9 years ago

Owner: set to Itms
Resolution: fixed
Status: newclosed

In 16837:

Handle gaps in the teams list in the summary screen, plus code cleanup.

Patch by elexis, fixes #3323

comment:2 by Itms, 9 years ago

Keywords: patch review removed

comment:3 by elexis, 8 years ago

Keywords: patch simple added
Milestone: Alpha 19Backlog
Resolution: fixed
Status: closedreopened

The error message was fixed, but it doesn't group by teams if a team number was skipped.

by elexis, 8 years ago

Attachment: wip added

comment:4 by Imarok, 7 years ago

cannot reproduce: http://i.imgur.com/XEBWaY8.png Is this already fixed?

comment:5 by elexis, 7 years ago

Keywords: simple removed
Milestone: BacklogAlpha 19
Resolution: fixed
Status: reopenedclosed

I can't reproduce either anymore. Perhaps I had teams unlocked. Thanks for testing!

Note: See TracTickets for help on using tickets.