Dialogue links: name speakers whose hash a known name gives #522

Manually merged
github merged 1 commit from github-bot/gh-522 into gh-pr/522/base 2026-11-28 03:49:27 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-28 02:40 UTC · original
holdmysocks:claude/dialogue-speaker-names → master · +140 −2 · 2 files · 1 commits · merged 2026-11-28 03:44 UTC

Summary

Follow-up to #493: sixng dialogue-links names the speakers it knew only by hash.

  • A conversation file's character hash is the joaat of the character's lower-case name (for example, the two leads match their names in the name dictionary). A speaker gets a name when exactly one candidate has its hash. Candidates, in this order:
    • the name dictionary (sixng names);
    • ped model names and their parts (cs_bret_vogel gives bret_vogel, vogel, cs_bret, …), without names flagged as possible chance hits;
    • the address table's character_id values;
    • the words of the subtitle text tables passed with --text-table: single words and runs of two or three joined by _, with and without apostrophes and dots.
  • A speaker that several distinct names match keeps its hash as its label, as does every speaker no candidate matches.
  • The report's new speaker_names counts speakers, named speakers and named lines per source, and speakers with several names.
  • The names show wherever speaker labels already do: text --label / --find, the Audio page's Subtitle column and Scenes.
  • README: the "Dialogue links" section explains the naming.

Validation

  • New synthetic test: names from subtitle words and from model-name parts, a hash with two distinct names left unnamed, a prefixed table ID ignored, and a table speaker keeping its own label.
  • cargo test (the sixng-core and sixng-cli dialogue tests) passed locally on Windows.
  • Local run on the current Xbox build (minigame and story packs): 149 of 2,941 speakers named, covering 94,909 of the 153,093 derived lines. By source: 14 speakers (60,226 lines) from the dictionary, 114 (32,742) from ped models and 21 (1,941) from subtitle words. No speaker matched two names. With about 1.7 million candidates against 2,941 hashes, roughly one chance match is expected over a 32-bit hash, so a name from subtitle words is a strong hint rather than proof.
**@⁠holdmysocks** on GitHub · 2026-11-28 02:40 UTC · [original](https://github.com/holdmysocks/SixNG/pull/522) `holdmysocks:claude/dialogue-speaker-names` → `master` · +140 −2 · 2 files · 1 commits · merged 2026-11-28 03:44 UTC ### Summary Follow-up to #493: `sixng dialogue-links` names the speakers it knew only by hash. - A conversation file's character hash is the joaat of the character's lower-case name (for example, the two leads match their names in the name dictionary). A speaker gets a name when exactly one candidate has its hash. Candidates, in this order: - the name dictionary (`sixng names`); - ped model names and their parts (`cs_bret_vogel` gives `bret_vogel`, `vogel`, `cs_bret`, …), without names flagged as possible chance hits; - the address table's `character_id` values; - the words of the subtitle text tables passed with `--text-table`: single words and runs of two or three joined by `_`, with and without apostrophes and dots. - A speaker that several distinct names match keeps its hash as its label, as does every speaker no candidate matches. - The report's new `speaker_names` counts speakers, named speakers and named lines per source, and speakers with several names. - The names show wherever speaker labels already do: `text --label` / `--find`, the Audio page's Subtitle column and Scenes. - README: the "Dialogue links" section explains the naming. ### Validation - New synthetic test: names from subtitle words and from model-name parts, a hash with two distinct names left unnamed, a prefixed table ID ignored, and a table speaker keeping its own label. - `cargo test` (the sixng-core and sixng-cli dialogue tests) passed locally on Windows. - Local run on the current Xbox build (minigame and story packs): 149 of 2,941 speakers named, covering 94,909 of the 153,093 derived lines. By source: 14 speakers (60,226 lines) from the dictionary, 114 (32,742) from ped models and 21 (1,941) from subtitle words. No speaker matched two names. With about 1.7 million candidates against 2,941 hashes, roughly one chance match is expected over a 32-bit hash, so a name from subtitle words is a strong hint rather than proof.
A character hash is the joaat of the lower-case name. A speaker gets a name
when exactly one candidate from the name dictionary, the ped model names
and their parts, the address table or the subtitle words has its hash; the
report counts named speakers and lines per source.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 02:45:49 +00:00
github-bot changed target branch from master to gh-pr/522/base 2026-11-28 03:49:25 +00:00
github manually merged commit 5653bd9086 into gh-pr/522/base 2026-11-28 03:49:27 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.