.LVL v0 file: HEADER ------ VERSION (ushort) LPTOTAL (ushort) SKYRED (uchar) SKYGREEN (uchar) SKYBLUE (uchar) PAD (uchar) LODSIZE (uint) LODDATA (CXC v0 data) MAINCXCSIZE (uint) FIXME: should be "CUSTOM", not "MAIN" MAINCXC (CXC v0 data) BODY ---- LP0TYPE (uint) LP0TIMIDX (uint) [clut and tpage id's are set at runtime and only apply to *T types] LP0[4] = { /* F, FT, G, GT; each is adjacent to each other in memory even if any are missing */ LP0MODELHISIZE (uint) LP0MODELHI (MTD v4 data) LP0MODELLOSIZE (uint) LP0MODELLO (MTD v4 data) } ... LP(n-1) explanations TYPE: bit 0: FLAT bit 1: FLAT + TEXTURED bit 2: GOURAUD bit 3: GOURAUD + TEXTURED