benilla-re systems structs docs

CMapObjGroup

struct · models · 368 bytes

Meaning
Holds a map object group: its header fields, chunk pointers and counts, file data and parse state
Confidence
verified, proof one
Finding
models/wmo#group-header

Finding: Group header in models: map objects

A group file is the version chunk and one MOGP chunk whose data opens with a 0x44-byte header; the geometry chunks start right after it. The header fields land in the group:

headergroupholds
+0x00+0xc0name, an offset into the root's MOGN turned into a pointer
+0x08+0x10flags
+0x0c+0x14bounding box, six floats
+0x24, +0x26+0x2c, +0x30first portal reference and count, 16-bit
+0x28 to +0x2c+0x3c to +0x40three batch counts, 16-bit
+0x30, +0x34, +0x38+0x34, +0x38, +0x14cfog indices, liquid word, group id

After the chunks, every batch resolves the textures of its material, the batch's byte +0x17.

The derivation is in the doc.

Fields 35

offsetsizetypenamemeaningconfidencefinding
0x00104uint32_tm_flagsHolds the group flagsverified, proof onemodels/wmo#group-header
0x001424float[6]m_boundsHolds the bounding boxverified, proof onemodels/wmo#group-header
0x002c4uint32_tm_firstPortalRefHolds the first portal referenceverified, proof onemodels/wmo#group-header
0x00304uint32_tm_portalRefCountHolds the number of portal referencesverified, proof onemodels/wmo#group-header
0x00344uint8_t[4]m_fogsHolds the fog indicesverified, proof onemodels/wmo#group-header
0x00384uint32_tm_liquidHolds the liquid word of the headerverified, proof onemodels/wmo#group-header
0x003c6uint16_t[3]m_batchCountsHolds the three batch countsverified, proof onemodels/wmo#group-header
0x00444void *m_bspNodesHolds the MOBN nodes, the BSP tree startverified, proof onemodels/wmo#bsp-tree-setup
0x00484void *m_bspNodesCopyHolds the MOBN nodes againverified, proof onemodels/wmo#bsp-tree-setup
0x004c4uint16_t *m_bspFaceRefsHolds the MOBR face referencesverified, proof onemodels/wmo#bsp-tree-setup
0x00504uint32_tm_bspNodeCountHolds the MOBN size over 16verified, proof onemodels/wmo#bsp-tree-setup
0x00544uint32_tm_bspFaceRefCountHolds the MOBR size over 2verified, proof onemodels/wmo#bsp-tree-setup
0x008c4uint32_tm_bspZeroHolds 0 from the BSP setupverified, proof onemodels/wmo#bsp-tree-setup
0x009024float[6]m_bspBoundsHolds the BSP's box, a copy of the group's bounding boxverified, proof onemodels/wmo#bsp-tree-setup
0x00bc1uint8_tm_vertexFadeDoneHolds whether the portal vertex fade has runverified, proof onemodels/wmo#portal-vertex-fade
0x00c04char *m_nameHolds the group nameverified, proof onemodels/wmo#group-header
0x00c44uint16_t *m_facesHolds the MOPY face recordsverified, proof onemodels/wmo#portal-vertex-fade
0x00c84uint16_t *m_indicesHolds the MOVI indicesverified, proof onemodels/wmo#portal-vertex-fade
0x00d04float *m_verticesHolds the MOVT verticesverified, proof onemodels/wmo#portal-vertex-fade
0x00dc4void *m_batchesHolds the MOBA batches, 24 bytes eachverified, proof onemodels/wmo#group-header
0x00f44uint32_t *m_colorsHolds the MOCV vertex coloursverified, proof onemodels/wmo#portal-vertex-fade
0x00f84uint32_tm_liquidXVertsHolds the MLIQ x vertex countverified, proof onemodels/wmo#group-liquid-draw-type
0x00fc4uint32_tm_liquidYVertsHolds the MLIQ y vertex countverified, proof onemodels/wmo#group-liquid-draw-type
0x01004uint32_tm_liquidXTilesHolds the MLIQ x tile countverified, proof onemodels/wmo#group-liquid-draw-type
0x01044uint32_tm_liquidYTilesHolds the MLIQ y tile countverified, proof onemodels/wmo#group-liquid-draw-type
0x010812float[3]m_liquidCornerHolds the MLIQ cornerverified, proof onemodels/wmo#group-liquid-draw-type
0x01142uint16_tm_liquidMaterialHolds the MLIQ materialverified, proof onemodels/wmo#group-liquid-draw-type
0x01184void *m_liquidVerticesHolds the MLIQ vertices, 8 bytes eachverified, proof onemodels/wmo#group-liquid-draw-type
0x011c4uint8_t *m_liquidTilesHolds the MLIQ tile flag bytesverified, proof onemodels/wmo#group-liquid-draw-type
0x01244uint32_tm_faceCountHolds the number of facesverified, proof onemodels/wmo#portal-vertex-fade
0x013c4uint32_tm_batchCountHolds the number of batchesverified, proof onemodels/wmo#group-header
0x014c4uint32_tm_groupIdHolds the group id of the headerverified, proof onemodels/wmo#group-header
0x01504void *m_fileDataHolds the group file dataverified, proof onemodels/wmo#group-header
0x01584CMapObj *m_mapObjHolds the map object the group belongs toverified, proof onemodels/wmo#group-header
0x01641uint8_tm_parsedHolds whether the group file is parsedverified, proof onemodels/wmo#group-header