-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add server 0x00fc and client 0x008b. Add example for server 0x00fc. (#48
) * Add server 0x00fc and client 0x008b. Add example for server 0x00fc. Move Message Server Definition to common. * Fix missing newline. --------- Co-authored-by: John Chadwick <john@jchw.io>
- Loading branch information
Showing
7 changed files
with
107 additions
and
42 deletions.
There are no files selected for viewing
Binary file added
BIN
+95 Bytes
examples/gameservice/server/TH.R6.829.01/00fc-181031.0012-4fd3.000c.4fc3.009b-979a.bin
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
meta: | ||
id: message_server | ||
title: Message Server | ||
encoding: ASCII | ||
endian: le | ||
imports: | ||
- pstring | ||
|
||
doc: | | ||
This structure lists various message server data in certain packets. | ||
Used in packets such as [LoginService Server 0x0009 Message Server List](/packets/loginservice/server/0009.ksy) | ||
and [GameService Server 0x00fc Message Server List](/packets/gameservice/server/00fc.ksy) | ||
seq: | ||
- id: name | ||
type: strz | ||
size: 40 | ||
doc: Display name of server. | ||
- id: id | ||
type: u4 | ||
doc: ID of server, used in the Select Server packet. | ||
- id: max_users | ||
type: u4 | ||
doc: Maximum number of simultaneous users allowed. | ||
- id: num_users | ||
type: u4 | ||
doc: Number of users currently online. | ||
- id: ip_address | ||
type: strz | ||
size: 18 | ||
doc: IPv4 address of server. | ||
- id: port | ||
type: u2 | ||
doc: TCP port of server. | ||
- id: unknown2 | ||
size: 2 | ||
doc: Unknown field. | ||
- id: flags | ||
size: 2 | ||
doc: | | ||
This field contains server flags. The meaning of each bit differs | ||
per region. | ||
- id: unknown3 | ||
size: 14 | ||
doc: More unknown bytes. | ||
- id: char_icon | ||
type: u2 | ||
doc: | | ||
Specifies which character icon to display next to the server. | ||
This is presumably unused for Message Servers, since they aren't displayed in a menu. | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#pragma.examples gameservice/client 008b | ||
#pragma.parseAs GameserviceClientPacket | ||
--- | ||
meta: | ||
id: gameservice_client_008b_request_message_server_list | ||
title: GameService Client Request Message Server List | ||
encoding: ASCII | ||
endian: le | ||
|
||
doc: | | ||
This packet is sent occasionally sent by the Pangya client to get the | ||
message server list. This message is only sent if the client has failed | ||
to connect to the message server at login. | ||
Response is GameServer 0x00fc | ||
**See Also**: [Game Server 0x00fc Message Server List](/packets/gameservice/server/00fc.ksy) | ||
This Packet has no payload. | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#pragma.examples gameservice/server 00fc | ||
#pragma.parseAs GameserviceServerPacket | ||
|
||
meta: | ||
id: gameservice_server_00fc_message_server_list | ||
title: GameService Server Message Server List | ||
encoding: ASCII | ||
endian: le | ||
imports: | ||
- ../../common/pstring | ||
|
||
doc: | | ||
This packet is a response to client request messenger list. It lists the messenger servers | ||
along with their IP addresses. | ||
It is a response to: | ||
* [GameService Client 0x008b](/packets/gameservice/client/008b.ksy) | ||
seq: | ||
- id: count | ||
type: u1 | ||
doc: | | ||
Number of servers in the response. | ||
- id: servers | ||
type: message_server | ||
repeat: expr | ||
repeat-expr: count | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters