Edit on GitHub

GameService Client Room Settings Change

Summary

This packet changes the room settings.

The responses are:

Aliases:

Structure

gameservice_client_000a_room_settings_change

Name Type Summary
unknown_a s2 Always -1 (0xFFFF).
setting_count u1
settings setting[setting_count]

Subtypes

setting

Name Type Summary
setting_type u1
setting_data switch(setting_type)
case change_name set_name Case when setting_type == change_name
case change_password set_password Case when setting_type == change_password
case change_mode set_mode Case when setting_type == change_mode
case change_course set_course Case when setting_type == change_course
case change_hole_amount set_hole_amount Case when setting_type == change_hole_amount
case change_hole_progression set_hole_progression Case when setting_type == change_hole_progression
case change_shot_timer set_shot_timer Case when setting_type == change_shot_timer
case change_user_max set_user_max Case when setting_type == change_user_max
case change_game_timer set_game_timer Case when setting_type == change_game_timer
case change_artifact set_artifact Case when setting_type == change_artifact
case change_natural_wind set_natural_wind Case when setting_type == change_natural_wind

set_name

Name Type Summary
room_name pstring

set_password

Name Type Summary
room_password pstring

set_mode

Used in VS rooms. Does not work in Tournaments or Battles.

Name Type Summary
room_mode u1

set_course

Name Type Summary
room_course u1

set_hole_amount

Name Type Summary
room_hole_amount u1 3, 6, 9, 18 are valid.

set_hole_progression

Name Type Summary
room_hole_progression u1

set_shot_timer

Used in VS rooms.

Name Type Summary
room_shot_timer_second u2 30, 60, 120, 300 are valid. Individual shot timer, in seconds.

set_user_max

Name Type Summary
room_user_max u1 (VS) 2, 3, 4, (Tourney) 10, 20, 30 are valid.

set_game_timer

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.

set_artifact

Name Type Summary
item_id u4 From pangya_xx.iff/Item.iff. ID of active artifact. 0 for no artifact.

set_natural_wind

Name Type Summary
room_natural_wind u4 0 and 1 are valid.

Enums

setting_type

Key Value
setting_type::change_name 0
setting_type::change_password 1
setting_type::change_mode 2
setting_type::change_course 3
setting_type::change_hole_amount 4
setting_type::change_hole_progression 5
setting_type::change_shot_timer 6
setting_type::change_user_max 7
setting_type::change_game_timer 8
setting_type::change_artifact 13
setting_type::change_natural_wind 14

room_mode

Key Value
room_mode::vs_stroke 0
room_mode::vs_match 1

room_course

Key Value
room_course::blue_lagoon 0
room_course::blue_water 1
room_course::sepia_wind 2
room_course::wind_hill 3
room_course::wiz_wiz 4
room_course::west_wiz 5
room_course::blue_moon 6
room_course::silvia_cannon 7
room_course::ice_cannon 8
room_course::white_wiz 9
room_course::shining_sand 10
room_course::pink_wind 11
room_course::deep_inferno 13
room_course::ice_spa 14
room_course::lost_seaway 15
room_course::eastern_valley 16
room_course::ice_inferno 18
room_course::wiz_city 19
room_course::abbot_mine 20
room_course::random_course 127

hole_progression

Key Value
hole_progression::front_start 0
hole_progression::back_start 1
hole_progression::random_start 2
hole_progression::shuffle_all 3

Definition

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

Examples

No examples available. Contribute one?