Wreckfest

Wreckfest

Not enough ratings
Enhanced Chat and HUD (eng)
   
Award
Favorite
Favorited
Unfavorite
UI
File Size
Posted
369.366 KB
Jul 16, 2022 @ 10:18am
1 Change Note ( view )

Subscribe to download
Enhanced Chat and HUD (eng)

Description
This mod changes certain entries of the english localization to improve server-sided chat messages and the HUD while racing. This mod works on-top of other english localization mods (mod only contains changed segments).

Most server-generated messages start with "- " now. Kicks, bans, new moderators and admins are highlighted. /votekick messages no longer contain red and are colorcoded better.

"LAP", "POSITION" and "WINNER" got removed. All-caps from commong HUD elements removed.

Changed entries:
CHAT_KICK_VOTE_FOR_PLAYER
CHAT_KICK_VOTE_FROM_PLAYER
CHAT_MORE_VOTES_NEEDED
CHAT_VOTE_FROM_PLAYER

HUD_BEST
HUD_CAR_RESET_MESSAGE
HUD_DID_NOT_FINISH_ACRONYM
HUD_LAP
HUD_POSITION
HUD_RACE_FLAG_TITLE_GO
HUD_RACE_FLAG_TITLE_WINNER
HUD_TIME
HUD_TIME_LEFT
HUD_POSLOST_DIFFERENCE_ELIMINIATED
HUD_POSLOST_DIFFERENCE_FINISHED
HUD_POSLOST_LABELS_BESTLAP
HUD_POSLOST_LABELS_CAR
HUD_POSLOST_LABELS_CLASS
HUD_POSLOST_LABELS_PING
HUD_POSLOST_LABELS_PLAYER
HUD_POSLOST_LABELS_RACE_DIFFERENCE
HUD_POSLOST_LABELS_TEAM_RACE_SCORE

LOBBY_PLAYER_ADMIN
LOBBY_PLAYER_HOST
LOBBY_PLAYER_MODERATOR
LOBBY_PLAYER_SPECTATOR

SERVER_DEMOTED
SERVER_NEW_ADMIN
SERVER_NEW_MODERATOR
SERVER_PLAYER_HAS_JOINED
SERVER_QUIT_BANNED
SERVER_QUIT_BOT
SERVER_QUIT_IDLE_KICK
SERVER_QUIT_INVALID
SERVER_QUIT_KICKED
SERVER_QUIT_NORMAL
SERVER_QUIT_TIMEOUT
SERVER_RULES_CHANGED_MESSAGE
SERVER_SESSION_MODE_CHANGED
SERVER_SHUTDOWN_WARNING
SERVER_SPECTATE_OFF
SERVER_SPECTATE_ON
SERVER_VOTE_FAILED
SERVER_VOTE_SUCCESS
3 Comments
Kejima  [author] Jul 31, 2023 @ 3:34am 
If a player or bot joins, the server sends such id_handle to all players and the server console. Examples for player and bot joining:
SERVER_PLAYER_HAS_JOINED(RULES)
SERVER_PLAYER_HAS_JOINED(^2*^0johnsacka)

The parameter for bot names always has a leading ^2*^0, that's why their name color cannot get changed by localization files.

Then each client's chat transforms that id_handle into a message for the selected language:
Texts - 0 followed by Params - 0 followed by Texts - 1 followed by Params 1 folloed by ...
In english:
"" + "RULES" + " has joined." -> "RULES has joined."
"" + "^2*^0johnsacka" + " has joined." -> "^2*^0johnsacka has joined.

And I changed the texts of these english localization entries. I didn't touch any other languages because I don't speak most of those and play all games on english.
Kejima  [author] Jul 31, 2023 @ 3:34am 
What exactly do you mean, Myles?

How localization works:
Every text element, that a developer wants a translation for is placed as an id_handle and not plain text. And depending on the player's choice of language the player sees the matching text for this handle by looking it up in the localization database.

SERVER_PLAYER_HAS_JOINED
for example is the handle to let everyone in chat know, that someone has joined a lobby. It has 2 text elements and 1 parameter to place between any text elements.
In english (the "" are just marking which characters are in that field):
Texts - 0: "" (an empty text string, in Wreckfest all localizations start with a text string)
Texts - 1: " has joined."
Params - 0: "%(player)"
Boeing Kon Jul 30, 2023 @ 6:49pm 
how do it work