DB/CreatureDisplayInfo: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (typo) |
||
(22 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
__TOC__ | |||
This defines textures, scale, models and some other things that are used for showing creatures. | This defines textures, scale, models and some other things that are used for showing creatures. | ||
== | ==Classic== | ||
===0.5.3.3368=== | |||
====Struct==== | |||
struct CreatureDisplayInfoRec { | |||
uint32_t m_ID; | |||
uint32_t m_modelID; | |||
uint32_t m_soundID; | |||
uint32_t m_extendedDisplayInfoID; | |||
float m_creatureModelScale; | |||
uint32_t m_creatureModelAlpha; // if UNIT_FLAG_GHOST | UNIT_FLAG_SNEAK the unit is faded to 1/3 of this value | |||
{{Template:Type|stringref}} m_textureVariation[3]; | |||
uint32_t m_bloodID; | |||
}; | |||
===1.12.1.5875=== | |||
====Struct==== | |||
struct CreatureDisplayInfoRec { | |||
uint32_t m_ID; | |||
uint32_t m_modelID; | |||
uint32_t m_soundID; | |||
uint32_t m_extendedDisplayInfoID; | |||
float m_creatureModelScale; | |||
uint32_t m_creatureModelAlpha; | |||
{{Template:Type|stringref}} m_textureVariation[3]; | |||
uint32_t m_sizeClass; | |||
uint32_t m_bloodID; | |||
uint32_t m_NPCSoundID; | |||
}; | |||
==Wrath== | |||
===3.0.2.8905-3.3.5.12340=== | |||
====Table==== | |||
{| style="background:#FCFCFC; color:black" | {| style="background:#FCFCFC; color:black" | ||
|- | |- | ||
Line 9: | Line 40: | ||
! width="600" | Notes | ! width="600" | Notes | ||
|- | |- | ||
| 1 || ID || Integer || | | 1 || ID || Integer || 65536 is maximum value on WotLK TC2 for .morph command. For NPCs, higher IDs should be still fine. | ||
|- style="background:#F0F8FF;" | |- style="background:#F0F8FF;" | ||
| 2 || [[CreatureModelData.dbc|Model]] || iRefID || A model to be used. | | 2 || [[CreatureModelData.dbc|Model]] || iRefID || A model to be used. | ||
|- style="background:#F0F8FF;" | |- style="background:#F0F8FF;" | ||
| 3 || [[CreatureSoundData.dbc|Sound]] || iRefID || | | 3 || [[CreatureSoundData.dbc|Sound]] || iRefID || If 0 - CreatureModelData information is used. Otherwise, overrides generic model settings for this displayID. | ||
|- style="background:#F0F8FF;" | |- style="background:#F0F8FF;" | ||
| 4 || [[CreatureDisplayInfoExtra.dbc|ExtraDisplayInformation]] || iRefID || | | 4 || [[CreatureDisplayInfoExtra.dbc|ExtraDisplayInformation]] || iRefID || Applies only to NPCs with character model (hair/facial feature/... and equipment settings). Not used for creatures. | ||
|- | |- | ||
| 5 || Scale || Float || Default scale, | | 5 || Scale || Float || Default scale. Stacks (by multiplying) with other scale settings (in creature_template, applied auras...). | ||
|- | |- | ||
| 6 || Opacity || Integer || 0 (transparent) to 255 (opaque). | | 6 || Opacity || Integer || 0 (transparent) to 255 (opaque). | ||
|- | |- | ||
| 7 || | | 7 || Texture1 || String || Name of texture for 1st geoset with type 2 (see [[M2#Texture_Types|this]]). Texture must be in the same dir as M2 file of creature is. | ||
|- | |- | ||
| 8 || | | 8 || Texture2 || String || Name of texture for 2nd geoset with type 2 (see [[M2#Texture_Types|this]]). Texture must be in the same dir as M2 file of creature is. | ||
|- | |- | ||
| 9 || | | 9 || Texture3 || String || Name of texture for 3rd geoset with type 2 (see [[M2#Texture_Types|this]]). Texture must be in the same dir as M2 file of creature is. | ||
|- | |- | ||
| 10 || portraitTextureName || String || Holding an icon like INV_Misc_Food_59. Only on a few. | | 10 || portraitTextureName || String || Holding an icon like INV_Misc_Food_59. Only on a few. | ||
Line 31: | Line 62: | ||
| cata || sizeClass || Integer || | | cata || sizeClass || Integer || | ||
|- style="background:#F0F8FF;" | |- style="background:#F0F8FF;" | ||
| 11 || [[UnitBloodLevels.dbc|bloodLevel]] || iRefID || If 0, this is read from CreatureModelData. (CGUnit::RefreshDataPointers) | | 11 || [[UnitBloodLevels.dbc|bloodLevel]] || iRefID || If 0, this is read from CreatureModelData. (CGUnit::RefreshDataPointers) Seems to have no effect in game. | ||
|- style="background:#F0F8FF;" | |- style="background:#F0F8FF;" | ||
| 12 || [[UnitBlood.dbc|blood]] || iRefID || | | 12 || [[UnitBlood.dbc|blood]] || iRefID || Sets up color of blood. | ||
|- style="background:#F0F8FF;" | |- style="background:#F0F8FF;" | ||
| 13 || [[NPCSounds.dbc|NPCSounds]] || iRefID || Sounds used when interacting with the NPC. | | 13 || [[NPCSounds.dbc|NPCSounds]] || iRefID || Sounds used when interacting with the NPC (on-left-click said hello talk). | ||
|- style="background:#F0F8FF;" | |- style="background:#F0F8FF;" | ||
| 14 || [[ParticleColor.dbc|Particles]] || iRefID || Values are 0 and >281. Wherever they are used .. | | 14 || [[ParticleColor.dbc|Particles]] || iRefID || Values are 0 and >281. Wherever they are used .. | ||
|- style="background:#C1FFC1;" | |- style="background:#C1FFC1;" | ||
| 15 || [[M2 | | 15 || [[M2/.skin#Mesh_part_ID|creatureGeosetData]] || Integer || With this one, you can select a geoset out of the first 8 groups. 0x00200000 will select geoset 2 out of group 600 and therefore 602. | ||
|- style="background:#C1FFC1;" | |- style="background:#C1FFC1;" | ||
| 16 || [[ObjectEffectPackage.dbc|objectEffectPackageID]] || iRefID || Set for gyrocopters, catapults, rocketmounts and siegevehicles. (WotLK) | | 16 || [[ObjectEffectPackage.dbc|objectEffectPackageID]] || iRefID || Set for gyrocopters, catapults, rocketmounts and siegevehicles. (WotLK) | ||
|} | |} | ||
==6.0.1.18179== | |||
==Warlords== | |||
===6.0.1.18179=== | |||
====Struct==== | |||
struct CreatureDisplayInfoRec { | struct CreatureDisplayInfoRec { | ||
uint32_t m_ID; | uint32_t m_ID; | ||
{{Template:Type/foreign_key|table=CreatureModelData}} m_modelID; | |||
{{Template:Type/foreign_key|table=CreatureSoundData}} m_soundID; // if not found, resolve via {{Template:DBField|table=CreatureModelData|column=m_soundID}} | |||
{{Template:Type/foreign_key|table=CreatureDisplayInfoExtra}} m_extendedDisplayInfoID; | |||
float m_creatureModelScale; | float m_creatureModelScale; | ||
uint32_t m_creatureModelAlpha; | uint32_t m_creatureModelAlpha; | ||
stringref m_textureVariation[3]; | {{Template:Type|stringref}} m_textureVariation[3]; | ||
stringref m_portraitTextureName; | {{Template:Type|stringref}} m_portraitTextureName; | ||
uint32_t m_portraitCreatureDisplayInfoID; | uint32_t m_portraitCreatureDisplayInfoID; | ||
uint32_t m_sizeClass; | uint32_t m_sizeClass; | ||
Line 67: | Line 99: | ||
uint32_t m_stateSpellVisualKitID; | uint32_t m_stateSpellVisualKitID; | ||
}; | }; | ||
[[Category:DBC]][[Category:3.0.2.8905]][[Category: | ==BFA== | ||
===8.0.1.25902=== | |||
struct CreatureDisplayInfoRec { | |||
uint32_t m_ID; | |||
float m_creatureModelScale; | |||
uint16_t m_modelID; | |||
uint16_t m_NPCSoundID; | |||
uint8_t m_sizeClass; | |||
uint8_t m_flags; | |||
uint8_t m_gender; | |||
uint32_t m_extendedDisplayInfoID; | |||
int32_t m_portraitTextureName; | |||
uint8_t m_creatureModelAlpha; | |||
uint16_t m_soundID; | |||
float PlayerModelScale; | |||
int32_t m_portraitCreatureDisplayInfoID; | |||
uint8_t m_bloodID; | |||
uint16_t m_particleColorID; | |||
uint16_t m_objectEffectPackageID; | |||
uint16_t m_animReplacementSetID; | |||
uint8_t UnarmedWeaponSubclass; // added in build 20810 | |||
int32_t m_stateSpellVisualKitID; | |||
float InstanceOtherPlayerPetScale; // added in build 21134 | |||
int32_t MountSpellVisualKitID; // added in build 7.2.0.23436 | |||
int32_t Unk1; // values 789, 790, 843, added in 8.0.1 | |||
uint32_t m_textureVariation[3]; | |||
}; | |||
===8.0.1.26871=== | |||
"CreatureDisplayInfo": [ | |||
{ "data_type": "i", "field": "id" }, | |||
{ "data_type": "H", "field": "model_id" }, | |||
{ "data_type": "H", "field": "sound_id" }, | |||
{ "data_type": "B", "field": "size_class" }, | |||
{ "data_type": "f", "field": "creature_model_scale" }, | |||
{ "data_type": "B", "field": "creature_model_alpha" }, | |||
{ "data_type": "B", "field": "blood_id" }, | |||
{ "data_type": "i", "field": "extended_display_info_id" }, | |||
{ "data_type": "H", "field": "npc_sound_id" }, | |||
{ "data_type": "H", "field": "particle_color_id" }, | |||
{ "data_type": "H", "field": "portrait_creature_display_info_id" }, | |||
{ "data_type": "H", "field": "portrait_texture_file_data_id" }, | |||
{ "data_type": "H", "field": "object_effect_package_id" }, | |||
{ "data_type": "H", "field": "anim_replacement_set_id" }, | |||
{ "data_type": "B", "field": "flags" }, | |||
{ "data_type": "i", "field": "state_spell_visual_kit_id" }, | |||
{ "data_type": "f", "field": "player_model_scale" }, | |||
{ "data_type": "f", "field": "instance_other_player_pet_scale" }, | |||
{ "data_type": "B", "field": "unarmed_weapon_subclass" }, | |||
{ "data_type": "i", "field": "mount_spell_visual_kit_id" }, | |||
{ "data_type": "i", "field": "dissolve_effect_id" }, | |||
{ "data_type": "B", "field": "gender" }, | |||
{ "data_type": "i", "field": "unk_1" }, | |||
{ "data_type": "i", "field": "unk_2" }, | |||
{ "data_type": "i", "field": "texture_variation", "elements": 3 } | |||
], | |||
[[Category:DBC]] | |||
[[Category:DBC_Alpha]] | |||
[[Category:DBC_Vanilla]] | |||
[[Category:DBC_WotLK]][[Category:3.0.2.8905]][[Category:3.3.5.12340]] | |||
[[Category:DBC_WoD]][[Category:6.0.1.18179]] | [[Category:DBC_WoD]][[Category:6.0.1.18179]] |
Latest revision as of 08:39, 14 April 2019
This defines textures, scale, models and some other things that are used for showing creatures.
Classic
0.5.3.3368
Struct
struct CreatureDisplayInfoRec { uint32_t m_ID; uint32_t m_modelID; uint32_t m_soundID; uint32_t m_extendedDisplayInfoID; float m_creatureModelScale; uint32_t m_creatureModelAlpha; // if UNIT_FLAG_GHOST | UNIT_FLAG_SNEAK the unit is faded to 1/3 of this value stringrefⁱ m_textureVariation[3]; uint32_t m_bloodID; };
1.12.1.5875
Struct
struct CreatureDisplayInfoRec { uint32_t m_ID; uint32_t m_modelID; uint32_t m_soundID; uint32_t m_extendedDisplayInfoID; float m_creatureModelScale; uint32_t m_creatureModelAlpha; stringrefⁱ m_textureVariation[3]; uint32_t m_sizeClass; uint32_t m_bloodID; uint32_t m_NPCSoundID; };
Wrath
3.0.2.8905-3.3.5.12340
Table
Column | Field | Type | Notes |
---|---|---|---|
1 | ID | Integer | 65536 is maximum value on WotLK TC2 for .morph command. For NPCs, higher IDs should be still fine. |
2 | Model | iRefID | A model to be used. |
3 | Sound | iRefID | If 0 - CreatureModelData information is used. Otherwise, overrides generic model settings for this displayID. |
4 | ExtraDisplayInformation | iRefID | Applies only to NPCs with character model (hair/facial feature/... and equipment settings). Not used for creatures. |
5 | Scale | Float | Default scale. Stacks (by multiplying) with other scale settings (in creature_template, applied auras...). |
6 | Opacity | Integer | 0 (transparent) to 255 (opaque). |
7 | Texture1 | String | Name of texture for 1st geoset with type 2 (see this). Texture must be in the same dir as M2 file of creature is. |
8 | Texture2 | String | Name of texture for 2nd geoset with type 2 (see this). Texture must be in the same dir as M2 file of creature is. |
9 | Texture3 | String | Name of texture for 3rd geoset with type 2 (see this). Texture must be in the same dir as M2 file of creature is. |
10 | portraitTextureName | String | Holding an icon like INV_Misc_Food_59. Only on a few. |
cata | sizeClass | Integer | |
11 | bloodLevel | iRefID | If 0, this is read from CreatureModelData. (CGUnit::RefreshDataPointers) Seems to have no effect in game. |
12 | blood | iRefID | Sets up color of blood. |
13 | NPCSounds | iRefID | Sounds used when interacting with the NPC (on-left-click said hello talk). |
14 | Particles | iRefID | Values are 0 and >281. Wherever they are used .. |
15 | creatureGeosetData | Integer | With this one, you can select a geoset out of the first 8 groups. 0x00200000 will select geoset 2 out of group 600 and therefore 602. |
16 | objectEffectPackageID | iRefID | Set for gyrocopters, catapults, rocketmounts and siegevehicles. (WotLK) |
Warlords
6.0.1.18179
Struct
struct CreatureDisplayInfoRec { uint32_t m_ID; foreign_keyⁱ<uint32_t, &CreatureModelDataRec::m_ID> m_modelID; foreign_keyⁱ<uint32_t, &CreatureSoundDataRec::m_ID> m_soundID; // if not found, resolve via CreatureModelDataRec::m_soundID foreign_keyⁱ<uint32_t, &CreatureDisplayInfoExtraRec::m_ID> m_extendedDisplayInfoID; float m_creatureModelScale; uint32_t m_creatureModelAlpha; stringrefⁱ m_textureVariation[3]; stringrefⁱ m_portraitTextureName; uint32_t m_portraitCreatureDisplayInfoID; uint32_t m_sizeClass; uint32_t m_bloodID; uint32_t m_NPCSoundID; uint32_t m_particleColorID; uint32_t m_creatureGeosetData; uint32_t m_objectEffectPackageID; uint32_t m_animReplacementSetID; uint32_t m_flags; uint32_t m_gender; uint32_t m_stateSpellVisualKitID; };
BFA
8.0.1.25902
struct CreatureDisplayInfoRec { uint32_t m_ID; float m_creatureModelScale; uint16_t m_modelID; uint16_t m_NPCSoundID; uint8_t m_sizeClass; uint8_t m_flags; uint8_t m_gender; uint32_t m_extendedDisplayInfoID; int32_t m_portraitTextureName; uint8_t m_creatureModelAlpha; uint16_t m_soundID; float PlayerModelScale; int32_t m_portraitCreatureDisplayInfoID; uint8_t m_bloodID; uint16_t m_particleColorID; uint16_t m_objectEffectPackageID; uint16_t m_animReplacementSetID; uint8_t UnarmedWeaponSubclass; // added in build 20810 int32_t m_stateSpellVisualKitID; float InstanceOtherPlayerPetScale; // added in build 21134 int32_t MountSpellVisualKitID; // added in build 7.2.0.23436 int32_t Unk1; // values 789, 790, 843, added in 8.0.1 uint32_t m_textureVariation[3]; };
8.0.1.26871
"CreatureDisplayInfo": [ { "data_type": "i", "field": "id" }, { "data_type": "H", "field": "model_id" }, { "data_type": "H", "field": "sound_id" }, { "data_type": "B", "field": "size_class" }, { "data_type": "f", "field": "creature_model_scale" }, { "data_type": "B", "field": "creature_model_alpha" }, { "data_type": "B", "field": "blood_id" }, { "data_type": "i", "field": "extended_display_info_id" }, { "data_type": "H", "field": "npc_sound_id" }, { "data_type": "H", "field": "particle_color_id" }, { "data_type": "H", "field": "portrait_creature_display_info_id" }, { "data_type": "H", "field": "portrait_texture_file_data_id" }, { "data_type": "H", "field": "object_effect_package_id" }, { "data_type": "H", "field": "anim_replacement_set_id" }, { "data_type": "B", "field": "flags" }, { "data_type": "i", "field": "state_spell_visual_kit_id" }, { "data_type": "f", "field": "player_model_scale" }, { "data_type": "f", "field": "instance_other_player_pet_scale" }, { "data_type": "B", "field": "unarmed_weapon_subclass" }, { "data_type": "i", "field": "mount_spell_visual_kit_id" }, { "data_type": "i", "field": "dissolve_effect_id" }, { "data_type": "B", "field": "gender" }, { "data_type": "i", "field": "unk_1" }, { "data_type": "i", "field": "unk_2" }, { "data_type": "i", "field": "texture_variation", "elements": 3 } ],