Weapons: finishes from the weapon, part set and mod records; default finish #139

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

@⁠holdmysocks on GitHub · 2026-11-24 12:09 UTC · original
holdmysocks:claude/weapon-default-finish → master · +128 −88 · 4 files · 1 commits · merged 2026-11-24 12:20 UTC

What

Weapon finishes were matched to a model by guessing the part type from a word of the model name, within one family file. They are now joined from the game's own records, which also answers which finish a weapon has by default.

  • Chain: a weapon (bc92474a, 168 records) has a part set (5ad6772f; its own, or its weapon type's 454c2e3b) that lists component options per part type, and a mod list. A finish mod (a5791c62) lists variant records (6724161c), each for one part type. A variant is offered to the models of the components that the weapon's part set lists under that part type.
  • Default finish: a weapon's default mod (72 of 168 weapons name one) is never a finish mod; 71 of the 72 point at a mod that lists nothing. So without a finish mod each component shows its own preset, which is what the viewer and the export already used.
  • Part type names: seven more (optics, sight_optic, optic_rail, carry_handle, mag_assist, saddle, accs): 53 of 54.
  • The material index version goes to 6 (model_finishes replaces weapon_families); older builds rebuild their own.

Checked

  • All 1,299 weapon and variant pairs find the variant's part type in that weapon's part set.
  • 1,276 of the 1,301 finishes now reach a model (621 models); 994 with the name matching. The other 25 are in no weapon's mod list.
  • Against the old family lists: 487 model and part type lists are identical, 39 are narrower (finishes of another weapon in the same file are no longer offered), 90 models were in no family before.
  • sixng materials on the game data prints weapon_finishes: {models: 621, variants: 1276}.
  • Viewer (Windows, Radeon): the rifle w_ar_duke_01 now offers finishes for its front sight, carry handle (rear sight) and safety, which the name matching missed.
  • cargo test -p sixng-core: 151 passed.

Not decoded

  • The finishes' real names.
  • The named weapon presets (825 records that pick mods for a weapon; 111 include a finish mod) and the conditions that swap a component when a mod is fitted (38d9ad3a): not read into the index.
  • One part type (060dc09e, the fore grips, 4 finishes) is unnamed.
  • A model listed under several part types (27 of 621) is offered only its longest list.
  • Mod categories other than finishes (72f3252e) are not named.
**@⁠holdmysocks** on GitHub · 2026-11-24 12:09 UTC · [original](https://github.com/holdmysocks/SixNG/pull/139) `holdmysocks:claude/weapon-default-finish` → `master` · +128 −88 · 4 files · 1 commits · merged 2026-11-24 12:20 UTC ## What Weapon finishes were matched to a model by guessing the part type from a word of the model name, within one family file. They are now joined from the game's own records, which also answers which finish a weapon has by default. - **Chain**: a weapon (`bc92474a`, 168 records) has a part set (`5ad6772f`; its own, or its weapon type's `454c2e3b`) that lists component options per part type, and a mod list. A finish mod (`a5791c62`) lists variant records (`6724161c`), each for one part type. A variant is offered to the models of the components that the weapon's part set lists under that part type. - **Default finish**: a weapon's default mod (72 of 168 weapons name one) is never a finish mod; 71 of the 72 point at a mod that lists nothing. So without a finish mod each component shows its own preset, which is what the viewer and the export already used. - **Part type names**: seven more (`optics`, `sight_optic`, `optic_rail`, `carry_handle`, `mag_assist`, `saddle`, `accs`): 53 of 54. - The material index version goes to 6 (`model_finishes` replaces `weapon_families`); older builds rebuild their own. ## Checked - All 1,299 weapon and variant pairs find the variant's part type in that weapon's part set. - 1,276 of the 1,301 finishes now reach a model (621 models); 994 with the name matching. The other 25 are in no weapon's mod list. - Against the old family lists: 487 model and part type lists are identical, 39 are narrower (finishes of another weapon in the same file are no longer offered), 90 models were in no family before. - `sixng materials` on the game data prints `weapon_finishes: {models: 621, variants: 1276}`. - Viewer (Windows, Radeon): the rifle `w_ar_duke_01` now offers finishes for its front sight, carry handle (rear sight) and safety, which the name matching missed. - `cargo test -p sixng-core`: 151 passed. ## Not decoded - The finishes' real names. - The named weapon presets (825 records that pick mods for a weapon; 111 include a finish mod) and the conditions that swap a component when a mod is fitted (`38d9ad3a`): not read into the index. - One part type (`060dc09e`, the fore grips, 4 finishes) is unnamed. - A model listed under several part types (27 of 621) is offered only its longest list. - Mod categories other than finishes (`72f3252e`) are not named.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:12:46 +00:00
github manually merged commit 0602699fc4 into gh-pr/139/base 2026-11-26 20:12:48 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.