People: the full set of a character's parts (Characters tab, sixng ped-parts) (#297) #314

Manually merged
github merged 3 commits from gh-pr/314/head into gh-pr/314/base 2026-11-26 20:26:40 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-25 21:28 UTC · original
holdmysocks:issue-297 → master · +471 −9 · 8 files · 3 commits · merged 2026-11-25 21:41 UTC

For a character, this adds a list of every part the game uses for them: each drawable of all their outfits, with each texture and colour variant and the outfits that wear it. It answers the parts-list half of #297. Body morphs are a separate item.

How the game ties a character to its parts

  1. The outfit list (a packs.rpf PSO, struct a5ea6310) maps the model hash to its outfit variation ids, in order.
  2. The model's wardrobe resource holds those variations. Each outfit lists its items and includes other variations by id: the head set, body set, brows and lashes, and a body-shape preset.
  3. Each item names its drawable by asset GUID (#294). Two items on one drawable are two variants of that part: other textures, tint, colour or garment preset.

A wardrobe can also hold variations that no listed outfit reaches. These are now resolved and listed as well (Look::other_variations). Across all characters there are 30 such variations, and each one is a spare head set (head, eyes, teeth).

What's new

  • pedset (core): merges a look's outfits and other variations into one list of drawables, grouped as body, hair, clothing and accessory. Each drawable carries its variants (item, GUID, tint, colour, preset, texture remaps) and the outfits that use them. complete means every item resolved to a model. Items left out on purpose (#307: first-person arms, the anatomical body layer) are listed apart and are not counted as missing.
  • Outfit::variations: the variation ids each outfit is made of.
  • Viewer, Character panel: a Full set section (collapsed by default) lists the parts by kind. Clicking an outfit number shows that outfit. Copy as JSON and Copy names copy the list. --full-set opens the section for screenshots.
  • CLI: sixng ped-parts <model> --out <dir> writes <dir>/<model>/parts.json. sixng ped-parts "^" --out <dir> writes one file per character and prints a summary.

Results

  • The sweep covers the 292 characters with parts of their own and the 457 other named models of the outfit list. Mandy is one of the latter: none of her parts are drawables of her own.
  • 747 of these 749 sets are complete. Only Raina, under both her model names, misses one item (category c8bc4e01).
  • Mandy has 9 outfits, 40 parts and 47 variants. Vicki has 15, 48 and 53. Viper has 3, 18 and 18. All three are complete.

The kind grouping is read from the drawable names; the wardrobe stores no such grouping.

Tests: pedset::tests::merges_drawables_and_items; the existing pedlook tests pass.

**@⁠holdmysocks** on GitHub · 2026-11-25 21:28 UTC · [original](https://github.com/holdmysocks/SixNG/pull/314) `holdmysocks:issue-297` → `master` · +471 −9 · 8 files · 3 commits · merged 2026-11-25 21:41 UTC For a character, this adds a list of every part the game uses for them: each drawable of all their outfits, with each texture and colour variant and the outfits that wear it. It answers the parts-list half of #297. Body morphs are a separate item. ## How the game ties a character to its parts 1. The outfit list (a packs.rpf PSO, struct `a5ea6310`) maps the model hash to its outfit variation ids, in order. 2. The model's wardrobe resource holds those variations. Each outfit lists its items and includes other variations by id: the head set, body set, brows and lashes, and a body-shape preset. 3. Each item names its drawable by asset GUID (#294). Two items on one drawable are two variants of that part: other textures, tint, colour or garment preset. A wardrobe can also hold variations that no listed outfit reaches. These are now resolved and listed as well (`Look::other_variations`). Across all characters there are 30 such variations, and each one is a spare head set (head, eyes, teeth). ## What's new - `pedset` (core): merges a look's outfits and other variations into one list of drawables, grouped as body, hair, clothing and accessory. Each drawable carries its variants (item, GUID, tint, colour, preset, texture remaps) and the outfits that use them. `complete` means every item resolved to a model. Items left out on purpose (#307: first-person arms, the anatomical body layer) are listed apart and are not counted as missing. - `Outfit::variations`: the variation ids each outfit is made of. - Viewer, Character panel: a *Full set* section (collapsed by default) lists the parts by kind. Clicking an outfit number shows that outfit. *Copy as JSON* and *Copy names* copy the list. `--full-set` opens the section for screenshots. - CLI: `sixng ped-parts <model> --out <dir>` writes `<dir>/<model>/parts.json`. `sixng ped-parts "^" --out <dir>` writes one file per character and prints a summary. ## Results - The sweep covers the 292 characters with parts of their own and the 457 other named models of the outfit list. Mandy is one of the latter: none of her parts are drawables of her own. - 747 of these 749 sets are complete. Only Raina, under both her model names, misses one item (category `c8bc4e01`). - Mandy has 9 outfits, 40 parts and 47 variants. Vicki has 15, 48 and 53. Viper has 3, 18 and 18. All three are complete. The kind grouping is read from the drawable names; the wardrobe stores no such grouping. Tests: `pedset::tests::merges_drawables_and_items`; the existing pedlook tests pass.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:26:38 +00:00
github manually merged commit 7ad3d26604 into gh-pr/314/base 2026-11-26 20:26:40 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.