Edit on GitHub

GameService Server Shot Resync Collectables

Summary

This packet relates to game state resynching.

Its one of the responses to:

Structure

gameservice_server_00cc_shot_resync_collectables

Name Type Summary
connection_id u4
item_count u1
items item[item_count]
padding bytes[2048 - item_count * 16] All 0x00. Padded so packet is always 2055 bytes long (128 item slots available), but only if there is at least 1 item.

Subtypes

item

Name Type Summary
item_id_collectable u4 From pangya_xx.iff/Item.iff. Appears to always be a field collectable (coin, spin cube, etc.)
room_course u1
hole_number u1
unknown_a u2 Non-zero. Consistent for similar items (all coins have same value, etc.)
unknown_b u4 Non-zero. Consistent for similar items (all coins have same value, etc.)
unknown_c bytes[4] All 0x00.

Enums

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

Definition

meta:
  id: gameservice_server_00cc_shot_resync_collectables
  title: GameService Server Shot Resync Collectables
  encoding: ASCII
  endian: le
  imports:
    - ../../common/pstring
seq:
  - id: connection_id
    type: u4
  - id: item_count
    type: u1
  - id: items
    type: item
    repeat: expr
    repeat-expr: item_count
  - id: padding
    size: 2048 - item_count * 16
    if: item_count > 0
types:
  item:
    seq:
      - id: item_id_collectable
        type: u4
      - id: room_course
        type: u1
        enum: room_course
      - id: hole_number
        type: u1
      - id: unknown_a
        type: u2
      - id: unknown_b
        type: u4
      - id: unknown_c
        size: 4
enums:
  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

Examples

No examples available. Contribute one?