benilla-re systems structs docs

s_charSectionsCount

global · dbc

Address
0xc0df68 · 4 bytes, up to 0xc0df6b
Type
uint32_t
Meaning
Holds the number of CharSections.dbc rows
Confidence
verified, proof one
Finding
charactermodel/customization#grid-build

Finding: Grid build in charactermodel: customization

0x476020 builds a grid of (2·maxRace + 2) · 5 entries of 8 bytes from the CharSections rows ([0xc0df64], 0x28 bytes, count [0xc0df68]) in three passes. Entry 5·(sex + 2·race) + section holds the number of variations and a pointer to one 12-byte record per variation: its colour count, its count of base colours (rows whose flag bit 0 is clear) and a pointer to the row ids by colour. Base colours take the slots 0 .. and overlay colours (flag bit 0 set) the slots from the base count. Section is 0 skin, 1 face, 2 facial hair, 3 hair, 4 underwear. A group whose variations are not dense from 0 makes the build return 0.

The derivation is in the doc.