Edit on GitHub

GameService Server User Information Course Records

Summary

This packet contains the user's all-time course records as shown in the User Info screen.

This is one of the responses to GameService Client 0x002F User Information Request.

Structure

gameservice_server_015c_user_information_course_records

Name Type Summary
request_type u1 Matches [GameService Client 0x002F User Information Request](/packets/gameservice/client/002f.ksy).
user_id u4
payload switch(request_type)
case blank_original user_course_records_blank Case when request_type == blank_original
case mode_original user_course_records_full Case when request_type == mode_original
case blank_natural user_course_records_blank Case when request_type == blank_natural
case blank_grand_prix user_course_records_blank Case when request_type == blank_grand_prix
case mode_natural user_course_records_full Case when request_type == mode_natural
case mode_grand_prix user_course_records_full Case when request_type == mode_grand_prix

Subtypes

user_course_records_blank

Name Type Summary
padding_a bytes All 0x00.

user_course_records_full

Name Type Summary
course_record_a_count u4
course_a_records course_record These are the ones displayed in user info.
course_record_b_count u4
course_b_records course_record These are of unknown use.

course_record

Name Type Summary
course_id u1
unknown_a u4
unknown_b u4
unknown_c u4
unknown_d u4
unknown_e u4
unknown_f u4
unknown_g s4
course_score s1 Record final score.
course_pang u4 Record final pang amount.
unknown_j u4 All 0x00.
character_id u4 From pangya_xx.iff/Character.iff. Record set with this character.
unknown_k s1 All 0xFA.

Enums

request_types

Key Value
request_types::blank_original 0
request_types::mode_original 5
request_types::blank_natural 10
request_types::blank_grand_prix 11
request_types::mode_natural 51
request_types::mode_grand_prix 52

course_ids

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

Definition

meta:
  id: gameservice_server_015c_user_information_course_records
  title: GameService Server User Information Course Records
  encoding: ASCII
  endian: le
  imports:
    - ../../common/pstring
seq:
  - id: request_type
    type: u1
    enum: request_types
  - id: user_id
    type: u4
  - id: payload
    type:
      switch-on: request_type
      cases:
        request_types::blank_original: user_course_records_blank
        request_types::mode_original: user_course_records_full
        request_types::blank_natural: user_course_records_blank
        request_types::blank_grand_prix: user_course_records_blank
        request_types::mode_natural: user_course_records_full
        request_types::mode_grand_prix: user_course_records_full
types:
  user_course_records_blank:
    seq:
      - id: padding_a
        size: 8
  user_course_records_full:
    seq:
      - id: course_record_a_count
        type: u4
      - id: course_a_records
        type: course_record
        repeat: expr
        repeat-expr: course_record_a_count
      - id: course_record_b_count
        type: u4
      - id: course_b_records
        type: course_record
        repeat: expr
        repeat-expr: course_record_b_count
  course_record:
    seq:
      - id: course_id
        type: u1
        enum: course_ids
      - id: unknown_a
        type: u4
      - id: unknown_b
        type: u4
      - id: unknown_c
        type: u4
      - id: unknown_d
        type: u4
      - id: unknown_e
        type: u4
      - id: unknown_f
        type: u4
      - id: unknown_g
        type: s4
      - id: course_score
        type: s1
      - id: course_pang
        type: u4
      - id: unknown_j
        type: u4
      - id: character_id
        type: u4
      - id: unknown_k
        type: s1
enums:
  request_types:
    0: blank_original
    5: mode_original
    10: blank_natural
    11: blank_grand_prix
    51: mode_natural
    52: mode_grand_prix
  course_ids:
    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

Examples

No examples available. Contribute one?