CounterStrike-1K / schema /state_bin.json
ArnieRamesh's picture
Add files using upload-large-folder tool
c2b7c31 verified
{
"schema_name": "state_bin",
"schema_version": 1,
"artifact_suffix": ".state.bin",
"format": "packed_fixed_width_binary",
"row_grain": "one record per decoded video frame",
"record_size_bytes": 37,
"byte_order": "little_endian",
"alignment": "packed_no_padding",
"description": "Per-frame POV-local player/game state labels for one sample. Controls live in actions.bin.",
"fields": [
{"name": "tick", "dtype": "uint32", "offset": 0, "bytes": 4},
{"name": "pitch", "dtype": "float32", "offset": 4, "bytes": 4, "unit": "degrees"},
{"name": "yaw", "dtype": "float32", "offset": 8, "bytes": 4, "unit": "degrees"},
{"name": "pos_x", "dtype": "float32", "offset": 12, "bytes": 4, "unit": "CS2 world units"},
{"name": "pos_y", "dtype": "float32", "offset": 16, "bytes": 4, "unit": "CS2 world units"},
{"name": "pos_z", "dtype": "float32", "offset": 20, "bytes": 4, "unit": "CS2 world units"},
{"name": "active_weapon", "dtype": "uint8", "offset": 24, "bytes": 1, "description": "Coarse weapon category id; see weapons.json."},
{"name": "active_weapon_id", "dtype": "uint8", "offset": 25, "bytes": 1, "description": "Exact weapon id; see weapons.json. 0 means unknown."},
{"name": "ammo_clip", "dtype": "uint8", "offset": 26, "bytes": 1},
{"name": "ammo_reserve", "dtype": "uint8", "offset": 27, "bytes": 1, "sentinel": 255},
{"name": "health", "dtype": "uint8", "offset": 28, "bytes": 1, "valid_range": [0, 100]},
{"name": "armor_value", "dtype": "uint8", "offset": 29, "bytes": 1, "valid_range": [0, 100]},
{"name": "balance", "dtype": "uint16", "offset": 30, "bytes": 2, "sentinel": 65535},
{"name": "t_score", "dtype": "uint8", "offset": 32, "bytes": 1, "sentinel": 255},
{"name": "ct_score", "dtype": "uint8", "offset": 33, "bytes": 1, "sentinel": 255},
{"name": "has_helmet", "dtype": "uint8", "offset": 34, "bytes": 1, "valid_values": [0, 1]},
{"name": "has_defuser", "dtype": "uint8", "offset": 35, "bytes": 1, "valid_values": [0, 1]},
{"name": "has_bomb", "dtype": "uint8", "offset": 36, "bytes": 1, "valid_values": [0, 1]}
],
"numpy_dtype": [
["tick", "<u4"],
["pitch", "<f4"],
["yaw", "<f4"],
["pos_x", "<f4"],
["pos_y", "<f4"],
["pos_z", "<f4"],
["active_weapon", "u1"],
["active_weapon_id", "u1"],
["ammo_clip", "u1"],
["ammo_reserve", "u1"],
["health", "u1"],
["armor_value", "u1"],
["balance", "<u2"],
["t_score", "u1"],
["ct_score", "u1"],
["has_helmet", "u1"],
["has_defuser", "u1"],
["has_bomb", "u1"]
],
"validation": [
"file_size == frames * 37",
"one record per decoded video frame",
"no Steam IDs, account IDs, player names, or online identifiers"
]
}