Difference between revisions of "Protocol:Packet 0x01"

From Sylverant
Jump to navigationJump to search
m (Link to Language Codes page.)
(Add mention of Packet 0xB0.)
Line 1: Line 1:
The server sends Packet 0x01 to send clients a message. This message shows up in a small box on the right hand side of the screen. Sylverant uses this message type to show errors when trying to join a lobby.
+
The server sends Packet 0x01 or 0xB0 to send clients a message.
 +
 
 +
For Packet 0x01, this message shows up in a small box on the right hand side of the screen. Sylverant uses this message type to show errors when trying to join a lobby.
 +
 
 +
For Packet 0xB0, this message shows up in the middle of the right hand side of the screen without any borders or anything else (so use an appropriate color so people can see it). Sylverant uses this message type to show results when doing a chat command (such as /save), as well as to show global messages.
  
 
==Dreamcast Packet Format==
 
==Dreamcast Packet Format==
Line 5: Line 9:
 
! Bytes !! Meaning
 
! Bytes !! Meaning
 
|-
 
|-
| 0x00 || Packet Type (0x01)
+
| 0x00 || Packet Type (0x01 or 0xB0)
 
|-
 
|-
 
| 0x01 || Flags (0x00)
 
| 0x01 || Flags (0x00)

Revision as of 00:27, 29 December 2009

The server sends Packet 0x01 or 0xB0 to send clients a message.

For Packet 0x01, this message shows up in a small box on the right hand side of the screen. Sylverant uses this message type to show errors when trying to join a lobby.

For Packet 0xB0, this message shows up in the middle of the right hand side of the screen without any borders or anything else (so use an appropriate color so people can see it). Sylverant uses this message type to show results when doing a chat command (such as /save), as well as to show global messages.

Dreamcast Packet Format

Bytes Meaning
0x00 Packet Type (0x01 or 0xB0)
0x01 Flags (0x00)
0x02-0x03 Packet Size (Variable)
0x04-0x0B Padding (all zeroes)
0x0C... Message to send, usually preceded by a Language Code