benilla-re systems structs docs

CMapObj::ParseGroup

function · models · primitive

Address
0x6c3f80 · 311 bytes, up to 0x6c40b6
Meaning
Relinks a group, copies its MOGP header fields, parses its chunks and loads its batch materials
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.

Callers 2

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.