Cutscenes: subtitle times per composite section (#516) #546

Manually merged
github merged 5 commits from github-bot/gh-546 into gh-pr/546/base 2026-11-28 06:17:39 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-28 06:01 UTC · original
holdmysocks:claude/cutscene-section-times → master · +131 −28 · 3 files · 5 commits · merged 2026-11-28 06:13 UTC

Summary

This follows #543 for issue #516: cutscene subtitle lines get bank-clock times from their composite section, not only in scenes that a master places once.

  • What a composite is: a composite section lists sections (fwAnimSceneSectionData) that play together from the composite's start: character, camera and other layers. All of them start at 0. Each section has an event list (fwAnimSceneEventListData, member events: pointers to the events), so a line's times count from the start of the composite it plays under.
  • Catalog: each subtitle event records the id-map keys it plays under: its section, and every composite that lists that section. The catalog version goes to 8, so the first run rescans.
  • Bank times: a master slot's sectionId names one composite of the child scene. Each line now lists bank_times, one per slot that plays its composite: the master, and the slot's bank_time plus the line's start. This replaces the single bank_time that #543 gave only to scenes placed once.
  • Report: totals.subtitles adds bank_times, the total number of slot times.
  • README: the Cutscenes section explains the time base and gives the counts.

Validation

  • The synthetic test now covers a line on a slot's section, which gets that master's bank time, and a line of a section no slot plays, which gets none.
  • 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: 3,176 of 11,903 lines are on a bank clock (1,444 before), with 3,216 slot times. The other lines are in scenes that no master places.
  • Check against the audio, run outside the repo:
    • Placed this way, 2,890 lines on 95 masters line up with the .c stream within 0.2 s on 81 of the 95.
    • The control, each master's lines tried on another master's audio, gives 7 of 95.
    • Placing only scenes with a single slot gave 70 of 98 from 1,423 lines.
**@⁠holdmysocks** on GitHub · 2026-11-28 06:01 UTC · [original](https://github.com/holdmysocks/SixNG/pull/546) `holdmysocks:claude/cutscene-section-times` → `master` · +131 −28 · 3 files · 5 commits · merged 2026-11-28 06:13 UTC ### Summary This follows #543 for issue #516: cutscene subtitle lines get bank-clock times from their composite section, not only in scenes that a master places once. - **What a composite is:** a composite section lists sections (`fwAnimSceneSectionData`) that play together from the composite's start: character, camera and other layers. All of them start at 0. Each section has an event list (`fwAnimSceneEventListData`, member `events`: pointers to the events), so a line's times count from the start of the composite it plays under. - **Catalog:** each subtitle event records the id-map keys it plays under: its section, and every composite that lists that section. The catalog version goes to 8, so the first run rescans. - **Bank times:** a master slot's `sectionId` names one composite of the child scene. Each line now lists `bank_times`, one per slot that plays its composite: the master, and the slot's `bank_time` plus the line's start. This replaces the single `bank_time` that #543 gave only to scenes placed once. - **Report:** `totals.subtitles` adds `bank_times`, the total number of slot times. - **README:** the Cutscenes section explains the time base and gives the counts. ### Validation - The synthetic test now covers a line on a slot's section, which gets that master's bank time, and a line of a section no slot plays, which gets none. - `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: 3,176 of 11,903 lines are on a bank clock (1,444 before), with 3,216 slot times. The other lines are in scenes that no master places. - **Check against the audio**, run outside the repo: - Placed this way, 2,890 lines on 95 masters line up with the `.c` stream within 0.2 s on 81 of the 95. - The control, each master's lines tried on another master's audio, gives 7 of 95. - Placing only scenes with a single slot gave 70 of 98 from 1,423 lines.
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.
Subtitle events record the sections they play under (their section and
the composites listing it; catalog version 8). A composite's sections
play together from its start, and a master slot's sectionId names one
composite, so each line gets a bank time for every slot that plays its
composite (bank_times), not only in scenes placed once.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 06:05:25 +00:00
github-bot changed target branch from master to gh-pr/546/base 2026-11-28 06:17:36 +00:00
github manually merged commit cd8c90a37b into gh-pr/546/base 2026-11-28 06:17:39 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.