Picker: readable names for vehicle parts, weapons and wheels #64

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

@⁠holdmysocks on GitHub · 2026-11-23 18:34 UTC · original
holdmysocks:claude/names-all → master · +94 −1 · 1 files · 1 commits · merged 2026-11-23 18:53 UTC

Follow-up to #62, which gave vehicles the game's own names.

What changes

The picker's friendly names now cover more than vehicles. These are derived from the model name; "raw names" still shows the model name.

  • A vehicle part takes its vehicle's display name: buffalo6_spoiler_03 reads "Bravado '19 Buffalo · spoiler 03".
  • A weapon reads ": ": w_pi_duke_01 reads "Pistol: Duke 01". A weapon part adds its slot: w_pi_duke_01_barrel_02 reads "Pistol: Duke 01 · barrel 02".
  • Wheels read "Rim: ..." / "Tyre: ...".
  • _mid becomes "(mid detail)", _lod / _slodN become "(LOD)", _hi is dropped.

Why derived

The game's text tables only tie a name to vehicles (the label is the model's name hash). For weapons the text exists, but no 0x7a resource and no PSO file in data.rpf holds a weapon model's name hash or the label of its name, so no link from model to text was found.

Checked

  • One unit test for the rules (cargo test -p sixng-gui name_tests).
  • Not checked in the running viewer.

Not done

  • The game's own names for weapons, people, animals and props.
  • The weapon kind codes are read from the names; lr as launcher and me as melee are guesses.
**@⁠holdmysocks** on GitHub · 2026-11-23 18:34 UTC · [original](https://github.com/holdmysocks/SixNG/pull/64) `holdmysocks:claude/names-all` → `master` · +94 −1 · 1 files · 1 commits · merged 2026-11-23 18:53 UTC Follow-up to #62, which gave vehicles the game's own names. ## What changes The picker's friendly names now cover more than vehicles. These are derived from the model name; "raw names" still shows the model name. - A vehicle part takes its vehicle's display name: `buffalo6_spoiler_03` reads "Bravado '19 Buffalo · spoiler 03". - A weapon reads "<kind>: <Name> <NN>": `w_pi_duke_01` reads "Pistol: Duke 01". A weapon part adds its slot: `w_pi_duke_01_barrel_02` reads "Pistol: Duke 01 · barrel 02". - Wheels read "Rim: ..." / "Tyre: ...". - `_mid` becomes "(mid detail)", `_lod` / `_slodN` become "(LOD)", `_hi` is dropped. ## Why derived The game's text tables only tie a name to vehicles (the label is the model's name hash). For weapons the text exists, but no `0x7a` resource and no PSO file in `data.rpf` holds a weapon model's name hash or the label of its name, so no link from model to text was found. ## Checked - One unit test for the rules (`cargo test -p sixng-gui name_tests`). - Not checked in the running viewer. ## Not done - The game's own names for weapons, people, animals and props. - The weapon kind codes are read from the names; `lr` as launcher and `me` as melee are guesses.
The game's text tables only tie a name to vehicles (the label is the
model's name hash). For weapons no link from a model to its text was
found: no 0x7a resource and no PSO file in data.rpf holds a weapon
model's name hash or the label of its name, although the text itself is
there. So the other names in the picker are derived from the model
name, with "raw names" still showing the model name:

- a vehicle part takes its vehicle's display name:
  buffalo6_spoiler_03 -> "Bravado '19 Buffalo · spoiler 03"
- a weapon reads "<kind>: <Name> <NN>" from w_<kind>_<name>_<NN>
  (pi pistol, rv revolver, smg, ar assault rifle, sg shotgun, sr sniper
  rifle, mg machine gun, lr launcher, me melee, ex explosive,
  at attachment); a weapon part adds its slot:
  w_pi_duke_01_barrel_02 -> "Pistol: Duke 01 · barrel 02"
- wheels read "Rim: ..." / "Tyre: ..."
- a detail suffix becomes words: _mid -> "(mid detail)", _lod / _slodN
  -> "(LOD)"; _hi is dropped

One unit test for the rules. Not checked in the running viewer yet
(viewer runs are on hold while another session benchmarks on the GPU).

Not done: the game's own names for weapons, people, animals and props.
The weapon kind codes are read from the names (lr as launcher and me as
melee are guesses; tr is left as it is).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:06:56 +00:00
github manually merged commit 8e4fd842ef into gh-pr/64/base 2026-11-26 20:06:58 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.