-
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.
GSS-0076, type 0x04 is sent before VS matches to communicate to every user in a room just about every common user data structure of all users in said room, including themselves. This results in understandably large packets (roughly 12KiB per player, with presumably up to 4 players). It is likely that the clubset information is also a common structure, but not yet seen in a previously documented packet. Once it's seen again, it will be separated to its own file. Included is one such example from a 3-player match. Note that Packetdoc's web interface fails to properly parse/display this file, likely due to its length. Type 0x00 appears to be event related, and only contains a timestamp. It is 23 bytes large. Also included is such an example. Also took the opportunity to make the common data structures readily accessible from the sidebar, and link all said structures to an index of them instead of to each other.
- Loading branch information
Showing
15 changed files
with
191 additions
and
50 deletions.
There are no files selected for viewing
Binary file added
BIN
+23 Bytes
examples/gameservice/server/TH.R6.829.01/0076-181103.0319-15f3.0001.4534.0083-5937.bin
Binary file not shown.
Binary file added
BIN
+36 KB
examples/gameservice/server/TH.R6.829.01/0076-200510.1132-7f68.0001.630f.1179-c5b9.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,17 @@ | ||
# PangYa Common Data Structures | ||
Many packets reuse the same structures of data, primarily when it comes to | ||
communicating user information and equipment. | ||
|
||
By maintaining these structures as separate definitions, when refinements can | ||
be made to the understanding of these data, the change can be reflected in all | ||
packet definitions where they occur. | ||
|
||
## Data Structures | ||
* [User Caddie Data](/packets/common/user_caddie_data.ksy) | ||
* [User Character Data](/packets/common/user_character_data.ksy) | ||
* [User Course Record Data](/packets/common/user_course_record_data.ksy) | ||
* [User Course Result Data](/packets/common/user_course_result_data.ksy) | ||
* [User Equipment Data](/packets/common/user_equipment_data.ksy) | ||
* [User Name Data](/packets/common/user_name_data.ksy) | ||
* [User Statistic Data](/packets/common/user_statistic_data.ksy) | ||
* [User Statistic Data Extension](/packets/common/user_statistic_data_ext.ksy) |
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,35 @@ | ||
--- | ||
meta: | ||
id: ms_systemtime | ||
title: MS SYSTEMTIME | ||
encoding: ASCII | ||
endian: le | ||
|
||
doc: | | ||
Windows-formatted local system time. For reference, see [the MSDN article on the SYSTEMTIME structure](https://learn.microsoft.com/en-us/windows/win32/api/minwinbase/ns-minwinbase-systemtime). | ||
seq: | ||
- id: ms_year | ||
type: u2 | ||
doc: Valid values are 1601 through 30827 (per MSDN). | ||
- id: ms_month | ||
type: u2 | ||
doc: Valid values are 1 (January) through 12 (December). | ||
- id: ms_dayofweek | ||
type: u2 | ||
doc: Valid values are 0 (Sunday) through 6 (Saturday). | ||
- id: ms_day | ||
type: u2 | ||
doc: Valid values are 1 through 31. | ||
- id: ms_hour | ||
type: u2 | ||
doc: Valid values are 0 through 23. | ||
- id: ms_minute | ||
type: u2 | ||
doc: Valid values are 0 through 59. | ||
- id: ms_second | ||
type: u2 | ||
doc: Valid values are 0 through 59. | ||
- id: ms_microsecond | ||
type: u2 | ||
doc: Valid values are 0 through 999. |
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
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
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
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
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,120 @@ | ||
#pragma.examples gameservice/server 0076 | ||
#pragma.parseAs GameserviceServerPacket | ||
--- | ||
meta: | ||
id: gameservice_server_0076_room_user_data | ||
title: GameService Server Room User Data | ||
encoding: ASCII | ||
endian: le | ||
imports: | ||
- ../../common/ms_systemtime | ||
- ../../common/pstring | ||
- ../../common/user_caddie_data | ||
- ../../common/user_character_data | ||
- ../../common/user_course_record_data | ||
- ../../common/user_equipment_data | ||
- ../../common/user_name_data | ||
- ../../common/user_statistic_data | ||
|
||
doc: | | ||
This packet relays user info for all users once a VS match is launched, or merely timestamp in other modes. | ||
seq: | ||
- id: subtype | ||
type: u1 | ||
- id: payload | ||
type: | ||
switch-on: subtype | ||
cases: | ||
0x00: full_payload | ||
0x04: minimal_payload | ||
|
||
types: | ||
full_payload: | ||
seq: | ||
- id: user_count | ||
type: u1 | ||
- id: user_entry | ||
type: user_entry | ||
repeat: expr | ||
repeat-expr: user_count | ||
minimal_payload: | ||
seq: | ||
- id: unknown_04_a | ||
size: 4 | ||
- id: ms_systemtime_04 | ||
type: ms_systemtime | ||
user_entry: | ||
seq: | ||
- id: user_name_data | ||
type: user_name_data | ||
- id: user_statistic_data | ||
type: user_statistic_data | ||
- id: user_entry_unknown_a | ||
size: 78 | ||
doc: 78 B | ||
- id: user_equipment_data | ||
type: user_equipment_data | ||
- id: user_course_season_data | ||
type: user_course_season_data | ||
repeat: expr | ||
repeat-expr: 12 | ||
doc: 12 sets | ||
- id: user_character_data | ||
type: user_character_data | ||
- id: user_caddie_data | ||
type: user_caddie_data | ||
- id: inventory_slot_clubset | ||
type: u4 | ||
- id: item_id_clubset | ||
type: u4 | ||
- id: user_entry_unknown_c | ||
size: 10 | ||
doc: 10 B | ||
- id: user_entry_unknown_d | ||
type: u2 | ||
repeat: expr | ||
repeat-expr: 5 | ||
doc: 5x 2 B values. Likely club stat upgrades? (Power, Accuracy, Impact, Spin, Curve) | ||
- id: user_entry_unknown_e | ||
size: 62 | ||
doc: 62 B | ||
- id: ms_systemtime_01 | ||
type: ms_systemtime | ||
- id: user_card_count | ||
type: u1 | ||
- id: user_card_data | ||
type: user_card_data | ||
repeat: expr | ||
repeat-expr: user_card_count | ||
user_card_data: | ||
seq: | ||
- id: user_card_unknown_a | ||
type: u4 | ||
- id: item_id_card | ||
type: u4 | ||
- id: item_id_character | ||
type: u4 | ||
- id: inventory_slot_card | ||
type: u4 | ||
- id: user_card_unknown_b | ||
type: u4 | ||
- id: user_card_unknown_c | ||
type: u4 | ||
- id: user_card_unknown_d | ||
type: u4 | ||
- id: user_card_unknown_e | ||
size: 32 | ||
doc: 32 B | ||
- id: user_card_unknown_f | ||
type: u4 | ||
- id: user_card_unknown_g | ||
type: u1 | ||
user_course_season_data: | ||
seq: | ||
- id: user_course_record_data | ||
type: user_course_record_data | ||
repeat: expr | ||
repeat-expr: 21 | ||
doc: 21 courses | ||
|
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