DB/CharSections: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
(20 intermediate revisions by 12 users not shown) | |||
Line 1: | Line 1: | ||
__TOC__ | |||
This table defines the textures for the different types of character-variations that involve a texture only. These are hair, beards, the base skin etc. | |||
== | ==1.12.1.5875== | ||
struct CharSectionsRec { | |||
uint32_t m_ID; | |||
uint32_t m_raceID; | |||
uint32_t m_sexID; | |||
uint32_t m_baseSection; | |||
uint32_t m_variationIndex; | |||
uint32_t m_colorIndex; | |||
{{Template:Type|stringref}} m_TextureName[3]; | |||
uint32_t m_flags; | |||
}; | |||
==Wrath== | |||
===3.0.2.8905-3.3.5.12340=== | |||
====Table==== | |||
{| style="background:#FCFCFC; color:black" | |||
|- | |||
! width="80" | Column | |||
! width="180 " | Field | |||
! width="80" | Type | |||
! width="600" | Notes | |||
|- | |||
| 1 || ID || Integer || | |||
|- style="background:#F0F8FF;" | |||
| 2 || [[ChrRaces.dbc|Race]] || iRefID || | |||
|- | |||
| 3 || Gender || Boolean || Male = 0, female = 1. | |||
|- | |||
| 4 || GeneralType || Integer || See below. | |||
|- | |||
| 5 || Texture1 || String || | |||
|- | |||
| 6 || Texture2 || String || | |||
|- | |||
| 7 || Texture3 || String || | |||
|- | |||
| 8 || Flags || Integer || See Below | |||
|- | |||
| 9 || Type || Integer || | |||
|- | |||
| 10 || Variation || Integer || These are the variations / colors of the Type. | |||
|} | |||
It seems to have been reordered in WotLK. The Type and Variation fields have been in front of the textures before. | |||
1 | |||
==Warlords== | |||
===6.0.1.18179=== | |||
====Struct==== | |||
struct CharSectionsRec { | |||
uint32_t m_ID; | |||
uint32_t m_raceID; | |||
uint32_t m_sexID; | |||
uint32_t m_baseSection; | |||
{{Template:Type|stringref}} m_TextureName[3]; | |||
uint32_t m_flags; | |||
uint32_t m_variationIndex; | |||
uint32_t m_colorIndex; | |||
}; | |||
==8.0.1.25902== | |||
enum CharSectionType { | |||
Skin = 0, | |||
Face = 1, | |||
FacialHair = 2, | |||
Hair = 3, | |||
Underwear = 4, | |||
HDSkin = 5, | |||
HDFace = 6, | |||
HDFacialHair = 7, | |||
HDHair = 8, | |||
HDUnderwear = 9, | |||
Custom1 = 10, | |||
HDCustom1 = 11, | |||
Custom2 = 12, | |||
HDCustom2 = 13, | |||
Custom3 = 14, | |||
HDCustom3 = 15 | |||
}; | |||
struct CharSectionsRec { | |||
uint32_t m_ID; | |||
uint32_t m_TextureName[3]; | |||
uint16_t m_flags; | |||
uint8_t m_raceID; | |||
uint8_t m_sexID; | |||
uint8_t m_baseSection; | |||
uint8_t m_variationIndex; | |||
uint8_t m_colorIndex; | |||
}; | |||
==Field Descriptions== | ==Field Descriptions== | ||
The meaning of some of the fields change depending on the Type | The meaning of some of the fields change depending on the GeneralType value. | ||
{| style="background:#FCFCFC; color:black" | |||
|- | |||
! width="80" | / | |||
! width="120 " | 0 - ''Base Skin'' | |||
! width="120" | 1 - ''Face'' | |||
! width="120" | 2 - ''Facial Hair'' | |||
! width="120" | 3 - ''Hair'' | |||
! width="120" | 4 - ''Underwear'' | |||
|- | |||
| '''Type''' || - || FaceType || FacialHairType || HairStyle || - | |||
|- | |||
| '''Color''' || SkinColor || SkinColor || HairColor || HairColor || SkinColor | |||
|- | |||
| '''Texture1''' || SkinTexture || FaceLowerTexture || FacialLowerTexture || HairTexture || PelvisTexture | |||
|- | |||
| '''Texture2''' || ExtraSkinTexture || FaceUpperTexture || FacialUpperTexture || ScalpLowerTexture || TorsoTexture | |||
|- | |||
| '''Texture3''' || - || - || - || ScalpUpperTexture || - | |||
|} | |||
For HD textures, add 5 to the GeneralType you want. Note that you may have to default to non-HD for some textures. | |||
Eg non-HD has texture1 and texture2. HD only has texture2. | |||
NOTE: Legion introduced more GeneralTypes, 10-15. 11 is Demon Hunter tattoos, others are unk. | |||
==Flags== | |||
{| style="background:#FCFCFC; color:black" | |||
|- | |||
! width="80" | Flag | |||
! | Description | |||
|- | |||
|0x1|| Playable (probably)/CharacterCreate|| | |||
|- | |||
|0x2|| Barbershop || | |||
|- | |||
|0x4|| Death Knight texture|| | |||
|- | |||
|0x8|| NPC skin (e.g. the necromancer human skins with facial marking etc)|| | |||
|- | |||
|0x10|| Seems to be regular, mundane skins|| | |||
|- | |||
|0x20|| Demon Hunter texture|| | |||
|- | |||
|0x40|| Demon Hunter face (unsure why these have a separate flag)|| | |||
|- | |||
|0x80|| Something to do with a couple of Demon Hunter blindfolds?|| | |||
|- | |||
|0x100|| Silhouette (black) texture|| | |||
|- | |||
|0x200|| Void Elf - Entropic Embrace (dark purple) texture|| | |||
|- | |||
|0x400|| Night Elf - Black eyes ([https://www.wowhead.com/news=287372/patch-8-1-night-elf-night-warrior-character-customization-options-now-in-dressin related to "Night Warrior" questline]]) || | |||
|} | |||
[[Category:DBC]] | [[Category:DBC]] | ||
[[Category:DBC_Vanilla]] | |||
[[Category:DBC_WotLK]][[Category:3.0.2.8905]][[Category:3.3.5.12340]] | |||
[[Category:DBC_WoD]][[Category:6.0.1.18179]] |
Latest revision as of 18:23, 25 April 2020
This table defines the textures for the different types of character-variations that involve a texture only. These are hair, beards, the base skin etc.
1.12.1.5875
struct CharSectionsRec { uint32_t m_ID; uint32_t m_raceID; uint32_t m_sexID; uint32_t m_baseSection; uint32_t m_variationIndex; uint32_t m_colorIndex; stringrefⁱ m_TextureName[3]; uint32_t m_flags; };
Wrath
3.0.2.8905-3.3.5.12340
Table
Column | Field | Type | Notes |
---|---|---|---|
1 | ID | Integer | |
2 | Race | iRefID | |
3 | Gender | Boolean | Male = 0, female = 1. |
4 | GeneralType | Integer | See below. |
5 | Texture1 | String | |
6 | Texture2 | String | |
7 | Texture3 | String | |
8 | Flags | Integer | See Below |
9 | Type | Integer | |
10 | Variation | Integer | These are the variations / colors of the Type. |
It seems to have been reordered in WotLK. The Type and Variation fields have been in front of the textures before.
Warlords
6.0.1.18179
Struct
struct CharSectionsRec { uint32_t m_ID; uint32_t m_raceID; uint32_t m_sexID; uint32_t m_baseSection; stringrefⁱ m_TextureName[3]; uint32_t m_flags; uint32_t m_variationIndex; uint32_t m_colorIndex; };
8.0.1.25902
enum CharSectionType { Skin = 0, Face = 1, FacialHair = 2, Hair = 3, Underwear = 4, HDSkin = 5, HDFace = 6, HDFacialHair = 7, HDHair = 8, HDUnderwear = 9, Custom1 = 10, HDCustom1 = 11, Custom2 = 12, HDCustom2 = 13, Custom3 = 14, HDCustom3 = 15 }; struct CharSectionsRec { uint32_t m_ID; uint32_t m_TextureName[3]; uint16_t m_flags; uint8_t m_raceID; uint8_t m_sexID; uint8_t m_baseSection; uint8_t m_variationIndex; uint8_t m_colorIndex; };
Field Descriptions
The meaning of some of the fields change depending on the GeneralType value.
/ | 0 - Base Skin | 1 - Face | 2 - Facial Hair | 3 - Hair | 4 - Underwear |
---|---|---|---|---|---|
Type | - | FaceType | FacialHairType | HairStyle | - |
Color | SkinColor | SkinColor | HairColor | HairColor | SkinColor |
Texture1 | SkinTexture | FaceLowerTexture | FacialLowerTexture | HairTexture | PelvisTexture |
Texture2 | ExtraSkinTexture | FaceUpperTexture | FacialUpperTexture | ScalpLowerTexture | TorsoTexture |
Texture3 | - | - | - | ScalpUpperTexture | - |
For HD textures, add 5 to the GeneralType you want. Note that you may have to default to non-HD for some textures. Eg non-HD has texture1 and texture2. HD only has texture2.
NOTE: Legion introduced more GeneralTypes, 10-15. 11 is Demon Hunter tattoos, others are unk.
Flags
Flag | Description | |
---|---|---|
0x1 | Playable (probably)/CharacterCreate | |
0x2 | Barbershop | |
0x4 | Death Knight texture | |
0x8 | NPC skin (e.g. the necromancer human skins with facial marking etc) | |
0x10 | Seems to be regular, mundane skins | |
0x20 | Demon Hunter texture | |
0x40 | Demon Hunter face (unsure why these have a separate flag) | |
0x80 | Something to do with a couple of Demon Hunter blindfolds? | |
0x100 | Silhouette (black) texture | |
0x200 | Void Elf - Entropic Embrace (dark purple) texture | |
0x400 | Night Elf - Black eyes (related to "Night Warrior" questline]) |