Cutscenes: subtitle lines with text, speaker and bank time (#516) #543

Manually merged
github merged 3 commits from github-bot/gh-543 into gh-pr/543/base 2026-11-28 05:54:31 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-28 05:37 UTC · original
holdmysocks:claude/cutscene-subtitles → master · +179 −10 · 5 files · 3 commits · merged 2026-11-28 05:50 UTC

Summary

sixng cutscenes lists each scene's subtitle lines and links them to the dialogue links. This follows #528 and #535 for issue #516.

  • Catalog: scene files keep their subtitle events (fwAnimSceneSubtitleEventData): TextLabelName, Speaker (joaat of the character name), startTime and endTime. The catalog version goes to 7, so the first run rescans.
  • Per scene: each scene lists its lines (label, speaker, start, end), sorted by start.
  • Dialogue links: when the links exist (sixng dialogue-links), each line gets:
    • its text, looked up by the joaat of the label;
    • its speaker name, from the links' names for that hash;
    • speaker_agrees, which says whether the links give the same speaker hash. That is an independent check on the speaker linking.
  • Bank clock: a scene that one master places once also gets each line's time on the master's bank clock: the placement's bank_time plus the line's start. The #516 lag check found the subtitles within 0.2 s of the .c audio on 70 of 98 masters, against 8 of 98 in a mismatched control.
  • Report: totals.subtitles counts lines, scenes, lines with text, named speakers, speaker agreement and lines on a bank clock.
  • README: the Cutscenes section explains the subtitles and gives the counts.

Validation

  • New synthetic test covering:
    • lines sorted by start, with a bank time for the scene the master places once;
    • text and speaker names from the links, including a speaker named through another line;
    • a speaker that differs from the links;
    • a label the links lack.
  • cargo test passed locally on Windows: sixng-core (418), sixng-cli, and the sixng-gui scenes tests. cargo check --workspace --tests is clean after merging master.
  • Local run on the current Xbox build, story pack, with the story dialogue links:
    • 11,903 lines in 1,488 scenes;
    • 11,804 with text and 9,395 with a speaker name;
    • the links' speaker hash agrees on 11,860 and differs on 43;
    • 1,444 lines are on a bank clock.
  • Not decoded: in scenes with several sections, the event times restart per section, so most placed scenes get no bank time yet.
**@⁠holdmysocks** on GitHub · 2026-11-28 05:37 UTC · [original](https://github.com/holdmysocks/SixNG/pull/543) `holdmysocks:claude/cutscene-subtitles` → `master` · +179 −10 · 5 files · 3 commits · merged 2026-11-28 05:50 UTC ### Summary `sixng cutscenes` lists each scene's subtitle lines and links them to the dialogue links. This follows #528 and #535 for issue #516. - **Catalog:** scene files keep their subtitle events (`fwAnimSceneSubtitleEventData`): `TextLabelName`, `Speaker` (joaat of the character name), `startTime` and `endTime`. The catalog version goes to 7, so the first run rescans. - **Per scene:** each scene lists its lines (label, speaker, start, end), sorted by start. - **Dialogue links:** when the links exist (`sixng dialogue-links`), each line gets: - its text, looked up by the joaat of the label; - its speaker name, from the links' names for that hash; - `speaker_agrees`, which says whether the links give the same speaker hash. That is an independent check on the speaker linking. - **Bank clock:** a scene that one master places once also gets each line's time on the master's bank clock: the placement's `bank_time` plus the line's start. The #516 lag check found the subtitles within 0.2 s of the `.c` audio on 70 of 98 masters, against 8 of 98 in a mismatched control. - **Report:** `totals.subtitles` counts lines, scenes, lines with text, named speakers, speaker agreement and lines on a bank clock. - **README:** the Cutscenes section explains the subtitles and gives the counts. ### Validation - New synthetic test covering: - lines sorted by start, with a bank time for the scene the master places once; - text and speaker names from the links, including a speaker named through another line; - a speaker that differs from the links; - a label the links lack. - `cargo test` passed locally on Windows: sixng-core (418), sixng-cli, and the sixng-gui scenes tests. `cargo check --workspace --tests` is clean after merging master. - Local run on the current Xbox build, story pack, with the story dialogue links: - 11,903 lines in 1,488 scenes; - 11,804 with text and 9,395 with a speaker name; - the links' speaker hash agrees on 11,860 and differs on 43; - 1,444 lines are on a bank clock. - **Not decoded:** in scenes with several sections, the event times restart per section, so most placed scenes get no bank time yet.
Masters keep their states (id-map keys listing the start keys they play)
and transitions (toState, with conditions counted as 'when this state
ends' or entity-value branches) in the catalog (version 6). Slots keep
their start-map key, and repeated start maps merge into one slot with the
other keys. sixng cutscenes --masters lists each master's slots, states,
transitions and bank; master_timelines.state_machines counts them.
Scene files keep their subtitle events (TextLabelName, Speaker, start and
end; catalog version 7). Each scene lists its lines; with the dialogue
links they get text and speaker names, and whether the links' speaker
hash is the event's own. A scene placed once in a master also gets each
line's time on the master's bank clock.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 05:43:36 +00:00
github-bot changed target branch from master to gh-pr/543/base 2026-11-28 05:54:27 +00:00
github manually merged commit 2e71138f6a into gh-pr/543/base 2026-11-28 05:54:31 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.