ped-variations: dirt and blood preset definitions from common.rpf #36

Manually merged
github merged 2 commits from gh-pr/36/head into gh-pr/36/base 2026-11-26 20:04:46 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-23 04:39 UTC · original
holdmysocks:claude/minigames-dirt → master · +122 −3 · 3 files · 2 commits · merged 2026-11-23 12:07 UTC

Follow-up to #34.

  • ped-variations now attaches each variation's dirt or blood preset as dirt, read from common.rpf's graphics definitions (CGraphicsDefinitionsData, plain XML): the scalar settings, cloth and skin dirt modifiers, the colour (ColorLookup resolved from CannedColors, RGB 0..255) and the dirt-mask channels with probabilities (AlphaMasksLookup resolved from AlphaChannels). Example: AM_Dirtdefinition_BloodEffect = Blood_Red [86, 20, 24], mask channels 2 and 0 at 50 %.
  • New wardrobe::dirt_presets with a unit test. Uses common.rpf only when it is indexed; otherwise dirt stays empty.
  • The export still does not apply dirt: which texture channel of the ped shaders is the dirt mask is not in the data.
  • Tests: 104 core + 11 pass.
**@⁠holdmysocks** on GitHub · 2026-11-23 04:39 UTC · [original](https://github.com/holdmysocks/SixNG/pull/36) `holdmysocks:claude/minigames-dirt` → `master` · +122 −3 · 3 files · 2 commits · merged 2026-11-23 12:07 UTC Follow-up to #34. - `ped-variations` now attaches each variation's dirt or blood preset as `dirt`, read from common.rpf's graphics definitions (`CGraphicsDefinitionsData`, plain XML): the scalar settings, cloth and skin dirt modifiers, the colour (`ColorLookup` resolved from `CannedColors`, RGB 0..255) and the dirt-mask channels with probabilities (`AlphaMasksLookup` resolved from `AlphaChannels`). Example: `AM_Dirtdefinition_BloodEffect` = Blood_Red [86, 20, 24], mask channels 2 and 0 at 50 %. - New `wardrobe::dirt_presets` with a unit test. Uses common.rpf only when it is indexed; otherwise `dirt` stays empty. - The export still does not apply dirt: which texture channel of the ped shaders is the dirt mask is not in the data. - Tests: 104 core + 11 pass.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:04:44 +00:00
github manually merged commit e588f63646 into gh-pr/36/base 2026-11-26 20:04:46 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.