File size: 2,142 Bytes
5faf0a7
 
c2b7c31
5faf0a7
 
 
c2b7c31
5faf0a7
 
c2b7c31
5faf0a7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c2b7c31
5faf0a7
 
c2b7c31
5faf0a7
 
 
 
c2b7c31
5faf0a7
 
c2b7c31
5faf0a7
 
 
 
c2b7c31
5faf0a7
 
 
 
 
c2b7c31
 
 
 
5faf0a7
 
c2b7c31
 
 
5faf0a7
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
  "schema_name": "actions_bin",
  "schema_version": 9,
  "artifact_suffix": ".actions.bin",
  "format": "packed_fixed_width_binary",
  "row_grain": "one record per decoded video frame",
  "record_size_bytes": 14,
  "byte_order": "little_endian",
  "alignment": "packed_no_padding",
  "description": "Per-frame controls for one POV sample. Player/game state is stored separately in state.bin.",
  "frame_alignment": {
    "record_i": "corresponds to decoded video frame i",
    "tick_start": "tick field in record i",
    "tick_end_exclusive": "tick + frame_tick_stride from the paired sample metadata",
    "default_frame_tick_stride": 2,
    "default_fps": 32,
    "default_tick_rate": 64
  },
  "buttons_order": [
    "FORWARD",
    "BACK",
    "LEFT",
    "RIGHT",
    "JUMP",
    "DUCK",
    "WALK",
    "FIRE",
    "RIGHTCLICK",
    "RELOAD",
    "INSPECT",
    "USE"
  ],
  "button_encoding": {
    "storage_field": "buttons",
    "dtype": "uint16",
    "semantics": "bit i is set when buttons_order[i] is active for the frame interval"
  },
  "fields": [
    {
      "name": "tick",
      "dtype": "uint32",
      "offset": 0,
      "bytes": 4,
      "unit": "demo tick",
      "description": "Absolute demo tick at the start of this video frame."
    },
    {
      "name": "delta_pitch",
      "dtype": "float32",
      "offset": 4,
      "bytes": 4,
      "unit": "degrees",
      "description": "Per-frame pitch delta after v12 dense alignment."
    },
    {
      "name": "delta_yaw",
      "dtype": "float32",
      "offset": 8,
      "bytes": 4,
      "unit": "degrees",
      "description": "Per-frame yaw delta, wrapped to the shortest angular difference."
    },
    {
      "name": "buttons",
      "dtype": "uint16",
      "offset": 12,
      "bytes": 2,
      "description": "Action button bitmask using buttons_order."
    }
  ],
  "numpy_dtype": [
    ["tick", "<u4"],
    ["delta_pitch", "<f4"],
    ["delta_yaw", "<f4"],
    ["buttons", "<u2"]
  ],
  "validation": [
    "file_size == frames * 14",
    "one record per decoded video frame",
    "no Steam IDs, account IDs, player names, or online identifiers"
  ]
}