Names: mount paths, audio.rpf names and audio bank names #196

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

@⁠holdmysocks on GitHub · 2026-11-24 19:33 UTC · original
holdmysocks:claude/mount-audio-names → master · +393 −20 · 4 files · 2 commits · merged 2026-11-24 19:54 UTC

Linear: SIX-101

What

  • sixng names reads two more sources:
    • mounts: virtual file-system paths in the text and XML of common.rpf and audio.rpf (platform:/levels/…/x.rpf, common:/data/…, $(target)/data/…, audio:/config/…). Each path adds itself, itself without the extension, and its file name with the extension. The bare file name was already in the dictionary.
    • audio: audio.rpf's text entries, the NUL-terminated names in its metadata files, and the dotted audio pack names.
  • Audio bank names: a bank's container hash (what the sound files point at) is joaat of <pack>/<bank> in lower case. audio-meta now saves each linked bank's container to <work>/index/audio_containers_<archive>.json, then tries every audio pack name with every dictionary identifier against those hashes (source banks). A match is kept only when the nearest named bank before or after it has the same pack; this drops chance matches. sixng names repeats the search when that file exists.
  • sixng audio shows container and name per bank, plus banks_with_container and banks_named in the summary.

Numbers (local install)

  • 3,434 distinct mount paths (3,315 <filename> entries in 21 content files, plus ids and other paths). 9,668 new hashes.
  • audio source: 16,565 new hashes.
  • Banks: 3,713 of 7,160 get a container from the sound files. 691 of those are named: 574 radio tracks, 70 core.resident, the rest ambience, vehicles, police scanner and script.
  • Before the neighbour check, 719 banks matched. 20 had no same-pack neighbour, and most of those were obvious chance matches.
  • Audio metadata objects named: 6,814 of 521,686 (1,989 before).
  • In total, 26,923 new lower-case hashes and 18,374 new case-sensitive ones.

Tests

mount_path_harvest, bank_name_search and bank_container_pick. They use synthetic strings only. cargo test --release --locked passes, and so does the --no-default-features check.

Not done

  • 3,447 banks have no container: music, speech and streamed banks that no simple sound points at.
  • 3,022 containers have no name, because their short names are not in the install's text.
  • The GUI's Audio page doesn't show bank names yet.
**@⁠holdmysocks** on GitHub · 2026-11-24 19:33 UTC · [original](https://github.com/holdmysocks/SixNG/pull/196) `holdmysocks:claude/mount-audio-names` → `master` · +393 −20 · 4 files · 2 commits · merged 2026-11-24 19:54 UTC Linear: SIX-101 ## What - `sixng names` reads two more sources: - **mounts**: virtual file-system paths in the text and XML of common.rpf and audio.rpf (`platform:/levels/…/x.rpf`, `common:/data/…`, `$(target)/data/…`, `audio:/config/…`). Each path adds itself, itself without the extension, and its file name with the extension. The bare file name was already in the dictionary. - **audio**: audio.rpf's text entries, the NUL-terminated names in its metadata files, and the dotted audio pack names. - **Audio bank names**: a bank's container hash (what the sound files point at) is joaat of `<pack>/<bank>` in lower case. `audio-meta` now saves each linked bank's container to `<work>/index/audio_containers_<archive>.json`, then tries every audio pack name with every dictionary identifier against those hashes (source `banks`). A match is kept only when the nearest named bank before or after it has the same pack; this drops chance matches. `sixng names` repeats the search when that file exists. - `sixng audio` shows `container` and `name` per bank, plus `banks_with_container` and `banks_named` in the summary. ## Numbers (local install) - 3,434 distinct mount paths (3,315 `<filename>` entries in 21 content files, plus ids and other paths). 9,668 new hashes. - audio source: 16,565 new hashes. - Banks: 3,713 of 7,160 get a container from the sound files. **691 of those are named**: 574 radio tracks, 70 `core.resident`, the rest ambience, vehicles, police scanner and script. - Before the neighbour check, 719 banks matched. 20 had no same-pack neighbour, and most of those were obvious chance matches. - Audio metadata objects named: 6,814 of 521,686 (1,989 before). - In total, 26,923 new lower-case hashes and 18,374 new case-sensitive ones. ## Tests `mount_path_harvest`, `bank_name_search` and `bank_container_pick`. They use synthetic strings only. `cargo test --release --locked` passes, and so does the `--no-default-features` check. ## Not done - 3,447 banks have no container: music, speech and streamed banks that no simple sound points at. - 3,022 containers have no name, because their short names are not in the install's text. - The GUI's Audio page doesn't show bank names yet.
`sixng names` now also reads:
- the virtual file-system paths in common.rpf and audio.rpf
  (`platform:/levels/.../x.rpf`, `common:/data/...`, `$(target)/...`,
  `audio:/config/...`): each path, the path without its extension and its
  file name with the extension (source `mounts`);
- audio.rpf's text entries, the NUL-terminated names in its metadata files
  and the dotted audio pack names (source `audio`).

Audio banks: a bank's container hash is joaat of `<pack>/<bank>` in lower
case. `audio-meta` records each linked bank's container in
`<work>/index/audio_containers_<archive>.json` and searches pack names
times dictionary identifiers for them (source `banks`); a match is kept
only when a neighbouring named bank has the same pack. `sixng audio`
shows `container` and `name` per bank and counts the named banks.

SIX-101
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:17:13 +00:00
github manually merged commit ba8c8deb2c into gh-pr/196/base 2026-11-26 20:17:15 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.