benilla-re systems structs docs

charactermodel

rowsnamedverifiedproof twotested
functions132132 (100%)132 (100%)0 (0%)38 (28%)
globals5353 (100%)52 (98%)0 (0%)–
structs0––––
fields0––––
all185185 (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

Boundary

Functions 132

addressnameclassconfidencetestclosure
0x475b70InitCharInfinityThunkorchestrationverified, proof one✓
0x475b80InitCharInfinityorchestrationverified, proof one✓
0x475b90InitCharTwoPiThunkorchestrationverified, proof one✓
0x475ba0InitCharTwoPiprimitiveverified, proof one✓
0x475bb0InitCharInvTwoPiThunkorchestrationverified, proof one✓
0x475bc0InitCharInvTwoPiprimitiveverified, proof one✓
0x475be0InitCharHundredThunkorchestrationverified, proof one✓
0x475bf0InitCharHundredprimitiveverified, proof one✓
0x475c10InitCharTwentiethThunkorchestrationverified, proof one✓
0x475c20InitCharTwentiethprimitiveverified, proof one✓
0x475c40InitCompositeTileTableorchestrationverified, proof one✓
0x475c50FillCompositeTilesprimitiveverified, proof one✓
0x475d90RegisterCompositeTileExitorchestrationverified, proof one✓
0x475da0CompositeTileExitorchestrationverified, proof one
0x475db0InitCharTextureStatusThunkorchestrationverified, proof one✓
0x475dc0InitCharTextureStatusprimitiveverified, proof one✓
0x475e00RegisterCharTextureStatusExitorchestrationverified, proof one✓
0x475e10CharTextureStatusExitorchestrationverified, proof one
0x475e20InitPendingListThunkorchestrationverified, proof one✓
0x475e30InitPendingListprimitiveverified, proof one✓
0x475e60RegisterPendingListExitorchestrationverified, proof one✓
0x475e70PendingListExitprimitiveverified, proof one
0x475f20ResetCharLoadCountersorchestrationverified, proof one✓
0x475f30PumpPendingComponentsorchestrationverified, proof one✓
0x475fb0NewCharacterComponentorchestrationverified, proof one✓
0x476000DeleteCharacterComponentorchestrationverified, proof one✓
0x476020InitCharacterComponentsprimitiveverified, proof one✓
0x4766c0ClearGridEntryorchestrationverified, proof one
0x4766d0CharPathPrefixStuborchestrationverified, proof one✓
0x4766e0ShutdownCharacterComponentshostverified, proof one✓
0x476800CharShutdownStuborchestrationverified, proof one✓
0x476810ConstructCharacterComponentorchestrationverified, proof one✓✓
0x476960ConstructCharacterComponentFromunreachedverified, proof one
0x476ac0DestroyCharacterComponentorchestrationverified, proof one✓
0x476b90InitCharacterComponentprimitiveverified, proof one✓
0x476cb0CloneCharacterComponentorchestrationverified, proof one✓
0x476e20BuildSectionTextureprimitiveverified, proof one✓✓
0x476eb0LoadSkinSectionsorchestrationverified, proof one✓
0x476f30LoadEquipmentSectionsorchestrationverified, proof one✓
0x477070BlitSkinTileorchestrationverified, proof one
0x4770f0BlitOverlayTileorchestrationverified, proof one
0x477170BlitArmUpperGrouporchestrationverified, proof one
0x4771b0BlitArmLowerGrouporchestrationverified, proof one
0x4771f0BlitHandGrouporchestrationverified, proof one
0x477210BlitFaceUpperGrouporchestrationverified, proof one✓
0x477280BlitFaceLowerGrouporchestrationverified, proof one✓
0x4772f0BlitTorsoUpperGrouporchestrationverified, proof one
0x477360BlitTorsoLowerGrouporchestrationverified, proof one
0x4773a0BlitLegUpperGrouporchestrationverified, proof one
0x477400BlitLegLowerGrouporchestrationverified, proof one
0x477440BlitFootGrouporchestrationverified, proof one
0x477460BlitByFormatorchestrationverified, proof one
0x4774f0HasGeosetGroupprimitiveverified, proof one✓✓
0x477520SelectGeosetsprimitiveverified, proof one✓
0x477860UpdateCharacterComponentorchestrationverified, proof one✓
0x477a70CompositeTargetCallbackorchestrationverified, proof one✓
0x477ab0QueueCharacterComponentorchestrationverified, proof one✓
0x477b50RecompositeAllorchestrationverified, proof one
0x477ba0ReleaseEquipmentCellsorchestrationverified, proof one✓
0x477c20HasCustomizationRowprimitiveverified, proof one✓✓
0x477c80BlitReplaceprimitiveverified, proof one✓
0x477db0BlitKeyedprimitiveverified, proof one✓
0x477f20BlitBlendedprimitiveverified, proof one✓
0x478160ApplyBodySkinorchestrationverified, proof one✓✓
0x478220BindHairTextureorchestrationverified, proof one✓✓
0x4782e0MakeSectionCellorchestrationverified, proof one✓✓
0x4783f0SetCharacterHairColororchestrationverified, proof one✓
0x4784c0SetCharacterHairStyleorchestrationverified, proof one✓
0x478540LookupHairGeosetprimitiveverified, proof one✓✓
0x4785b0SetCharacterFaceorchestrationverified, proof one✓
0x478660SetCharacterFacialHairorchestrationverified, proof one✓✓
0x478740FindFacialHairRowprimitiveverified, proof one✓✓
0x478790SetCharacterSkinColororchestrationverified, proof one✓
0x478900StoreEquipmentRecordprimitiveverified, proof one✓
0x478960UnequipCharacterSlotorchestrationverified, proof one✓✓
0x478aa0EquipBodySlotByIdorchestrationverified, proof one✓
0x478ad0EquipBodySlotorchestrationverified, proof one✓✓
0x478bd0UnequipEquipmentSlotorchestrationverified, proof one✓✓
0x478cb0SetCharacterComponentItemorchestrationverified, proof one✓✓
0x478dc0GetEquippedDisplayIdunreachedverified, proof one
0x478f20UnequipByInventoryTypeorchestrationverified, proof one✓✓
0x479010EquipCharacterDisplayorchestrationverified, proof one✓✓
0x479180ClearEquipmentCellprimitiveverified, proof one✓
0x4791c0ChooseArmUpperCellprimitiveverified, proof one
0x479210ChooseArmLowerCellprimitiveverified, proof one
0x479290ChooseHandCellprimitiveverified, proof one
0x4792e0UnusedGroup8Chooserorchestrationverified, proof one
0x4792f0UnusedGroup9Chooserorchestrationverified, proof one
0x479300ChooseTorsoUpperCellprimitiveverified, proof one
0x479350ChooseTorsoLowerCellprimitiveverified, proof one
0x4793a0ChooseLegUpperCellprimitiveverified, proof one
0x4793f0ChooseLegLowerCellprimitiveverified, proof one✓
0x479520ChooseFootCellprimitiveverified, proof one
0x479580LoadBakedSkinorchestrationverified, proof one✓
0x479660CloseHandorchestrationverified, proof one✓✓
0x4796b0OpenHandorchestrationverified, proof one✓✓
0x479700AttachItemVisualsorchestrationverified, proof one✓
0x4797b0ApplyCreatureDisplayorchestrationverified, proof one✓
0x4798c0AttachItemModelFileorchestrationverified, proof one✓
0x4799a0ApplyHelmetModelprimitiveverified, proof one✓✓
0x479b40ApplyCloakTextureorchestrationverified, proof one✓
0x479c50AttachQuiverModelorchestrationverified, proof one✓
0x479d10AttachShoulderModelsorchestrationverified, proof one✓
0x479e80AttachMainHandItemorchestrationverified, proof one✓
0x479ec0AttachOffHandWeaponorchestrationverified, proof one✓
0x479f00AttachShieldorchestrationverified, proof one✓
0x479f40CreateLooseItemModelorchestrationverified, proof one✓✓
0x47a070GetSheathAttachmentprimitiveverified, proof one✓✓
0x47a0c0AttachItemModelorchestrationverified, proof one✓✓
0x47a230DetachAllItemModelsorchestrationverified, proof one✓
0x47a310DetachHeldItemSlotorchestrationverified, proof one✓✓
0x47a380DetachAttachmentorchestrationverified, proof one✓✓
0x47a3e0CountHairStylesprimitiveverified, proof one✓✓
0x47a400CountHairColorsprimitiveverified, proof one✓✓
0x47a440CountSkinColorsprimitiveverified, proof one✓✓
0x47a470CountSkinRowsunreachedverified, proof one
0x47a4a0CountFacesprimitiveverified, proof one✓✓
0x47a4c0CountFacialHairStylesprimitiveverified, proof one✓✓
0x47a4d0FormatEmblemBackgroundPathorchestrationverified, proof one✓
0x47a520FormatEmblemPathorchestrationverified, proof one✓
0x47a570FormatEmblemBorderPathorchestrationverified, proof one✓
0x47a5c0ClearEmblemCellsprimitiveverified, proof one✓
0x47a610SetCharacterComponentEmblemorchestrationverified, proof one✓
0x47a860ClearTabardPrevieworchestrationverified, proof one✓
0x47a880HideGeosetRangeorchestrationverified, proof one✓
0x47a8a0ShowGeosetorchestrationverified, proof one✓
0x47a8c0ShowGeosetBaseunreachedverified, proof one
0x47a8e0CommitGeosetsorchestrationverified, proof one✓
0x47a900ClearSkinRoworchestrationverified, proof one✓
0x47a920ReleaseSkinRoworchestrationverified, proof one✓
0x47a950ClearEquipmentRoworchestrationverified, proof one✓
0x47a970ReleaseEquipmentRoworchestrationverified, proof one✓

Globals 53

addressnametypeconfidence
0x478c68s_unequipSlotJumpsvoid *[12]verified, proof one
0x478c98s_unequipSlotArmsconst uint8_t[19]verified, proof one
0x478d74s_equipSlotJumpsvoid *[12]verified, proof one
0x478da4s_equipSlotArmsconst uint8_t[19]verified, proof one
0x478ec8s_displayIdJumpsvoid *[15]verified, proof one
0x478f04s_displayIdArmsconst uint8_t[27]verified, proof one
0x478fb8s_unequipTypeJumpsvoid *[13]verified, proof one
0x478fecs_unequipTypeArmsconst uint8_t[25]verified, proof one
0x47911cs_equipTypeJumpsvoid *[15]verified, proof one
0x479158s_equipTypeArmsconst uint8_t[27]verified, proof one
0x47a0a8s_sheathAttachJumpsvoid *[5]verified, proof one
0x803bf8s_bodySlotColumnsconst int32_t[120]verified, proof one
0x82e424s_textPercentSPercentSconst char[5]verified, proof one
0x838a94s_sectionDirNamesconst char *[8]verified, proof one
0x838ab4s_sexLettersconst char *[3]verified, proof one
0x838ae4s_coverageMasksconst uint8_t[4]verified, proof one
0x838ae8s_coverageShiftsconst uint32_t[4]verified, proof one
0x838af8s_blendWeightsconst uint32_t[4]verified, proof one
0x838be4s_textCCharacterComponentconst char[20]verified, proof one
0x838c3cs_textItemTextureComponentsFormatconst char[36]verified, proof one
0x838cbcs_textPercentSPercentSBlpconst char[9]verified, proof one
0x838cc8s_textHelmModelFormatconst char[14]verified, proof one
0x838cd8s_headModelDirconst char[28]verified, proof one
0x838cf4s_capeModelDirconst char[28]verified, proof one
0x838d30s_shoulderModelDirconst char[32]verified, proof one
0x838d8cs_shieldModelDirconst char[30]verified, proof one
0x838dacs_textTexturesGuildEmblemsBackground02dTLUconst char[43]verified, proof one
0x838dd8s_textTexturesGuildEmblemsBackground02dTUUchar[43]inferred
0x838e04s_textTexturesGuildEmblemsEmblem02d02dTLUconst char[44]verified, proof one
0x838e30s_textTexturesGuildEmblemsEmblem02d02dTUUconst char[44]verified, proof one
0x838e5cs_textTexturesGuildEmblemsBorder02d02dTLUconst char[44]verified, proof one
0x838e88s_textTexturesGuildEmblemsBorder02d02dTUUconst char[44]verified, proof one
0xb422d0s_charHundredfloatverified, proof one
0xb422d4s_charTwentiethfloatverified, proof one
0xb422d8s_compositeMipsvoid **verified, proof one
0xb422dcs_charInfinityfloatverified, proof one
0xb422e0s_pendingListuint32_t[3]verified, proof one
0xb422ecs_charInvTwoPifloatverified, proof one
0xb422f0s_modelPathCursorchar *verified, proof one
0xb422f4s_groupHandlersvoid *[10]verified, proof one
0xb4231cs_customizationGridvoid *verified, proof one
0xb42424s_groupChoosersvoid *[10]verified, proof one
0xb4244cs_facialHairCountsuint32_t *verified, proof one
0xb42450s_compositeTilesint32_t[40]verified, proof one
0xb424f0s_charTextureStatusuint8_t[16]verified, proof one
0xb42504s_charTwoPifloatverified, proof one
0xb42508s_texturePathCursorchar *verified, proof one
0xb4250cs_customizationGroupCountuint32_tverified, proof one
0xb42510s_modelPathBufferchar[264]verified, proof one
0xb42618s_texturePathBufferchar[260]verified, proof one
0xb4271cs_compositeCountuint32_tverified, proof one
0xb42720s_componentPoolvoid *verified, proof one
0xb42724s_compositinguint8_tverified, proof one