CMapObj::Parse
function · models · orchestration
- Address
0x6c3990· 112 bytes, up to0x6c39ff- Meaning
- Parses a map object's root chunks and creates its groups
- Confidence
- inferred
- Finding
- models/wmo#root-file-chunks
Finding: Root file chunks in models: map objects
A root file is parsed in a fixed chunk order without reading the tags: after the version chunk,
MOHD, MOTX, MOMT, MOGN, MOGI, MOSB, MOPV, MOPT, MOPR, MOVV, MOVB, MOLT,
MODS, MODN, MODD and MFOG follow one another, each pointer stored and each record count
derived from the chunk size. Only the last, MCVP, is tested: it is taken when it lies inside the
file and carries its tag.
| chunk | record | chunk | record |
|---|---|---|---|
MOMT | 64 bytes | MOVV | 12 bytes |
MOGI | 32 bytes | MOVB | 4 bytes |
MOPV | 12 bytes | MOLT | 48 bytes |
MOPT | 20 bytes | MODS | 32 bytes |
MOPR | 8 bytes | MODD | 40 bytes |
MFOG | 48 bytes | MCVP | 16 bytes |
The derivation is in the doc.
Callers 2
- CMapObj::OnReadDone models
- CMapObj::Load models
Callees 3
- AllocMapObjGroup terrain
- CMapObj::ParseChunks models
- CMapObj::ClearMaterialTextures models
Calls and jumps by a bare address, from tables/calls.tsv.