Cutscenes: cast, props, cameras and clips of every story scene (SIX-100) #201

Manually merged
github merged 2 commits from gh-pr/201/head into gh-pr/201/base 2026-11-26 20:17:40 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-24 20:23 UTC · original
holdmysocks:claude/cutscenes → master · +987 −2 · 6 files · 2 commits · merged 2026-11-24 21:25 UTC

Adds sixng cutscenes and a cutscene module in sixng-core (Linear SIX-100).

What it reads

A cutscene is described by two kinds of files. Both are carved, because the archive's table of contents is encrypted.

  • Scene clip dictionary cin@<scene> (also cine@<scene> for crowd layers). It holds one clip per animated object, named after the object's scene handle: lucia, lucia_face (facial), rs_camera_8, prop_x^2 (the 2nd copy of a model). A clip's map key is the joaat of its short name. The cin@<scene>-<N> dictionaries hold the streamed animation sections (.anim objects, no clips).
  • Scene file: a 0x7a meta resource with a small state machine. Its state names (dd71c9b4.name) are the joaat of the scene names. Its hash-map buckets of {Key, Item} entries list:
    • peds (64d97283): key = joaat of the handle; 8a944233 = 64-bit asset id of the ped model
    • cameras (5287c842)
    • placed objects (1c0668f2 → 8a392c8a.modelName, an asset id)

Measured on the whole story pack (scan about 3 min, then cached)

  • 2,823 scenes (618 of them _xN variants), plus 25,294 section dictionaries
  • 2,300 scene files; 2,313 scenes have one
  • Cast:
    • 4,723 entries are characters that outfit assembles (player_story000_00 / _01, cs_raul, …)
    • 271 are other peds with a named model
    • 3,243 peds have a model id that doesn't resolve to any name we have
    • 1,764 peds have no record in any scene file
  • 11,253 props, 9,216 cameras, and 5,205 other objects with an unknown model (vehicles, lead-in and idle clips)
  • Set dressing: 2,835 of 2,838 model ids resolve

outfit / clips

  • outfit <character> --clip cin@<scene> picks that character's own clip of the scene.
  • --clip cin@<scene>/<clip> picks one clip.
  • clips cin@<scene> lists a scene's clips.
  • 1,441 character clips play directly. For example, cs_raul in air_cater_ext_p0_t01 exports a 13.2 s clip with 133 channels.
  • Most objects (16,472) keep their animation only in the section dictionaries. Joining those sections isn't done yet, so these clips are refused with that reason.

Not decoded

  • The scene files' timing, events and transitions, and most of their members
  • How the section dictionaries map back onto the clips
  • Vehicle handles (no matching model names)

Tests

  • Unit tests cover name parsing, handle splitting, the key and model-id hashes, scene assembly (own scene file, fallback to other scenes, in-hand items, streamed clips) and the clip picking for outfit.
  • cargo test --release -p sixng-core -p sixng-cli: 183 passed.
**@⁠holdmysocks** on GitHub · 2026-11-24 20:23 UTC · [original](https://github.com/holdmysocks/SixNG/pull/201) `holdmysocks:claude/cutscenes` → `master` · +987 −2 · 6 files · 2 commits · merged 2026-11-24 21:25 UTC Adds `sixng cutscenes` and a `cutscene` module in sixng-core (Linear SIX-100). ## What it reads A cutscene is described by two kinds of files. Both are carved, because the archive's table of contents is encrypted. - **Scene clip dictionary** `cin@<scene>` (also `cine@<scene>` for crowd layers). It holds one clip per animated object, named after the object's scene handle: `lucia`, `lucia_face` (facial), `rs_camera_8`, `prop_x^2` (the 2nd copy of a model). A clip's map key is the joaat of its short name. The `cin@<scene>-<N>` dictionaries hold the streamed animation sections (`.anim` objects, no clips). - **Scene file**: a `0x7a` meta resource with a small state machine. Its state names (`dd71c9b4.name`) are the joaat of the scene names. Its hash-map buckets of `{Key, Item}` entries list: - peds (`64d97283`): key = joaat of the handle; `8a944233` = 64-bit asset id of the ped model - cameras (`5287c842`) - placed objects (`1c0668f2` → `8a392c8a.modelName`, an asset id) ## Measured on the whole story pack (scan about 3 min, then cached) - 2,823 scenes (618 of them `_xN` variants), plus 25,294 section dictionaries - 2,300 scene files; 2,313 scenes have one - Cast: - 4,723 entries are characters that `outfit` assembles (`player_story000_00` / `_01`, `cs_raul`, …) - 271 are other peds with a named model - 3,243 peds have a model id that doesn't resolve to any name we have - 1,764 peds have no record in any scene file - 11,253 props, 9,216 cameras, and 5,205 other objects with an unknown model (vehicles, lead-in and idle clips) - Set dressing: 2,835 of 2,838 model ids resolve ## outfit / clips - `outfit <character> --clip cin@<scene>` picks that character's own clip of the scene. - `--clip cin@<scene>/<clip>` picks one clip. - `clips cin@<scene>` lists a scene's clips. - 1,441 character clips play directly. For example, `cs_raul` in `air_cater_ext_p0_t01` exports a 13.2 s clip with 133 channels. - Most objects (16,472) keep their animation only in the section dictionaries. Joining those sections isn't done yet, so these clips are refused with that reason. ## Not decoded - The scene files' timing, events and transitions, and most of their members - How the section dictionaries map back onto the clips - Vehicle handles (no matching model names) ## Tests - Unit tests cover name parsing, handle splitting, the key and model-id hashes, scene assembly (own scene file, fallback to other scenes, in-hand items, streamed clips) and the clip picking for `outfit`. - `cargo test --release -p sixng-core -p sixng-cli`: 183 passed.
New `sixng cutscenes` command and `cutscene` module. A scene is read from
two kinds of carved files:

- its clip dictionary `cin@<scene>` (one clip per animated object, named
  after the object's scene handle; `-N` dictionaries hold the streamed
  animation sections), and
- its scene file, a meta resource whose state names are the scene's hash
  and whose hash-keyed tables list the peds (key = joaat of the handle,
  model = 64-bit asset id), cameras and placed objects (model ids).

Handles resolve to models through the scene file, the names of every
indexed archive and the work folder's name dictionary. The catalog is
cached in the index folder after the first scan (about 3 minutes).

`outfit <character> --clip cin@<scene>` plays that character's own clip of
the scene, `--clip cin@<scene>/<clip>` one clip, and `clips cin@<scene>`
lists them. Clips whose animation is only in the section dictionaries are
refused with that reason (joining sections is not done yet).
# Conflicts:
#	README.md
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:17:38 +00:00
github manually merged commit d4540aaf8c into gh-pr/201/base 2026-11-26 20:17:40 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.