Ped models: the name the game shows, beside the model name #207

Manually merged
github merged 10 commits from gh-pr/207/head into gh-pr/207/base 2026-11-26 20:18:10 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-24 20:50 UTC · original
holdmysocks:claude/people-display-names → master · +82 −7 · 4 files · 10 commits · merged 2026-11-24 21:46 UTC

Stacked on PRs 199, 204 and 200 (merge those first; this PR's own change is the last commit).

What

Ped models get the name the game shows ("Mandy" beside cs_mandy).

  • A character table of the main data archive (a PSO, record struct 691f01d2, 3,689 records) gives a text label (field f249cb70) per character name (Name, a name hash); 427 records carry one.
  • A model's character name is the one the ped model table gives it, else its own name without cs_.
  • The string comes from the text table that reads most like English (which table is which language is not stored).
  • sixng characters prints it as display; the viewer's picker shows "model (Display)" and finds a character by either.

Numbers

125 of 2,713 models get a display name (3 of them models without a recovered name). First build of the name table takes about 30 s more for this (cached afterwards).

Verified

  • Workspace tests pass (190 + 20).
  • sixng characters --kind model on the game: 25 sampled pairs read right (first names, "Sam the Bookie", accented names).

Not verified

  • The picker was not looked at in the window.
  • The English-table choice is a heuristic (the table with most strings containing " the "); names that differ by language could come out in another language.
  • The two player models get no display name: no record with a label is linked to them.
**@⁠holdmysocks** on GitHub · 2026-11-24 20:50 UTC · [original](https://github.com/holdmysocks/SixNG/pull/207) `holdmysocks:claude/people-display-names` → `master` · +82 −7 · 4 files · 10 commits · merged 2026-11-24 21:46 UTC Stacked on PRs 199, 204 and 200 (merge those first; this PR's own change is the last commit). ## What Ped models get the name the game shows ("Mandy" beside `cs_mandy`). - A character table of the main data archive (a PSO, record struct `691f01d2`, 3,689 records) gives a text label (field `f249cb70`) per character name (`Name`, a name hash); 427 records carry one. - A model's character name is the one the ped model table gives it, else its own name without `cs_`. - The string comes from the text table that reads most like English (which table is which language is not stored). - `sixng characters` prints it as `display`; the viewer's picker shows "model (Display)" and finds a character by either. ## Numbers 125 of 2,713 models get a display name (3 of them models without a recovered name). First build of the name table takes about 30 s more for this (cached afterwards). ## Verified - Workspace tests pass (190 + 20). - `sixng characters --kind model` on the game: 25 sampled pairs read right (first names, "Sam the Bookie", accented names). ## Not verified - The picker was not looked at in the window. - The English-table choice is a heuristic (the table with most strings containing " the "); names that differ by language could come out in another language. - The two player models get no display name: no record with a label is linked to them.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:18:08 +00:00
github manually merged commit 9911d05ae0 into gh-pr/207/base 2026-11-26 20:18:10 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.