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:
| header | group | holds |
|---|---|---|
+0x00 | +0xc0 | name, an offset into the root's MOGN turned into a pointer |
+0x08 | +0x10 | flags |
+0x0c | +0x14 | bounding box, six floats |
+0x24, +0x26 | +0x2c, +0x30 | first portal reference and count, 16-bit |
+0x28 to +0x2c | +0x3c to +0x40 | three batch counts, 16-bit |
+0x30, +0x34, +0x38 | +0x34, +0x38, +0x14c | fog 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
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0010 | 4 | uint32_t | m_flags | Holds the group flags | verified, proof one | models/wmo#group-header |
0x0014 | 24 | float[6] | m_bounds | Holds the bounding box | verified, proof one | models/wmo#group-header |
0x002c | 4 | uint32_t | m_firstPortalRef | Holds the first portal reference | verified, proof one | models/wmo#group-header |
0x0030 | 4 | uint32_t | m_portalRefCount | Holds the number of portal references | verified, proof one | models/wmo#group-header |
0x0034 | 4 | uint8_t[4] | m_fogs | Holds the fog indices | verified, proof one | models/wmo#group-header |
0x0038 | 4 | uint32_t | m_liquid | Holds the liquid word of the header | verified, proof one | models/wmo#group-header |
0x003c | 6 | uint16_t[3] | m_batchCounts | Holds the three batch counts | verified, proof one | models/wmo#group-header |
0x0044 | 4 | void * | m_bspNodes | Holds the MOBN nodes, the BSP tree start | verified, proof one | models/wmo#bsp-tree-setup |
0x0048 | 4 | void * | m_bspNodesCopy | Holds the MOBN nodes again | verified, proof one | models/wmo#bsp-tree-setup |
0x004c | 4 | uint16_t * | m_bspFaceRefs | Holds the MOBR face references | verified, proof one | models/wmo#bsp-tree-setup |
0x0050 | 4 | uint32_t | m_bspNodeCount | Holds the MOBN size over 16 | verified, proof one | models/wmo#bsp-tree-setup |
0x0054 | 4 | uint32_t | m_bspFaceRefCount | Holds the MOBR size over 2 | verified, proof one | models/wmo#bsp-tree-setup |
0x008c | 4 | uint32_t | m_bspZero | Holds 0 from the BSP setup | verified, proof one | models/wmo#bsp-tree-setup |
0x0090 | 24 | float[6] | m_bspBounds | Holds the BSP's box, a copy of the group's bounding box | verified, proof one | models/wmo#bsp-tree-setup |
0x00bc | 1 | uint8_t | m_vertexFadeDone | Holds whether the portal vertex fade has run | verified, proof one | models/wmo#portal-vertex-fade |
0x00c0 | 4 | char * | m_name | Holds the group name | verified, proof one | models/wmo#group-header |
0x00c4 | 4 | uint16_t * | m_faces | Holds the MOPY face records | verified, proof one | models/wmo#portal-vertex-fade |
0x00c8 | 4 | uint16_t * | m_indices | Holds the MOVI indices | verified, proof one | models/wmo#portal-vertex-fade |
0x00d0 | 4 | float * | m_vertices | Holds the MOVT vertices | verified, proof one | models/wmo#portal-vertex-fade |
0x00dc | 4 | void * | m_batches | Holds the MOBA batches, 24 bytes each | verified, proof one | models/wmo#group-header |
0x00f4 | 4 | uint32_t * | m_colors | Holds the MOCV vertex colours | verified, proof one | models/wmo#portal-vertex-fade |
0x00f8 | 4 | uint32_t | m_liquidXVerts | Holds the MLIQ x vertex count | verified, proof one | models/wmo#group-liquid-draw-type |
0x00fc | 4 | uint32_t | m_liquidYVerts | Holds the MLIQ y vertex count | verified, proof one | models/wmo#group-liquid-draw-type |
0x0100 | 4 | uint32_t | m_liquidXTiles | Holds the MLIQ x tile count | verified, proof one | models/wmo#group-liquid-draw-type |
0x0104 | 4 | uint32_t | m_liquidYTiles | Holds the MLIQ y tile count | verified, proof one | models/wmo#group-liquid-draw-type |
0x0108 | 12 | float[3] | m_liquidCorner | Holds the MLIQ corner | verified, proof one | models/wmo#group-liquid-draw-type |
0x0114 | 2 | uint16_t | m_liquidMaterial | Holds the MLIQ material | verified, proof one | models/wmo#group-liquid-draw-type |
0x0118 | 4 | void * | m_liquidVertices | Holds the MLIQ vertices, 8 bytes each | verified, proof one | models/wmo#group-liquid-draw-type |
0x011c | 4 | uint8_t * | m_liquidTiles | Holds the MLIQ tile flag bytes | verified, proof one | models/wmo#group-liquid-draw-type |
0x0124 | 4 | uint32_t | m_faceCount | Holds the number of faces | verified, proof one | models/wmo#portal-vertex-fade |
0x013c | 4 | uint32_t | m_batchCount | Holds the number of batches | verified, proof one | models/wmo#group-header |
0x014c | 4 | uint32_t | m_groupId | Holds the group id of the header | verified, proof one | models/wmo#group-header |
0x0150 | 4 | void * | m_fileData | Holds the group file data | verified, proof one | models/wmo#group-header |
0x0158 | 4 | CMapObj * | m_mapObj | Holds the map object the group belongs to | verified, proof one | models/wmo#group-header |
0x0164 | 1 | uint8_t | m_parsed | Holds whether the group file is parsed | verified, proof one | models/wmo#group-header |