Display Message
Displays a message in a warning pop-up, alert HUD, or in the chat.
- ID: 0x12 (18)
- Size: Variable
- LZ4 Compressed: Yes
- State: Playing
- Bound To: Server -> Client
Structure
Offset | Field Name | Field Type | Notes |
---|---|---|---|
0x00 | Type Size | be u16 | The size of the type of the message. |
0x02 | Type | utf8 string | The utf-8 encoded type of the message. |
0x02 + Type Size | Message Size | be u16 | The size of the message. |
0x04 + Type Size | Message | utf8 string | The utf-8 encoded message. |
Message types
How the message is displayed depends on the contents of the Type
field. If this field is set to <WARNING>
or <ALERT>
, the message is displayed as a pop-up or as an alert. If the Type
field contains any other value, the type and message are printed in the chat instead.
Type string | Location |
---|---|
<WARNING> | Pop-up |
<ALERT> | Alert text |
Other | Chat |
Pop-up
If the Type
field is set to <WARNING>
, a pop-up with an exclaimation mark icon is displayed. The Message
field is used as the caption, with space for a single line. It is not possible to provide a custom message body, but special Message
values can set the caption and body to hardcoded values.
While the pop-up is open, the player is able to move, but unable to look around.
Special messages
If the Type
field is set to <WARNING>
and the Message
field is set to any of the following special messages, the caption and body of the popup are set to their corresponding values. The interface tags are translated by MyGUI into the localized versions. The English localizations are listed below.
Message | Caption | Body |
---|---|---|
WARNING_TUNNELING | #{WARNING_TUNNELING_TITLE} | #{WARNING_TUNNELING_LINE1}
#{WARNING_TUNNELING_LINE2} |
Hey! | You're playing the game wrong!
Stop that! | |
VERSION_MISMATCH | #{ERRMSG_TITLE_FAILED_TO_LOAD_WORLD} | #{ERRMSG_VERSION_MISMATCH_LINE1}
#{ERRMSG_VERSION_MISMATCH_LINE2} |
Failed to load world | Version mismatch
Please update your client and try again | |
CONNECTION_FAILED | #{ERRMSG_TITLE_CONNECTION_FAILED} |
|
Connection failed | ||
CONNECTION_TIMEOUT | #{ERRMSG_TITLE_CONNECTION_FAILED} | #{ERRMSG_CONNECTION_TIMEOUT_LINE1}
#{ERRMSG_CONNECTION_TIMEOUT_LINE2} |
Connection failed | Connection to host timed out
Please check your Internet connection and try again | |
CONNECTION_LOST | #{ERRMSG_TITLE_CONNECTION_LOST} | #{ERRMSG_CONNECTION_LOST_LINE1}
#{ERRMSG_CONNECTION_LOST_LINE2} |
Connection lost | Connection lost
Please check your Internet connection | |
SERVER_SHUTDOWN | #{ERRMSG_TITLE_CONNECTION_LOST} | #{ERRMSG_SERVER_SHUTDOWN_LINE1}
|
Connection lost | Host has shut down
| |
KICKED_FROM_SERVER | #{ERRMSG_TITLE_CONNECTION_LOST} | #{ERRMSG_KICKED_FROM_SERVER_LINE1}
#{ERRMSG_KICKED_FROM_SERVER_LINE2} |
Connection lost | You have been kicked
from the host | |
UNLOAD_MOD | #{ERRMSG_TITLE_WARNING} | #{ERRMSG_UNLOAD_MOD_LINE1}
#{ERRMSG_UNLOAD_MOD_LINE2}
#{ERRMSG_UNLOAD_MOD_LINE3} |
Warning | A previously used mod has been removed!
This might cause the world to be unloadable.
Do you want to do this? | |
INVALID_SHAPE_ID | #{ERRMSG_TITLE_ERROR} | #{ERRMSG_INVALID_SHAPE_ID}
#{ERRMSG_REQUIRED_MOD}: #{UNKNOWN_MOD} |
ERROR | The world contains an unsupported part
Required mod: <Unknown mod> | |
ERROR_MESSAGE | #{ERRMSG_TITLE_ERROR} |
|
ERROR | ||
DATABASE_ERROR_MESSAGE | #{ERRMSG_TITLE_ERROR} | #{ERRMSG_DATABASE_ISSUE}:
|
ERROR | A problem occurred when handling the save file:
|
Alert text
If the Type
field is set to <ALERT>
, a text message with an exclaimation mark icon is displayed in the center top of the HUD. The Message
field is used as the text of the message, with space for a single line.
Chat
If the Type
field is set to neither <WARNING>
nor <ALERT>
, the Type
field and the Message
are joined by the string :
and the result is printed to the chat.
Known messages
List of known messages that the server can send to the client.
Type | Message | Occurs When |
---|---|---|
<WARNING> | WARNING_TUNNELING | The player falls through the ground and hits the teleportation area trigger. |