Vehicles: the game's display names, friendly names in the model picker #62

Manually merged
github merged 1 commit from gh-pr/62/head into gh-pr/62/base 2026-11-26 20:06:48 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-23 17:57 UTC · original
holdmysocks:claude/friendly-names → master · +146 −8 · 4 files · 1 commits · merged 2026-11-23 18:06 UTC

The model picker lists vehicles under the game's own names by default.

Where the names are

  • The text tables of data.rpf hold a vehicle's name under the model's name hash (the model info's gameName) and its make under vehicleMakeName.
  • buffalo6 is "'19 Buffalo" by "Bravado", buffalo is "'07 Buffalo", comet7 is "Comet S2" by "Pfister".
  • vehicles.json writes them as display_name and make (format 6), from the first text table in file order that has the label (the English one). 321 of 373 models have a name, 312 a make.

Viewer

  • Picker: friendly names by default, with a "raw names" checkbox (remembered). A vehicle reads "Bravado '19 Buffalo"; its standard-detail model reads "... (standard detail)". Other models show their name with underscores as spaces and without _hi.
  • Search matches the friendly name, the model name and the id. The hover text has the model name and id.
  • Vehicle panel: the heading is the display name, with the model name under it.

Checked

  • The picker's vehicle list in the viewer (buffalo6, comet7, ambulance, airbus and others).
  • Build of both binaries; 137 core tests pass.

Not done

  • Names for anything but vehicles.
  • Other languages.
  • Trailers and some farm vehicles have no text under their name hash and keep the tidied model name.
**@⁠holdmysocks** on GitHub · 2026-11-23 17:57 UTC · [original](https://github.com/holdmysocks/SixNG/pull/62) `holdmysocks:claude/friendly-names` → `master` · +146 −8 · 4 files · 1 commits · merged 2026-11-23 18:06 UTC The model picker lists vehicles under the game's own names by default. ## Where the names are - The text tables of `data.rpf` hold a vehicle's name under the model's name hash (the model info's `gameName`) and its make under `vehicleMakeName`. - buffalo6 is "'19 Buffalo" by "Bravado", buffalo is "'07 Buffalo", comet7 is "Comet S2" by "Pfister". - `vehicles.json` writes them as `display_name` and `make` (`format` 6), from the first text table in file order that has the label (the English one). 321 of 373 models have a name, 312 a make. ## Viewer - Picker: friendly names by default, with a "raw names" checkbox (remembered). A vehicle reads "Bravado '19 Buffalo"; its standard-detail model reads "... (standard detail)". Other models show their name with underscores as spaces and without `_hi`. - Search matches the friendly name, the model name and the id. The hover text has the model name and id. - Vehicle panel: the heading is the display name, with the model name under it. ## Checked - The picker's vehicle list in the viewer (buffalo6, comet7, ambulance, airbus and others). - Build of both binaries; 137 core tests pass. ## Not done - Names for anything but vehicles. - Other languages. - Trailers and some farm vehicles have no text under their name hash and keep the tidied model name.
- The game's own name of a vehicle is in the text tables of data.rpf
  under the model's name hash (the model info's gameName), and its make
  under vehicleMakeName: buffalo6 is "'19 Buffalo" by "Bravado", buffalo
  "'07 Buffalo", comet7 "Comet S2" by "Pfister". vehicles.json writes
  them as display_name and make ("format" 6), taken from the first text
  table in file order that has the label (the English one). 321 of 373
  models have a name, 312 a make.
- Model picker: lists models under friendly names by default, with a
  "raw names" checkbox (remembered) to go back. A vehicle reads
  "Bravado '19 Buffalo"; its standard-detail model (without _hi) reads
  "... (standard detail)". Everything else shows its model name with
  underscores as spaces and without _hi. Search matches the friendly
  name, the model name and the id; the hover text has the model name
  and id.
- Vehicle panel: the heading is the display name, with the model name
  under it.

Checked in the viewer's picker on the vehicle list (buffalo6, comet7,
ambulance, airbus and others). 137 core tests pass.

Not done: names for anything but vehicles (weapons, peds, props keep
their tidied model names); other languages; trailers and some farm
vehicles have no text under their name hash and keep the tidied name.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:06:46 +00:00
github manually merged commit fad8718f63 into gh-pr/62/base 2026-11-26 20:06:48 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.