Weapons: part type names, finishes for magazines and sights, colour labels #130

Manually merged
github merged 1 commit from gh-pr/130/head into gh-pr/130/base 2026-11-26 20:12:05 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-24 06:26 UTC · original
holdmysocks:claude/weapon-finish-names → master · +63 −12 · 3 files · 1 commits · merged 2026-11-24 06:31 UTC

What this changes

  • Part type names. Ten more of the hashes that finishes are listed under are named (sight_front, sight_rear, hguard, magtube, underbarrel, under, accessory, front_rail, railplate, riser): 46 of 54 now, covering 1,263 of the 1,300 finishes (matlib::PART_TYPES, part_type_name).
  • Finishes that could not be reached. A model's part type was matched by a word of its name only, but models say mag, sight_f, sight_r where the finish lists say magazine, sight_front, sight_rear, and a handguard model can also take hguard finishes. Index::weapon_finishes now tries these aliases after the word's own name. Finishes reachable from a model name: 994 of 1,300, up from 755.
  • Viewer. The Finishes block shows the part type's name and labels each finish by its colours (nearest colour words of the preset's sub-materials, with the variant hash), instead of "variant ".
  • README: the finishes sentence.

What was checked

  • Counts above computed from the index built on the game data.
  • Screenshot (--gpu radeon): the pistol's Finishes block now lists barrel, frame, magazine, sight_front, sight_rear, slide and trigger (magazine and sights were missing before); the gold frame reads "yellow / grey / silver".
  • cargo test -p sixng-core: 151 passed (the matlib test covers the aliases and that an own name wins over an alias). Viewer release build passes.

What is not done / not known

  • The finishes' real names: they match no text label of the game's text tables and no pattern built from the model names. The colour labels are ours.
  • 8 part type hashes (37 finishes) are unnamed, and 306 finishes belong to part types no model word of their family leads to.
  • Which finish a weapon gets by default is still not decoded.
**@⁠holdmysocks** on GitHub · 2026-11-24 06:26 UTC · [original](https://github.com/holdmysocks/SixNG/pull/130) `holdmysocks:claude/weapon-finish-names` → `master` · +63 −12 · 3 files · 1 commits · merged 2026-11-24 06:31 UTC ## What this changes - **Part type names.** Ten more of the hashes that finishes are listed under are named (`sight_front`, `sight_rear`, `hguard`, `magtube`, `underbarrel`, `under`, `accessory`, `front_rail`, `railplate`, `riser`): 46 of 54 now, covering 1,263 of the 1,300 finishes (`matlib::PART_TYPES`, `part_type_name`). - **Finishes that could not be reached.** A model's part type was matched by a word of its name only, but models say `mag`, `sight_f`, `sight_r` where the finish lists say `magazine`, `sight_front`, `sight_rear`, and a `handguard` model can also take `hguard` finishes. `Index::weapon_finishes` now tries these aliases after the word's own name. Finishes reachable from a model name: 994 of 1,300, up from 755. - **Viewer.** The Finishes block shows the part type's name and labels each finish by its colours (nearest colour words of the preset's sub-materials, with the variant hash), instead of "variant <hash>". - README: the finishes sentence. ## What was checked - Counts above computed from the index built on the game data. - Screenshot (`--gpu radeon`): the pistol's Finishes block now lists barrel, frame, magazine, sight_front, sight_rear, slide and trigger (magazine and sights were missing before); the gold frame reads "yellow / grey / silver". - `cargo test -p sixng-core`: 151 passed (the matlib test covers the aliases and that an own name wins over an alias). Viewer release build passes. ## What is not done / not known - The finishes' real names: they match no text label of the game's text tables and no pattern built from the model names. The colour labels are ours. - 8 part type hashes (37 finishes) are unnamed, and 306 finishes belong to part types no model word of their family leads to. - Which finish a weapon gets by default is still not decoded.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:12:03 +00:00
github manually merged commit 75bfabea9f into gh-pr/130/base 2026-11-26 20:12:05 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.