Chat¶
The multiplayer chat has been replaced with a new one:
- It keeps the last 64 lines and wraps long messages instead of cutting them.
- Tab switches between the chat channels while typing.
- Page Up and Page Down scroll through older messages, with a scroll bar.
- F6 pastes from the clipboard.
- Enter sends the message and Escape closes the chat.
- The name of the sender is shown in their player color, or in their team color in team games.
- Kill messages go to the HUD messages instead of filling the chat.
By default the chat sits in the bottom right corner. Its position, size, colors and font can be changed with the commands below.
Commands¶
These commands are provided by Balltze. They are only available in the game, not on the
dedicated server, and only once the chat has been set up after a map loads. Their values are
saved in Documents\My Games\ringworld\balltze\config\settings.json, under the chat key.
balltze_set_chat_position¶
Syntax: balltze_set_chat_position <x: short> <bottom: short>
Distance of the chat from the side edge it is aligned to and from the bottom edge, in pixels.
The distance is measured from the HUD safe zone, not the edge of the screen. Default is 12 16.
balltze_set_chat_alignment¶
Syntax: balltze_set_chat_alignment <alignment: left|right>
Screen edge the chat is placed against. Default is right.
balltze_set_chat_width¶
Syntax: balltze_set_chat_width <width: short>
Maximum width of the chat, in pixels. Default is 320.
balltze_set_chat_height¶
Syntax: balltze_set_chat_height <rows: short>
Number of messages visible while the chat is open. Default is 9.
balltze_set_chat_opacity¶
Syntax: balltze_set_chat_opacity <opacity: real>
Opacity of the whole chat, from 0 to 1. Default is 1.
balltze_set_chat_background_color¶
Syntax: balltze_set_chat_background_color <a: real> <r: real> <g: real> <b: real>
Color of the panel behind the chat while it is open, with each channel from 0 to 1. Default
is 0.69 0.125 0.125 0.125.
balltze_set_chat_message_background_color¶
Syntax: balltze_set_chat_message_background_color <a: real> <r: real> <g: real> <b: real>
Color of the box behind each message. Default is 0.55 0.04 0.05 0.07.
balltze_set_chat_font¶
Syntax: balltze_set_chat_font <tag path: string>
Font of the chat, as the path of a font or vector_font
tag. By default the chat uses the multiplayer font of the map's HUD globals.
Configuration¶
Example of config file¶
{
"chat": {
"alignment": "left",
"margin_x": 12,
"margin_y": 16,
"width": 320,
"height": 9,
"opacity": 1.0
}
}