-
-
Notifications
You must be signed in to change notification settings - Fork 10
In json format, player name not displayed when player is not connected #72
Copy link
Copy link
Open
Description
For TFH 24h, the chat are synchronized between multiple servers, so the player can receive chat messages from players that are connected on another servers.
For messages received in json format, the player name will not be displayed because better chat can't find the player, even if the nickname is given in the json. It's due of these code part:
tm-better-chat/src/ChatLineInfo.as
Lines 202 to 211 in b9aa014
| @m_authorPlayer = FindPlayerByLogin(m_authorLogin); | |
| if (m_authorPlayer !is null) { | |
| @m_authorPlayerInfo = m_authorPlayer.User; | |
| } else { | |
| @m_authorPlayerInfo = FindPlayerInfoByLogin(m_authorLogin); | |
| } | |
| if (m_authorPlayerInfo !is null) { | |
| m_authorName = m_authorPlayerInfo.Name; | |
| } |
tm-better-chat/src/ChatLine.as
Lines 181 to 190 in b9aa014
| if (info.m_authorName != "") { | |
| // Add author name | |
| AddColorableElement(ElementPlayerName( | |
| info.m_authorName, | |
| info.m_authorNickname, | |
| info.m_authorLogin, | |
| info.m_authorId, | |
| info.m_authorClubTag | |
| ), info); | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels