Vehicles: the game's display names, friendly names in the model picker #62
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!62
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/62/head"
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?
@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 UTCThe model picker lists vehicles under the game's own names by default.
Where the names are
data.rpfhold a vehicle's name under the model's name hash (the model info'sgameName) and its make undervehicleMakeName.vehicles.jsonwrites them asdisplay_nameandmake(format6), 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
_hi.Checked
Not done
- 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.