Opened 9 years ago

Last modified 8 years ago

#3435 closed defect

Chat & Developer overlay broken in visual replay started from menu — at Version 1

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

Description (last modified by elexis)

If you replay a match from the menu and then type something into the chat or try to open the developers overlay, errors about missing PlayerData will appear.

It would be nice to fix it, since the developers overlay allows to change the perspective.

Chat Error:

WARNING: JavaScript warning: gui/session/messages.js line 403
reference to undefined property msg.player
WARNING: JavaScript warning: gui/session/messages.js line 228
reference to undefined property g_Players[player]
ERROR: JavaScript error: gui/session/messages.js line 228
TypeError: g_Players[player] is undefined
  getUsernameAndColor@gui/session/messages.js:228:6
  addChatMessage@gui/session/messages.js:403:3
  submitChatInput@gui/session/messages.js:374:56
  __eventhandler119 (press)@chatInput press:0:1

Developers Overlay error:

ERROR: JavaScript error: gui/session/messages.js line 228
TypeError: g_Players[player] is undefined
  getUsernameAndColor@gui/session/messages.js:228:6
  addChatMessage@gui/session/messages.js:403:3
  submitChatDirectly@gui/session/messages.js:346:56
  toggleDeveloperOverlay@gui/session/menu.js:692:3
  __eventhandler102 (press)@devCommands press:0:1

Thanks ffm for informing me!

Change History (1)

comment:1 by elexis, 9 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.