Cutscene audio: stream ids of the scene banks, and the scene files' timeline (formulas and counts) #516
Open
opened 2026-11-27 22:47:47 +00:00 by github-bot
·
2 comments
No Branch/Tag specified
master
claude/tattoo-decoration-sets-385
rel-0150
chassis-merge
claude/enum-value-names-5
claude/viewer-engine-default-slots
claude/people-library-outfit-export
glass-zones
truck-box
claude/runtime-voice-reason
claude/cutscene-string-tests
six-map3d-tablelate
claude/dialogue-voice-hash
claude/cutscene-section-times
people/hair-guess
claude/tattoo-region-vertex-385
claude/cutscene-subtitles
claude/people-jewellery-tint-map
six68-names-9
claude/tattoo-region-mask-385
claude/livery-side-car
rel-0140
claude/cutscene-transitions
claude/people-cap-backwards-hair
water-flat-scale
six68-names-8
claude/tattoo-uv1-385
six-map3d-tableshadow
claude/livery-flat-door
claude/cutscene-audio-banks
claude/map-no-sticker-part
claude/people-hair-rest-collide
people/mandy-crown
water-interiors
six68-names-7
claude/dialogue-speaker-names
claude/livery-flat-cost
six-map3d-mattable
tyre-stickers
claude/dialogue-speaker-audio
people/vicki-hair
handling-records
people/lead-hair-check
six68-names-6
claude/livery-across-models
claude/people-skin-merge
water-slot-names
claude/tattoo-masks-385
six-map3d-tinypage
six68-names-5
six-map3d-texclass-diag
claude/livery-pass-leftovers
claude/people-lens
people/head-scale-neg
claude/livery-layout
six-map3d-manycull
claude/livery-ctrl-wheel
people-skin-detail-toggle
claude/enum-value-names-4
people-skin-detail-bleed
people/hair-export-settle
water-ocean-maps
people-skin-perped
six-map3d-latecull
claude/livery-png-thread
six68-names-4
claude/tattoo-vicki-andy-385
six-map3d-meshcull
people-skin-translucency
people/mandy-export
water-tile-tex
viewer-jaw-392
six-map3d-latedraws
teeth-jaw-392
claude/livery-pick-doors
six-map3d-matorder
six-map3d-celldraws
six-map3d-hairmask-base
six-map3d-gpudraws
six-map3d-sorteddraws
six-map3d-decaldraws
claude/tattoo-zone-385
version-0.12.0
claude/people-strand-order
people/hair-crown
people-skin-detail
claude/tattoo-tone-385
people-skin-window
claude/people-export-inserts
claude/tattoo-makeup-385
claude/livery-undo
face-controls-name-392
face-controls-392
claude/enum-value-names-3
claude/enum-value-names-2
six68-names-3
six68-param-names
water-detail
brand-variants
people/hair-leash
claude/people-legacy-outfit
claude/people-watch
claude/livery-export
claude/people-hems
claude/livery-fit-island
six-map3d-citydraws
head-morphs-392
people-skin-shading
fix/lamp-lights-deterministic
claude/tattoo-ink-385
head-scale-attachments
claude/people-genitals
six245-tint-weight
people/hair-settle
people-skin-rma
brand-every-model
hair-blur
six-pools
claude/enum-value-names
named-parts
game-liveries
six68-muv-defaults
claude/people-hair-pieces
six41-tint-layout
claude/lucia-torso-layer
claude/hair-gi-occlusion
claude/tattoos-385
claude/meta-types
claude/archetype-kind
claude/people-hat-hair
claude/people-necklace
six-inland-check
wear-colour-step
body-shape-inputs
claude/entity-priority-names
insert-skin
claude/people-hair-swatch
body-more-sliders
claude/people-usedby-layout
claude/exe-schema-enums
people/hair-curl-frizz
six-inland-height
wear-dust
claude/people-legacy-fullbody
wear-coat-edge
body-preset-kits
claude/people-shape-poke
six-inland-shading
claude/exe-field-names
wear-tint-blend
people/hair-box-colliders
six-map3d-roofblocks
claude/exe-schema
six-time-archetypes
nude-detail
six18-weapon-slot
six-map3d-cellbake
fix-bodyshape-test
six-map3d-cellsheets
viewer-crash-fixes
six-map3d-modelcap
body-breasts-butt-297
animation-picker-fixes
people-bodyshape-inputs
wear-window-widths
six-inland-water
people-head-normals-doc
claude/people-add-hide
people-item-normals
docs-index-size
claude/people-parts-hide
six-map3d-citycpu
claude/people-garment-colliders
meta-array-dump
six-bc-volume
animation-picker
six-map3d-bakesrc
six-map3d-slodswap
six-map3d-cloudrevert
release-0.11.0
people-body-skin-approx
six-map3d-cloudtex
claude/people-hair-layer
claude/people-hair-colliders
claude/people-sub-masks
issue-308-reflect
six-map3d-water2
primer-surface
bcpack-bc45-round2
six-map3d-cellring
six-map3d-clouds
claude/people-export-cull
claude/people-armpit-slivers
six-map3d-slod
hair-hats
garment-surface-308
six-map3d-terrain
people-cs-head-faces
six-map3d-gputime
claude/people-hair-dither
bcpack-bc345-presets
primer-colour
hair-colour
six-map3d-bundles
people-texture-dupes
people-body-skin
claude/people-hair-widen
six-map3d-lights
hair-head-uv
six-map3d-shot-ready
claude/bcpack-bc1-round3
claude/people-parts-list
claude/people-hair-paramsets
issue-308-shading
claude/people-hair-tables
garment-rigs-308
claude/ground-bounce-ambient
claude/bcpack-bc1-round2
claude/people-shirt-blotches
issue-146-uv
issue-297-raina
primer-amount
claude/people-ghost-suit
claude/bcpack-bc6-mipfit
body-morphs-308
claude/bcpack-bc1-mipfit
claude/people-ghost-face
hide-shown-parts-308
claude/people-hair-shape
claude/people-ownparts-hair
claude/people-style-frame
issue-297
issue-146
claude/people-not-shown
claude/people-style-damping
claude/people-hair-lighting
primer-layer
six-map3d-water
claude/people-body-skin
six-map3d-shadows
claude/people-skin-fallback
claude/people-bare-fallback
wear-windows
six-bc-slices
claude/bcpack-bc7-colour2
six-map3d
claude/people-bare-colour
claude/people-clothing
claude/people-hair-words
wear-mask
viewer-wear
wear-levels
claude/people-fur-lods
six-array-slices
claude/people-groom-lods
claude/bcpack-bc7-colour
six-emissive-tint-glass
claude/vehicle-wear-records
six-r8-volumes
six-frag-joints
claude/matlib-gradient-doc
claude/people-fur-links
six-192-light-members
claude/viewer-special-finishes
claude/viewer-time-of-day
six-viewer-emissive-any-class
six-1-8byte
six-192-capsule-intensity
claude/people-hair-links
claude/vehicle-material-map
six-emissive-strength
six-192-distant-fields
six-frag-layers
claude/bcpack-bc7-alpha4
six-frag-flags-2
six-frag-flags
six-mipchain
six-203-viewer-atomic
six-198-materials
six-203-atomic-writes
six-deswizzle
claude/viewer-clear-coat
claude/coat-export-panic
six-168-lights
six-197-water
claude/viewer-environment
claude/vehicle-coat-data
claude/shader-effect-fields
claude/people-fit-audit
six-196-index-upgrade
six-188-frag-physics
claude/led-lamps
version-0.9.0
claude/bcpack-bc7-alpha3
claude/scenes-mission-names
claude/audio-music-skip
claude/metal-parity
claude/drum-calipers
claude/more-slot-names
claude/shader-second-db
claude/bcpack-bc7-alpha2
claude/rim-light-glow
claude/audio-names-6
claude/front-calipers
claude/mod-slot-names
claude/rim-lights
claude/bcpack-bc7-alpha
claude/audio-names-5
claude/part-switches
claude/scenes-mission-order
claude/unresolved-elements
claude/number-plates
claude/scenes-tab
fix/raw-chunks
claude/audio-names-4
claude/brake-colours
claude/sector-grid-overlay
claude/cutscene-gaps
claude/double-bumper
claude/audio-names-3
claude/cutscene-sections
claude/people-display-names
claude/ttpf-float-export
claude/people-hair-strands
claude/bcpack-bc6h-edges2
claude/sector-grid-ids
claude/mule-sideguards
claude/people-ped-names-wide
claude/people-hair-colour
claude/audio-names-2
six-99-speed
claude/cutscenes
claude/stitch-atlas
claude/people-text-find
claude/people-all-ped-models
claude/tyre-lod-shader
claude/sector-grid
claude/ground-variants
claude/panel-checkboxes
claude/mount-audio-names
claude/ground-tint
claude/stitch-layer
claude/people-animal-clips
claude/sliding-doors
claude/livery-editor
claude/ground-height-blend
claude/people-pose-joints
claude/people-fur-export
claude/ground-vertex-weights
claude/sticker-colours
claude/kit-paint
claude/param-types
ci-macos-skip-master
claude/people-eyes-follow
notices-namehash
claude/no-wheels-on-boats
claude/livery-draw
claude/livery-textures
claude/vehicle-export-2
claude/people-full-hair
claude/ground-detail-scale
claude/bcpack-bc6h-edges
claude/wheel-fits-everywhere
claude/liveries-zones
claude/liveries-data
claude/library-recent-names
claude/people-clip-export
claude/material-constants
claude/people-swimwear
claude/people-gaps
claude/four-layer-from-shader
claude/widebody-wheels
claude/world-heightmap-3d
claude/shader-techniques
claude/index-split-resources
claude/tex-formats
claude/shader-pipeline-cache
claude/bonnet-struts
claude/rbf-xml
claude/people-material-slices
claude/people-clips
claude/parts-randomize
claude/shader-bindings
claude/world-heightmap
claude/bcpack-bc1-window2
claude/people-hats
claude/vehicle-export
claude/people-material-keys
claude/head-extra-maps
claude/people-material-file
claude/weapon-default-finish
claude/wear-layer
claude/palette-per-pixel
claude/shared-bed-colours
claude/people-unresolved
claude/bcpack-bc6h-refit3
claude/chassis-alternatives
claude/weapon-finish-names
claude/weapon-surface
claude/fabric-detail
claude/paint-finish
claude/bcpack-bc1-window
claude/bcpack-rules-3
claude/bed-colours
release-0.8.0
claude/weapon-finishes
claude/people-fabric
claude/tangent-frame
claude/weapon-export-colours
claude/part-asset-ids
claude/fabric-render
claude/people-part-colours
claude/tint-mask-layers
claude/weapon-colours
claude/paint-linear
claude/weapon-presets
claude/merged-part-sets
claude/people-preset-colours
claude/picker-sort
claude/material-library
claude/picker-scroll
fix/related-textures-heads
claude/bed-bones
claude/bcpack-tables-2
claude/part-bones
claude/vehicle-occlusion
claude/people-cloth
claude/bcpack-rules
claude/surface-field-names
claude/no-prop-tint
claude/truck-bodies
claude/gear-doors
claude/gear-braces
claude/gear-tidy
claude/ped-field-names
claude/people-anim
claude/people-rig
claude/landing-gear
claude/aircraft
claude/people-more
claude/palette-slices
claude/lamp-colours
ci/run-once
claude/sirens
claude/vehicle-field-names
claude/people-hair-full
claude/people
fix/force-textures
claude/fleet-fixes
claude/paint-shader
claude/shot-wait
claude/windows
claude/metal-paint
claude/wheel-colours
claude/config-looks
claude/brake-glow
claude/steer-lock
claude/config-mode
claude/gpu-flag
claude/names-all
claude/steering
claude/friendly-names
claude/vehicle-lamps
claude/vehicle-steering
claude/vehicle-lights
claude/rim-size
claude/vehicle-colours
claude/vehicle-mod-parts
claude/vehicle-small-items
claude/roof-animation
claude/vehicle-wheels-roof
claude/weapons
claude/field-names
claude/vehicle-wheel-discs
fix/prop-batch-decode
claude/vehicle-wheels
claude/ped-colours
claude/timecycle
claude/vehicle-parts
claude/sound-classes
claude/bc7-refine
claude/bc6-bootstrap-refit
claude/vehicle-screens
claude/minigames-dirt
fix/ttpf-layout
claude/minigames-decode
claude/people-hair
claude/axis-hint
claude/bc7-last-slots
claude/full-coat
claude/viewer-fixes
claude/animal-fur
claude/animal-materials
claude/interesting-mcclintock-bff8f2
claude/vehicle-materials
claude/bcpack-last-slots
claude/bc6-preset-refit
claude/bc6-mode-change
v0.15.0
v0.14.0
v0.13.0
v0.12.0
v0.11.0
v0.10.0
v0.9.0
v0.8.0
v0.7.0
v0.6.1
v0.6.0
v0.5.0
v0.4.0
v0.3.1
v0.3.0
v0.2.2
v0.2.1
v0.2.0
v0.1.0
Labels
Clear labels
accessibility
Barrier affecting people with disabilities
bug
Something isn't working
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
question
Further information is requested
wontfix
This will not be worked on
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG#516
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Elijah-J on GitHub · 2026-11-27 22:46 UTC · original
Two things measured on the Xbox 1.0.2.1 build that the README and
cutscene.rslist as open. Format facts and counts only; no game data is attached.1. Cutscene bank streams are named after the scene
cl,radls,rs,music.l,music.r<scene>is the cutscene name (cin@<scene>, numbered sections removed).Test vector:
air_tail_intgives.c0x106b5e4b,.l0x045b8607,.r0x1f3efbbf,.ad0x16735206.Counts:
c/l/r/ad, 19 addmusic.l/music.r, 2 have all eight channels and 1 hasc/l/r/ad/ls/rs.Ids are 29 bits, so one matching channel is not enough. Two or more channels of one name in one bank is the test used here.
Scope: this names the streams and ties each bank to its scene. It does not give the bank's container hash (
<pack>/<bank>), which the README lists as unknown. I have not found that.2. Scene files: the timeline
Names (public, not my work)
These struct and member hashes are named in vihook's
scripts/data/par_names.txt(MIT). Member hashes are case-sensitive joaat.7f09852ffwAnimSceneReferenceSectionDatac8d51b9efwAnimSceneCompositeSectionData64e8ac67fwAnimSceneSectionDataeed7e46ffwAnimSceneEventListData2e338a28fwAnimSceneSubtitleEventData865451b7fwAnimScenePlayConversationAudioEventDatadd71c9b4rage__fwDataFsmState891b2a0frage__fwDataFsmStateTransitionfafe97a5sceneId1a43c2ebsectionId379a4935sectionIds929db78dstartTime2b30c60bendTime6b2e466boffsetTime14ff380cTextLabelName18c7fceaMissionIdb0fc1c4ftransitions2f6e2b9atoStatee6e17f14nameStructure (my reading)
fwAnimSceneReferenceSectionDatarecords and a start-time map.0x103: 8-byte entries, u32 id then f32 seconds. The id map is the container struct0x101: 16-byte entries, id then a typed pointer.9a3e57d2(not named) holds the reference id.sceneIdis the child state's key andsectionIdnames one composite section inside that child.sectionIdslists the sections it plays. So a slot on the master clock is a pair, child state and section. Each slot runs from zero and ends at the next start in the master's timeline.db646fb2, member52c09a55(neither is named), of the form<mission>_<scene>, for exampleair_tail_air_tail_int. Lower-case it and drop leading tokens until the rule in section 1 matches a bank.e9e8e1af, with the movie path in member2c1b548cand a float in8bdef590.binkOffsetTimereproduces that hash but is not in the vihook list. The event is struct1e27ae1b: memberd40d4130points to the declaration, besidestartTime,endTimeandoffsetTime.Counts
.cstream, the best lag is within 0.2 s of zero on 35 of 50 banks, with a peak at least 6 dB over the median.Not established
binkOffsetTime + offsetTime. Neither the sign nor the meaning is checked against the picture.I can run a check on my copy if a count or vector here does not reproduce.
@holdmysocks on GitHub · 2026-11-28 02:42 UTC · original
Thanks, this is a really useful write-up, and the test vector and counts make it easy to check.
We'll reproduce both parts on our copy (the
<scene>.<channel>stream ids against the bank headers, and the master-scene timeline with the start-time and id maps) and, if they hold, wire them into the cutscene audio so scene banks and subtitles line up on the bank clock. If we use the struct and member names from vihook'spar_names.txt, we'll credit it inTHIRD_PARTY_NOTICES.mdunder its MIT licence.I'll post here once it's checked, with anything that doesn't reproduce.
@holdmysocks on GitHub · 2026-11-28 12:13 UTC · original
Both parts reproduce on our copy, and they're now wired into
sixng cutscenes(#528).Stream ids: your test vector matches exactly. With scene names stripped of their
_pN/_tNN/_xNsuffixes and the same two-channels-in-one-bank rule, 435 banks match on our copy; salted names match none. Channel sets:c/l/r/adon 422 banks, plusmusic.l/music.ron 9, plusls/rson 3, and all eight on 1.Timelines: the start-time map (
0x103) and id map (0x101) resolve through the reference and composite sections as you describe. Our copy holds fewer scenes than yours: 139 masters with 1,246 slots instory000, plus 12 more masters instory000_restofworld; the 42-start intro master isn't in it (our largest has 69 slots over 877 s). Audio names: 135 of 139 resolve to exactly one bank after dropping leading words, and the same pattern of 4 fails as in your 236 of 240.In #528, 1,942 of 2,824 scenes get a bank (443 banks), and 129 of the 139 masters do.
Bank clock: it holds here too. We placed the subtitle events from the child scene files on the bank clock, using only slots whose child state fills a single slot (427 slots, 1,423 events), and scored the
.cstream's mean amplitude inside the subtitle intervals at lags from −3 to +3 s. The best lag is within 0.2 s of zero on 70 of 98 masters with a bank, against 8 of 98 for a mismatched control. With every slot placed, it holds better still: subtitle times count from the start of the composite section the slot'ssectionIdnames (its layers all start at 0), so a line's bank time is the slot's start plus the line's start; then 81 of 95 masters peak within 0.2 s (2,890 lines), against 7 of 95 for the control.sixng cutscenesnow puts 3,176 subtitle lines on a bank clock (#543, #546). One detail you may find useful: on our copy a cutscene bank is a single multichannel stream (id 0), and thec/l/r/ad… ids are its sub-stream entries rather than streams with their own data.Bink movies: the structure reproduces: 912 movie events (
1e27ae1b) in 356 child scene files, each pointing (d40d4130) to its own declaration (e9e8e1af), and case-sensitive joaat confirmsbinkOffsetTime=8bdef590, as well asbinkName=2c1b548candshouldLoop=0d598e3f. On our copy, though,binkNameis empty in all 912 declarations; the movie seems to be named by a u64 member,495e253b(71 distinct non-zero values), which we haven't matched to anything yet, so we can't tie events to a.bk2.d565a11cholds the render target (textureNameas a joaat, plus width and height). If your copy has non-emptybinkNamestrings, or you know what495e253bhashes, that would close the gap. We haven't checked movie time against the picture either.Transitions, and which slot applies: the master's states (
rage__fwDataFsmState) are keys of its id map, and each state's item (structa90b7f7e) lists the start keys it plays in member32c69aae(1,275 of 1,292 starts belong to a state, on 151 masters). Of 822 transitions, 785 have a condition struct57439252whosef82a367dis the transition's own source state, which reads as "when this state ends"; 236 are entity-name/value tests (structd5f7c394), which read as branch choices. For a child state that fills several slots, it's usually all of them in turn: 237 of 241 such children use a different section per slot, and only 19 are true alternatives on separate branches. The entity tests arefwAnimSceneConditionString:entityNamekeys a string entity of the scene (fwAnimSceneStringData, value 0 in the files, so script-set),valueis the lower-case joaat it must equal (or differ from, withinvert). The commonest are which lead plays (jason/lucia, 153),s_relationship(low/medium/high, 121) and yes/no choices (36). The machine also has a start-transition array (c500427b, no source state; 293 transitions, 214 with string tests) that picks the state each master starts in (#551).One question: we credit vihook's
par_names.txtinTHIRD_PARTY_NOTICES.mdas "the vihook contributors" under MIT. Could you point us to the repository (and its copyright line, if it has one) so we can credit it properly?Thanks again, this was a very clean write-up to check.