Difference between revisions of "CLR0 (File Format)"
Jump to navigation
Jump to search
AlmostTWD98 (talk | contribs) m |
|||
Line 1: | Line 1: | ||
{{Under-construction}} | {{Under-construction}} | ||
== Overview == | == Overview == | ||
− | This page describes the Mario Kart Wii '''CLR0''' file format, as found in [[BRRES (File Format)|BRRES]] files. | + | This page describes the Mario Kart Wii '''CLR0''' file format, as found in [[BRRES (File Format)|BRRES]] files. They are animation files that swap color. |
== File Format == | == File Format == | ||
Line 8: | Line 8: | ||
== File Format CLR v4 == | == File Format CLR v4 == | ||
− | The following info describes the v4 format, it may be invalid to other versions. | + | The following info describes the v4 format, it may be invalid to other versions. Although there are two section pointers, one of them is always 0 and may be unused. |
− | |||
− | |||
=== CLR Header === | === CLR Header === | ||
− | The | + | The file header is followed by a CLR header. |
{| class="wikitable" | {| class="wikitable" | ||
Line 24: | Line 22: | ||
| 0x06 || 2 || '''NENTRY''' = number of entries of the section #0. | | 0x06 || 2 || '''NENTRY''' = number of entries of the section #0. | ||
|- | |- | ||
− | | 0x08 || 2 || {{ | + | | 0x08 || 2 || {{unknown-left|'''Unknown'''.}} |
|- | |- | ||
| 0x0a || 2 || Looping 0x00=disabled 0x01=enabled. | | 0x0a || 2 || Looping 0x00=disabled 0x01=enabled. | ||
Line 35: | Line 33: | ||
== Tools == | == Tools == | ||
The following tools can handle CLR0 files: | The following tools can handle CLR0 files: | ||
− | * [[BrawlBox]], by Kryal | + | * [[BrawlBox]], by Kryal and BlackJax. |
* [[BrawlCrate]], by soopercool101. | * [[BrawlCrate]], by soopercool101. | ||
* [[CTools]], by [[Chadderz]] (parsed, but not editable). | * [[CTools]], by [[Chadderz]] (parsed, but not editable). |
Revision as of 14:00, 11 January 2022
Under Construction
This article is not finished. Help improve it by adding accurate information or correcting grammar and spelling.
Overview
This page describes the Mario Kart Wii CLR0 file format, as found in BRRES files. They are animation files that swap color.
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. Although there are two section pointers, one of them is always 0 and may be unused.
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 the section #0. |
0x08 | 2 | Unknown. |
0x0a | 2 | Looping 0x00=disabled 0x01=enabled. |
0x0c | 4 | Offset to the first frame (relative). |
0x10 | End of this header |
Tools
The following tools can handle CLR0 files:
- BrawlBox, by Kryal and BlackJax.
- BrawlCrate, by soopercool101.
- CTools, by Chadderz (parsed, but not editable).
- SZS Modifier, by Chadderz (parsed, but not editable).