Skip to main content

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

OffsetField NameField TypeNotes
0x00Type Sizebe u16The size of the type of the message.
0x02Typeutf8 stringThe utf-8 encoded type of the message.
0x02 + Type SizeMessage Sizebe u16The size of the message.
0x04 + Type SizeMessageutf8 stringThe 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 stringLocation
<WARNING>Pop-up
<ALERT>Alert text
OtherChat

Pop-up

Popup displaying the message &quot;Example popup&quot;

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.

MessageCaptionBody
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 worldVersion 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 failedConnection 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 lostConnection lost Please check your Internet connection
SERVER_SHUTDOWN#{ERRMSG_TITLE_CONNECTION_LOST}#{ERRMSG_SERVER_SHUTDOWN_LINE1}
Connection lostHost has shut down
KICKED_FROM_SERVER#{ERRMSG_TITLE_CONNECTION_LOST}#{ERRMSG_KICKED_FROM_SERVER_LINE1} #{ERRMSG_KICKED_FROM_SERVER_LINE2}
Connection lostYou have been kicked from the host
UNLOAD_MOD#{ERRMSG_TITLE_WARNING}#{ERRMSG_UNLOAD_MOD_LINE1} #{ERRMSG_UNLOAD_MOD_LINE2} #{ERRMSG_UNLOAD_MOD_LINE3}
WarningA 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}
ERRORThe world contains an unsupported part Required mod: <Unknown mod>
ERROR_MESSAGE#{ERRMSG_TITLE_ERROR}
ERROR
DATABASE_ERROR_MESSAGE#{ERRMSG_TITLE_ERROR}#{ERRMSG_DATABASE_ISSUE}:
ERRORA problem occurred when handling the save file:

Alert text

Alert text displaying the message &quot;Example alert text&quot;

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

Chat message containing the text &quot;Example type: Example message&quot;

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.

TypeMessageOccurs When
<WARNING>WARNING_TUNNELINGThe player falls through the ground and hits the teleportation area trigger.