Edit on GitHub
This packet changes the room settings.
The responses are:
Aliases:
hsreina/pangya-server
: PLAYER_CHANGE_GAME_SETTINGS
eantoniobr/UGPangya
: PLAYER_CHANGE_GAME_OPTION
Name | Type | Summary |
---|---|---|
unknown_a | s2 | Always -1 (0xFFFF). |
setting_count | u1 | |
settings | setting[setting_count] |
Name | Type | Summary |
---|---|---|
setting_type | u1 | |
setting_data | switch(setting_type) | |
case | set_name | Case when setting_type == |
case | set_password | Case when setting_type == |
case | set_mode | Case when setting_type == |
case | set_course | Case when setting_type == |
case | set_hole_amount | Case when setting_type == |
case | set_hole_progression | Case when setting_type == |
case | set_shot_timer | Case when setting_type == |
case | set_user_max | Case when setting_type == |
case | set_game_timer | Case when setting_type == |
case | set_artifact | Case when setting_type == |
case | set_natural_wind | Case when setting_type == |
Name | Type | Summary |
---|---|---|
room_name | pstring |
Name | Type | Summary |
---|---|---|
room_password | pstring |
Used in VS rooms. Does not work in Tournaments or Battles.
Name | Type | Summary |
---|---|---|
room_mode | u1 |
Name | Type | Summary |
---|---|---|
room_course | u1 |
Name | Type | Summary |
---|---|---|
room_hole_amount | u1 | 3, 6, 9, 18 are valid. |
Name | Type | Summary |
---|---|---|
room_hole_progression | u1 |
Used in VS rooms.
Name | Type | Summary |
---|---|---|
room_shot_timer_second | u2 | 30, 60, 120, 300 are valid. Individual shot timer, in seconds. |
Name | Type | Summary |
---|---|---|
room_user_max | u1 | (VS) 2, 3, 4, (Tourney) 10, 20, 30 are valid. |
Used in tournaments.
Name | Type | Summary |
---|---|---|
room_game_timer_minute | u1 | (standard 9) 15, 20, 25, 30, (standard 18) 30, 35, 40, 45, 50, (short) 15, 20, 25, 30, 35 are valid. Overall game timer, in minutes. |
Name | Type | Summary |
---|---|---|
item_id | u4 | From pangya_xx.iff/Item.iff. ID of active artifact. 0 for no artifact. |
Name | Type | Summary |
---|---|---|
room_natural_wind | u4 | 0 and 1 are valid. |
Key | Value |
---|---|
room_mode::vs_stroke | 0 |
room_mode::vs_match | 1 |
Key | Value |
---|---|
hole_progression::front_start | 0 |
hole_progression::back_start | 1 |
hole_progression::random_start | 2 |
hole_progression::shuffle_all | 3 |
meta:
id: gameservice_client_000a_room_settings_change
title: GameService Client Room Settings Change
encoding: ASCII
endian: le
imports:
- ../../common/pstring
seq:
- id: unknown_a
type: s2
- id: setting_count
type: u1
- id: settings
type: setting
repeat: expr
repeat-expr: setting_count
types:
setting:
seq:
- id: setting_type
type: u1
enum: setting_type
- id: setting_data
type:
switch-on: setting_type
cases:
setting_type::change_name: set_name
setting_type::change_password: set_password
setting_type::change_mode: set_mode
setting_type::change_course: set_course
setting_type::change_hole_amount: set_hole_amount
setting_type::change_hole_progression: set_hole_progression
setting_type::change_shot_timer: set_shot_timer
setting_type::change_user_max: set_user_max
setting_type::change_game_timer: set_game_timer
setting_type::change_artifact: set_artifact
setting_type::change_natural_wind: set_natural_wind
set_name:
seq:
- id: room_name
type: pstring
set_password:
seq:
- id: room_password
type: pstring
set_mode:
seq:
- id: room_mode
type: u1
enum: room_mode
set_course:
seq:
- id: room_course
type: u1
enum: room_course
set_hole_amount:
seq:
- id: room_hole_amount
type: u1
set_hole_progression:
seq:
- id: room_hole_progression
type: u1
enum: hole_progression
set_shot_timer:
seq:
- id: room_shot_timer_second
type: u2
set_user_max:
seq:
- id: room_user_max
type: u1
set_game_timer:
seq:
- id: room_game_timer_minute
type: u1
set_artifact:
seq:
- id: item_id
type: u4
set_natural_wind:
seq:
- id: room_natural_wind
type: u4
enums:
setting_type:
0: change_name
1: change_password
2: change_mode
3: change_course
4: change_hole_amount
5: change_hole_progression
6: change_shot_timer
7: change_user_max
8: change_game_timer
13: change_artifact
14: change_natural_wind
room_mode:
0: vs_stroke
1: vs_match
room_course:
0: blue_lagoon
1: blue_water
2: sepia_wind
3: wind_hill
4: wiz_wiz
5: west_wiz
6: blue_moon
7: silvia_cannon
8: ice_cannon
9: white_wiz
10: shining_sand
11: pink_wind
13: deep_inferno
14: ice_spa
15: lost_seaway
16: eastern_valley
18: ice_inferno
19: wiz_city
20: abbot_mine
127: random_course
hole_progression:
0: front_start
1: back_start
2: random_start
3: shuffle_all