CLR0 (File Format)

From Custom Mario Kart
Revision as of 14:52, 18 June 2012 by KHacker35000vr (talk | contribs) (Created page with "{{under-construction}} This page describes the Mario Kart Wii '''CLR0''' file format, as found in BRRES files. CLR0 files are color swapping animation f...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Under Construction
This article is not finished. Help improve it by adding accurate information or correcting grammar and spelling.

This page describes the Mario Kart Wii CLR0 file format, as found in BRRES files. CLR0 files are color swapping animation files.

File Format

File Header

Offset Type Description
0x00 String The magic "CLR0" to identify the sub file. See »BRRES Sub Files« for other magics.
0x04 UInt32 Length of the sub file.
0x08 UInt32 Sub file version number. The number of sections (N) is dependent of this version number. See »BRRES Sub Files« for details.
0x0C Int32 Offset to outer BRRES File.
0x10 Int32[N] N section offsets. N is implied in the version number (offset 0x08).
0x10+N*4 Int32 String offset to the name of this sub file. This name equal to the name of the entry name of the BRRES Index Group pointing to this data.
0x14+N*4 End of this header


File Format CLR v4

The following info describes the v4 format, it may be invalid to other versions.

CLR Header

The File Header is followed by a CLR Header.

offset size description
0x00 4 Padding
0x04 2 Frame count
0x06 2 NENTRY := number of entries of section #0
0x08 2 unknown
0x0a 2 unknown (always 1?)
0x0c 4 Offset to the first frame (Relative)
0x10 End of this header