-
Notifications
You must be signed in to change notification settings - Fork 57
Server Packets
KeyPhact edited this page Dec 28, 2014
·
3 revisions
Packets the server sends to the client, and thus packets the server needs to simulate.
Lengths that begin with a "→" denote to add the length of the last field to the offset.
This is necessary for variable length fields.
Position | Field | Type | Notes |
---|---|---|---|
0x0 | Packet Header | Packet Header | Possible flags: 0x0 and 0x0 |
0x8 | Unknown | uint8 | No Notes |
0x9 | Unknown | uint8[3] | No Notes |
0xC | String Magic | uint32 | Sub 0xB6, Xor 0x8BA4 |
0x10 | UTF-16 String | PSO2 String | Login error message. May be blank in case of successful login. |
→0x0 | Unknown | uint8[0xC] | No Notes |
→0xC | UTF-16 String | char16[0x20] | Fixed-length block name. |
→0x4C | Unknown | float32[0x2C] | 0xB0 bytes long. A block of floating-point numbers whose purpose is unknown. |
→0xFC | Unknown | uint8[0xC] | No Notes |
This packet is sent to the client following a successful or failed login attempt. |
Position | Field | Type | Notes |
---|---|---|---|
0x0 | Packet Header | Packet Header | Possible flags: 0x0 and 0x0 |
0x8 | Zeros | uint8[0x5C] | SEGA's server fills this with data, but the client ignores it all. |
0x64 | IP Address | uint8[0x4] | No Notes |
0x68 | Ship Port | uint16 | No Notes |
Position | Field | Type | Notes |
---|---|---|---|
0x0 | Packet Header | Packet Header | Possible flags: 0x0 and 0x0 |
0x8 | Protocol Version | uint16 | |
0xA | Block Code | uint16 | Block code is the 100 * Ship Number + Block Number (Eg, Block 5 ship 2 is 205) |
0xC | Padding / Unknown | uint8[0x4] | Unknown or unused. |
Position | Field | Type | Notes |
---|---|---|---|
0x0 | Packet Header | Packet Header | Possible flags: 0x0 and 0x0 |
0x8 | String Magic | uint32 | Sub 0xA2, Xor 0x78F7 |
0xC | UTF-16 String | PSO2 String | No Notes |
→0x0 | Message Type | uint32 | See message types below. Placed after the string. |
Possible message types: |
0x0 - Golden Ticker
0x1 - Administrator Message dialog that won't close for ~5 seconds.
0x2 - Administrator Message dialog that can close instantly.
0x3 - "System Message" in the chat log.
0x4 - Generic Message dialog box.
Any other value will trigger like 0x4.