← Packet index

Packet 9

TextPacket

Represents a text message that needs to be displayed in-game

Used for commands, messages, and other info printed to the screen. Most of which are server->client or server broadcasted to all clients, but some cases have a client to other client via the server

Packet datagramWire order
HeaderID 9varuint
0Localize?boolean · 1 byte
1BodyoneOf<MessageOnly, AuthorAndMessage, MessageAndParams> · variable
2Sender's XUIDstring · variable
3Platform Idstring · variable
4Filtered Messagestring · variable

Serialized fields

5 top-level fields
  1. 0Localize?boolean
  2. 1BodyMessage content (variant based on message type)oneOf<MessageOnly, AuthorAndMessage, MessageAndParams>
    0MessageOnlyMessageOnly
    1. 0Message TypeCompressionEnum-as-Valueuint8
      1. 0raw
      2. 5tip
      3. 6systemMessage
      4. 9textObjectWhisper
      5. 10textObject
      6. 11textObjectAnnouncement
    2. 1Messagestring
    1AuthorAndMessageAuthorAndMessage
    1. 0Message TypeCompressionEnum-as-Valueuint8
      1. 1chat
      2. 7whisper
      3. 8announcement
    2. 1Player Namestring
    3. 2Messagestring
    2MessageAndParamsMessageAndParams
    1. 0Message TypeCompressionEnum-as-Valueuint8
      1. 2translate
      2. 3popup
      3. 4jukeboxPopup
    2. 1Messagestring
    3. 2Parameter Listarray<string>
  3. 2Sender's XUIDXbox User ID of the message senderstring
  4. 3Platform IdPlatform-specific user identifierstring
  5. 4Filtered MessageoptionalProfanity-filtered version of the message (if applicable)string

Changelog

Stable releases

Changes between stable protocol releases.

No stable release changes are recorded for this packet.