charactermodel
| rows | named | verified | proof two | tested | |
|---|---|---|---|---|---|
| functions | 132 | 132 (100%) | 132 (100%) | 0 (0%) | 38 (28%) |
| globals | 53 | 53 (100%) | 52 (98%) | 0 (0%) | – |
| structs | 0 | – | – | – | – |
| fields | 0 | – | – | – | – |
| all | 185 | 185 (100%) | 184 (99%) | 0 (0%) | 38 (28%) |
Docs
charactermodel: component
The component object, its pool, how one is built, cloned and deleted, how its section textures load, and the driver that
composites it. The driver runs for every visible component each frame it is asked to; customization, equipment and
geosets change the state it reads, and composite is what its handlers blit.
charactermodel: composite
The body texture of a character is a 256 × 256 RGB565 texture cut into ten fixed tiles. Each tile has a handler that blits the skin and then each equipment or customization cell over it. This doc covers the tile table, the
handlers, the two blit helpers and the three pixel kernels. The cells come from customization and equipment, and component#update-driver calls the handlers and uploads the tiles.
charactermodel: customization
The appearance of a character comes from CharSections rows grouped by race, sex and section, and from two smaller tables of geoset
numbers. This doc covers the grid built from the rows at start-up, its lookup, the counts the character-create screen reads, and the setters that turn an
appearance index into cells and geosets. The cells are blitted by composite; the geosets are shown by geosets.
charactermodel: equipment
A component keeps the display record of each worn item by body slot, turns armor records into texture cells and geoset values, and hangs item models (helm, shoulders, quiver, weapons,
shield) at the model's attachment points. This doc covers the entry points, the body slot table and the layer choosers that fill the cells, the held items, the item model loads, the hand grips and the guild tabard. The ten
groups and their cells are blitted by composite; the geosets the records select are geosets.
charactermodel: geosets
A character model carries every body part and garment variant as a geoset: a submesh with a numeric id, grouped by hundreds. The component shows the ones its appearance and items select by switching ranges of ids on the model. This doc covers the geoset bases, the pass that switches them, and the helm's mask that replaces some bases.
charactermodel: overview
The character compositor of the client. A component holds one character model's appearance (race, sex, skin, face, hair colour, hair style and facial hair), the display records of its equipped items, and the 256×256 body texture composited from CharSections and item textures. The player, other players, corpses, the character-select list, the character-create screen and the paperdoll all build one. The component picks the geosets that show, binds the composite and the creature skins to the model's replaceable textures, and hangs item models at the model's attachments.
The system owns one object file, CharacterComponent.cpp. The docs split by topic: component is the object, its pool and its update
driver, customization the CharSections grid and the appearance setters, composite the tile table and the blit kernels,
geosets the visible geoset set, and equipment the item records, the held items, the hand grips and the guild tabard. The
model calls, texture loads and tables of DBC records are the callees' (models, gx, dbc).
Closure
46 roots. A walk of direct calls and jumps from them reaches 94 of the 132 functions the system owns, and stops at 45 functions of other systems. Vtable slots and stored addresses are not followed, so a function reached only that way is not counted.
Roots
- InitCharInfinityThunk charactermodel
- InitCharTwoPiThunk charactermodel
- InitCharInvTwoPiThunk charactermodel
- InitCharHundredThunk charactermodel
- InitCharTwentiethThunk charactermodel
- InitCompositeTileTable charactermodel
- InitCharTextureStatusThunk charactermodel
- InitPendingListThunk charactermodel
- ResetCharLoadCounters charactermodel
- PumpPendingComponents charactermodel
- NewCharacterComponent charactermodel
- DeleteCharacterComponent charactermodel
- InitCharacterComponents charactermodel
- ShutdownCharacterComponents charactermodel
- InitCharacterComponent charactermodel
- CloneCharacterComponent charactermodel
- UpdateCharacterComponent charactermodel
- QueueCharacterComponent charactermodel
- SetCharacterHairColor charactermodel
- SetCharacterHairStyle charactermodel
- SetCharacterFace charactermodel
- SetCharacterFacialHair charactermodel
- SetCharacterSkinColor charactermodel
- UnequipCharacterSlot charactermodel
- EquipBodySlotById charactermodel
- UnequipEquipmentSlot charactermodel
- SetCharacterComponentItem charactermodel
- EquipCharacterDisplay charactermodel
- CloseHand charactermodel
- OpenHand charactermodel
- AttachItemVisuals charactermodel
- ApplyCreatureDisplay charactermodel
- CreateLooseItemModel charactermodel
- GetSheathAttachment charactermodel
- AttachItemModel charactermodel
- DetachAllItemModels charactermodel
- DetachHeldItemSlot charactermodel
- CountHairStyles charactermodel
- CountHairColors charactermodel
- CountSkinColors charactermodel
- CountFaces charactermodel
- CountFacialHairStyles charactermodel
- FormatEmblemBackgroundPath charactermodel
- FormatEmblemPath charactermodel
- SetCharacterComponentEmblem charactermodel
- ClearTabardPreview charactermodel
Boundary
- 0x404130 client
- _atexit crt
- CStatus::~CStatus client
- HandleClose base
- DebugPrintStub unassigned
- TextureCreateNamedBlank gx
- TextureCreate gx
- GetTextureDeviceObject gx
- TextureAllocMips gx
- TextureFreeMips gx
- ObjectAllocAddHeap objectalloc
- ObjectAllocNew objectalloc
- ObjectFree objectalloc
- 0x47ae00 gx
- TextureCacheGet gx
- TextureCacheAddRef gx
- TextureCacheRelease gx
- TextureCacheGetInfo gx
- TextureCacheResetCounter gx
- 0x47b200 gx
- CGxTexFlags::CGxTexFlags gx
- GxTexUpdateRect gx
- GxTexSetCallback gx
- SMemAlloc storm
- SMemFree storm
- SFileExists storm
- SStrChrRCopy storm
- SStrCopy storm
- SStrPrintf storm
- CreateModelFromPath models
- HandleClose2 models
- CM2Model::IsLoaded models
- CM2Model::GetScene models
- CM2Model::SetAlpha models
- CM2Model::SetDiffuseColor models
- CM2Model::SetEmissiveColor models
- CM2Model::SetReplaceableTexture models
- CM2Model::SetGeosetRange models
- CM2Model::BuildBatches models
- CM2Model::PlayAnimation models
- CM2Model::HasAttachment models
- CM2Model::Attach models
- CM2Model::DetachChildren models
- CM2Model::DetachAt models
- strrchr crt
Functions 132
| address | name | class | confidence | test | closure |
|---|---|---|---|---|---|
0x475b70 | InitCharInfinityThunk | orchestration | verified, proof one | ✓ | |
0x475b80 | InitCharInfinity | orchestration | verified, proof one | ✓ | |
0x475b90 | InitCharTwoPiThunk | orchestration | verified, proof one | ✓ | |
0x475ba0 | InitCharTwoPi | primitive | verified, proof one | ✓ | |
0x475bb0 | InitCharInvTwoPiThunk | orchestration | verified, proof one | ✓ | |
0x475bc0 | InitCharInvTwoPi | primitive | verified, proof one | ✓ | |
0x475be0 | InitCharHundredThunk | orchestration | verified, proof one | ✓ | |
0x475bf0 | InitCharHundred | primitive | verified, proof one | ✓ | |
0x475c10 | InitCharTwentiethThunk | orchestration | verified, proof one | ✓ | |
0x475c20 | InitCharTwentieth | primitive | verified, proof one | ✓ | |
0x475c40 | InitCompositeTileTable | orchestration | verified, proof one | ✓ | |
0x475c50 | FillCompositeTiles | primitive | verified, proof one | ✓ | |
0x475d90 | RegisterCompositeTileExit | orchestration | verified, proof one | ✓ | |
0x475da0 | CompositeTileExit | orchestration | verified, proof one | ||
0x475db0 | InitCharTextureStatusThunk | orchestration | verified, proof one | ✓ | |
0x475dc0 | InitCharTextureStatus | primitive | verified, proof one | ✓ | |
0x475e00 | RegisterCharTextureStatusExit | orchestration | verified, proof one | ✓ | |
0x475e10 | CharTextureStatusExit | orchestration | verified, proof one | ||
0x475e20 | InitPendingListThunk | orchestration | verified, proof one | ✓ | |
0x475e30 | InitPendingList | primitive | verified, proof one | ✓ | |
0x475e60 | RegisterPendingListExit | orchestration | verified, proof one | ✓ | |
0x475e70 | PendingListExit | primitive | verified, proof one | ||
0x475f20 | ResetCharLoadCounters | orchestration | verified, proof one | ✓ | |
0x475f30 | PumpPendingComponents | orchestration | verified, proof one | ✓ | |
0x475fb0 | NewCharacterComponent | orchestration | verified, proof one | ✓ | |
0x476000 | DeleteCharacterComponent | orchestration | verified, proof one | ✓ | |
0x476020 | InitCharacterComponents | primitive | verified, proof one | ✓ | |
0x4766c0 | ClearGridEntry | orchestration | verified, proof one | ||
0x4766d0 | CharPathPrefixStub | orchestration | verified, proof one | ✓ | |
0x4766e0 | ShutdownCharacterComponents | host | verified, proof one | ✓ | |
0x476800 | CharShutdownStub | orchestration | verified, proof one | ✓ | |
0x476810 | ConstructCharacterComponent | orchestration | verified, proof one | ✓ | ✓ |
0x476960 | ConstructCharacterComponentFrom | unreached | verified, proof one | ||
0x476ac0 | DestroyCharacterComponent | orchestration | verified, proof one | ✓ | |
0x476b90 | InitCharacterComponent | primitive | verified, proof one | ✓ | |
0x476cb0 | CloneCharacterComponent | orchestration | verified, proof one | ✓ | |
0x476e20 | BuildSectionTexture | primitive | verified, proof one | ✓ | ✓ |
0x476eb0 | LoadSkinSections | orchestration | verified, proof one | ✓ | |
0x476f30 | LoadEquipmentSections | orchestration | verified, proof one | ✓ | |
0x477070 | BlitSkinTile | orchestration | verified, proof one | ||
0x4770f0 | BlitOverlayTile | orchestration | verified, proof one | ||
0x477170 | BlitArmUpperGroup | orchestration | verified, proof one | ||
0x4771b0 | BlitArmLowerGroup | orchestration | verified, proof one | ||
0x4771f0 | BlitHandGroup | orchestration | verified, proof one | ||
0x477210 | BlitFaceUpperGroup | orchestration | verified, proof one | ✓ | |
0x477280 | BlitFaceLowerGroup | orchestration | verified, proof one | ✓ | |
0x4772f0 | BlitTorsoUpperGroup | orchestration | verified, proof one | ||
0x477360 | BlitTorsoLowerGroup | orchestration | verified, proof one | ||
0x4773a0 | BlitLegUpperGroup | orchestration | verified, proof one | ||
0x477400 | BlitLegLowerGroup | orchestration | verified, proof one | ||
0x477440 | BlitFootGroup | orchestration | verified, proof one | ||
0x477460 | BlitByFormat | orchestration | verified, proof one | ||
0x4774f0 | HasGeosetGroup | primitive | verified, proof one | ✓ | ✓ |
0x477520 | SelectGeosets | primitive | verified, proof one | ✓ | |
0x477860 | UpdateCharacterComponent | orchestration | verified, proof one | ✓ | |
0x477a70 | CompositeTargetCallback | orchestration | verified, proof one | ✓ | |
0x477ab0 | QueueCharacterComponent | orchestration | verified, proof one | ✓ | |
0x477b50 | RecompositeAll | orchestration | verified, proof one | ||
0x477ba0 | ReleaseEquipmentCells | orchestration | verified, proof one | ✓ | |
0x477c20 | HasCustomizationRow | primitive | verified, proof one | ✓ | ✓ |
0x477c80 | BlitReplace | primitive | verified, proof one | ✓ | |
0x477db0 | BlitKeyed | primitive | verified, proof one | ✓ | |
0x477f20 | BlitBlended | primitive | verified, proof one | ✓ | |
0x478160 | ApplyBodySkin | orchestration | verified, proof one | ✓ | ✓ |
0x478220 | BindHairTexture | orchestration | verified, proof one | ✓ | ✓ |
0x4782e0 | MakeSectionCell | orchestration | verified, proof one | ✓ | ✓ |
0x4783f0 | SetCharacterHairColor | orchestration | verified, proof one | ✓ | |
0x4784c0 | SetCharacterHairStyle | orchestration | verified, proof one | ✓ | |
0x478540 | LookupHairGeoset | primitive | verified, proof one | ✓ | ✓ |
0x4785b0 | SetCharacterFace | orchestration | verified, proof one | ✓ | |
0x478660 | SetCharacterFacialHair | orchestration | verified, proof one | ✓ | ✓ |
0x478740 | FindFacialHairRow | primitive | verified, proof one | ✓ | ✓ |
0x478790 | SetCharacterSkinColor | orchestration | verified, proof one | ✓ | |
0x478900 | StoreEquipmentRecord | primitive | verified, proof one | ✓ | |
0x478960 | UnequipCharacterSlot | orchestration | verified, proof one | ✓ | ✓ |
0x478aa0 | EquipBodySlotById | orchestration | verified, proof one | ✓ | |
0x478ad0 | EquipBodySlot | orchestration | verified, proof one | ✓ | ✓ |
0x478bd0 | UnequipEquipmentSlot | orchestration | verified, proof one | ✓ | ✓ |
0x478cb0 | SetCharacterComponentItem | orchestration | verified, proof one | ✓ | ✓ |
0x478dc0 | GetEquippedDisplayId | unreached | verified, proof one | ||
0x478f20 | UnequipByInventoryType | orchestration | verified, proof one | ✓ | ✓ |
0x479010 | EquipCharacterDisplay | orchestration | verified, proof one | ✓ | ✓ |
0x479180 | ClearEquipmentCell | primitive | verified, proof one | ✓ | |
0x4791c0 | ChooseArmUpperCell | primitive | verified, proof one | ||
0x479210 | ChooseArmLowerCell | primitive | verified, proof one | ||
0x479290 | ChooseHandCell | primitive | verified, proof one | ||
0x4792e0 | UnusedGroup8Chooser | orchestration | verified, proof one | ||
0x4792f0 | UnusedGroup9Chooser | orchestration | verified, proof one | ||
0x479300 | ChooseTorsoUpperCell | primitive | verified, proof one | ||
0x479350 | ChooseTorsoLowerCell | primitive | verified, proof one | ||
0x4793a0 | ChooseLegUpperCell | primitive | verified, proof one | ||
0x4793f0 | ChooseLegLowerCell | primitive | verified, proof one | ✓ | |
0x479520 | ChooseFootCell | primitive | verified, proof one | ||
0x479580 | LoadBakedSkin | orchestration | verified, proof one | ✓ | |
0x479660 | CloseHand | orchestration | verified, proof one | ✓ | ✓ |
0x4796b0 | OpenHand | orchestration | verified, proof one | ✓ | ✓ |
0x479700 | AttachItemVisuals | orchestration | verified, proof one | ✓ | |
0x4797b0 | ApplyCreatureDisplay | orchestration | verified, proof one | ✓ | |
0x4798c0 | AttachItemModelFile | orchestration | verified, proof one | ✓ | |
0x4799a0 | ApplyHelmetModel | primitive | verified, proof one | ✓ | ✓ |
0x479b40 | ApplyCloakTexture | orchestration | verified, proof one | ✓ | |
0x479c50 | AttachQuiverModel | orchestration | verified, proof one | ✓ | |
0x479d10 | AttachShoulderModels | orchestration | verified, proof one | ✓ | |
0x479e80 | AttachMainHandItem | orchestration | verified, proof one | ✓ | |
0x479ec0 | AttachOffHandWeapon | orchestration | verified, proof one | ✓ | |
0x479f00 | AttachShield | orchestration | verified, proof one | ✓ | |
0x479f40 | CreateLooseItemModel | orchestration | verified, proof one | ✓ | ✓ |
0x47a070 | GetSheathAttachment | primitive | verified, proof one | ✓ | ✓ |
0x47a0c0 | AttachItemModel | orchestration | verified, proof one | ✓ | ✓ |
0x47a230 | DetachAllItemModels | orchestration | verified, proof one | ✓ | |
0x47a310 | DetachHeldItemSlot | orchestration | verified, proof one | ✓ | ✓ |
0x47a380 | DetachAttachment | orchestration | verified, proof one | ✓ | ✓ |
0x47a3e0 | CountHairStyles | primitive | verified, proof one | ✓ | ✓ |
0x47a400 | CountHairColors | primitive | verified, proof one | ✓ | ✓ |
0x47a440 | CountSkinColors | primitive | verified, proof one | ✓ | ✓ |
0x47a470 | CountSkinRows | unreached | verified, proof one | ||
0x47a4a0 | CountFaces | primitive | verified, proof one | ✓ | ✓ |
0x47a4c0 | CountFacialHairStyles | primitive | verified, proof one | ✓ | ✓ |
0x47a4d0 | FormatEmblemBackgroundPath | orchestration | verified, proof one | ✓ | |
0x47a520 | FormatEmblemPath | orchestration | verified, proof one | ✓ | |
0x47a570 | FormatEmblemBorderPath | orchestration | verified, proof one | ✓ | |
0x47a5c0 | ClearEmblemCells | primitive | verified, proof one | ✓ | |
0x47a610 | SetCharacterComponentEmblem | orchestration | verified, proof one | ✓ | |
0x47a860 | ClearTabardPreview | orchestration | verified, proof one | ✓ | |
0x47a880 | HideGeosetRange | orchestration | verified, proof one | ✓ | |
0x47a8a0 | ShowGeoset | orchestration | verified, proof one | ✓ | |
0x47a8c0 | ShowGeosetBase | unreached | verified, proof one | ||
0x47a8e0 | CommitGeosets | orchestration | verified, proof one | ✓ | |
0x47a900 | ClearSkinRow | orchestration | verified, proof one | ✓ | |
0x47a920 | ReleaseSkinRow | orchestration | verified, proof one | ✓ | |
0x47a950 | ClearEquipmentRow | orchestration | verified, proof one | ✓ | |
0x47a970 | ReleaseEquipmentRow | orchestration | verified, proof one | ✓ |
Globals 53
| address | name | type | confidence |
|---|---|---|---|
0x478c68 | s_unequipSlotJumps | void *[12] | verified, proof one |
0x478c98 | s_unequipSlotArms | const uint8_t[19] | verified, proof one |
0x478d74 | s_equipSlotJumps | void *[12] | verified, proof one |
0x478da4 | s_equipSlotArms | const uint8_t[19] | verified, proof one |
0x478ec8 | s_displayIdJumps | void *[15] | verified, proof one |
0x478f04 | s_displayIdArms | const uint8_t[27] | verified, proof one |
0x478fb8 | s_unequipTypeJumps | void *[13] | verified, proof one |
0x478fec | s_unequipTypeArms | const uint8_t[25] | verified, proof one |
0x47911c | s_equipTypeJumps | void *[15] | verified, proof one |
0x479158 | s_equipTypeArms | const uint8_t[27] | verified, proof one |
0x47a0a8 | s_sheathAttachJumps | void *[5] | verified, proof one |
0x803bf8 | s_bodySlotColumns | const int32_t[120] | verified, proof one |
0x82e424 | s_textPercentSPercentS | const char[5] | verified, proof one |
0x838a94 | s_sectionDirNames | const char *[8] | verified, proof one |
0x838ab4 | s_sexLetters | const char *[3] | verified, proof one |
0x838ae4 | s_coverageMasks | const uint8_t[4] | verified, proof one |
0x838ae8 | s_coverageShifts | const uint32_t[4] | verified, proof one |
0x838af8 | s_blendWeights | const uint32_t[4] | verified, proof one |
0x838be4 | s_textCCharacterComponent | const char[20] | verified, proof one |
0x838c3c | s_textItemTextureComponentsFormat | const char[36] | verified, proof one |
0x838cbc | s_textPercentSPercentSBlp | const char[9] | verified, proof one |
0x838cc8 | s_textHelmModelFormat | const char[14] | verified, proof one |
0x838cd8 | s_headModelDir | const char[28] | verified, proof one |
0x838cf4 | s_capeModelDir | const char[28] | verified, proof one |
0x838d30 | s_shoulderModelDir | const char[32] | verified, proof one |
0x838d8c | s_shieldModelDir | const char[30] | verified, proof one |
0x838dac | s_textTexturesGuildEmblemsBackground02dTLU | const char[43] | verified, proof one |
0x838dd8 | s_textTexturesGuildEmblemsBackground02dTUU | char[43] | inferred |
0x838e04 | s_textTexturesGuildEmblemsEmblem02d02dTLU | const char[44] | verified, proof one |
0x838e30 | s_textTexturesGuildEmblemsEmblem02d02dTUU | const char[44] | verified, proof one |
0x838e5c | s_textTexturesGuildEmblemsBorder02d02dTLU | const char[44] | verified, proof one |
0x838e88 | s_textTexturesGuildEmblemsBorder02d02dTUU | const char[44] | verified, proof one |
0xb422d0 | s_charHundred | float | verified, proof one |
0xb422d4 | s_charTwentieth | float | verified, proof one |
0xb422d8 | s_compositeMips | void ** | verified, proof one |
0xb422dc | s_charInfinity | float | verified, proof one |
0xb422e0 | s_pendingList | uint32_t[3] | verified, proof one |
0xb422ec | s_charInvTwoPi | float | verified, proof one |
0xb422f0 | s_modelPathCursor | char * | verified, proof one |
0xb422f4 | s_groupHandlers | void *[10] | verified, proof one |
0xb4231c | s_customizationGrid | void * | verified, proof one |
0xb42424 | s_groupChoosers | void *[10] | verified, proof one |
0xb4244c | s_facialHairCounts | uint32_t * | verified, proof one |
0xb42450 | s_compositeTiles | int32_t[40] | verified, proof one |
0xb424f0 | s_charTextureStatus | uint8_t[16] | verified, proof one |
0xb42504 | s_charTwoPi | float | verified, proof one |
0xb42508 | s_texturePathCursor | char * | verified, proof one |
0xb4250c | s_customizationGroupCount | uint32_t | verified, proof one |
0xb42510 | s_modelPathBuffer | char[264] | verified, proof one |
0xb42618 | s_texturePathBuffer | char[260] | verified, proof one |
0xb4271c | s_compositeCount | uint32_t | verified, proof one |
0xb42720 | s_componentPool | void * | verified, proof one |
0xb42724 | s_compositing | uint8_t | verified, proof one |