<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.wexosmk.xyz/index.php?action=history&amp;feed=atom&amp;title=BRCTR_%28File_Format%29</id>
	<title>BRCTR (File Format) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.wexosmk.xyz/index.php?action=history&amp;feed=atom&amp;title=BRCTR_%28File_Format%29"/>
	<link rel="alternate" type="text/html" href="https://wiki.wexosmk.xyz/index.php?title=BRCTR_(File_Format)&amp;action=history"/>
	<updated>2026-05-06T17:00:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://wiki.wexosmk.xyz/index.php?title=BRCTR_(File_Format)&amp;diff=141&amp;oldid=prev</id>
		<title>Wexos: Imported from avsys wiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.wexosmk.xyz/index.php?title=BRCTR_(File_Format)&amp;diff=141&amp;oldid=prev"/>
		<updated>2024-05-01T17:18:38Z</updated>

		<summary type="html">&lt;p&gt;Imported from avsys wiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The &amp;#039;&amp;#039;&amp;#039;BRCTR&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;&amp;#039;B&amp;#039;&amp;#039;&amp;#039;inary &amp;#039;&amp;#039;&amp;#039;R&amp;#039;&amp;#039;&amp;#039;evolution &amp;#039;&amp;#039;&amp;#039;C&amp;#039;&amp;#039;&amp;#039;on&amp;#039;&amp;#039;&amp;#039;TR&amp;#039;&amp;#039;&amp;#039;ol) filetype applies specific settings for [[BRLYT (File Format)|BRLYT]] files and makes possible the use of [[BRLAN (File Format)|BRLAN]] animation files in [[Mario Kart Wii]]&amp;#039;s User Interface elements, such as buttons, backgrounds and layouts.&lt;br /&gt;
&lt;br /&gt;
= File Format =&lt;br /&gt;
The file byte order is always big endian.&lt;br /&gt;
&lt;br /&gt;
== File Header ==&lt;br /&gt;
The file starts with a header that is 0x14 bytes long.&lt;br /&gt;
&lt;br /&gt;
{|class=wikitable&lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || Char[4] || &amp;#039;&amp;#039;&amp;#039;File magic&amp;#039;&amp;#039;&amp;#039;. Always &amp;#039;&amp;#039;bctr&amp;#039;&amp;#039; in ASCII.&lt;br /&gt;
|-&lt;br /&gt;
| 0x04 || UInt16 || &amp;#039;&amp;#039;&amp;#039;Probably number of Sub-Headers&amp;#039;&amp;#039;&amp;#039;. Always 00 02.&lt;br /&gt;
|-&lt;br /&gt;
| 0x06 || UInt16 || &amp;#039;&amp;#039;&amp;#039;Main [[BRLYT]] name offset&amp;#039;&amp;#039;&amp;#039;, relative to the start of the [[#String Table|string table]].&lt;br /&gt;
|-&lt;br /&gt;
| 0x08 || UInt16 || &amp;#039;&amp;#039;&amp;#039;Namespace name offset&amp;#039;&amp;#039;&amp;#039;, relative to the start of the [[#String Table|string table]]. Usually &amp;#039;&amp;#039;Common&amp;#039;&amp;#039;, &amp;#039;&amp;#039;Menu&amp;#039;&amp;#039;, &amp;#039;&amp;#039;Number&amp;#039;&amp;#039; or &amp;#039;&amp;#039;Race&amp;#039;&amp;#039;.&lt;br /&gt;
|-&lt;br /&gt;
| 0x0A || UInt16 || &amp;#039;&amp;#039;&amp;#039;Resource BRLYT name offset&amp;#039;&amp;#039;&amp;#039;, relative to the start of the [[#String Table|string table]].&lt;br /&gt;
|-&lt;br /&gt;
| 0x0C || UInt16 || &amp;#039;&amp;#039;&amp;#039;[[#Sub-Header 1|Sub-Header 1]] offset&amp;#039;&amp;#039;&amp;#039;, relative to the start of the file.&lt;br /&gt;
|-&lt;br /&gt;
| 0x0E || UInt16 || &amp;#039;&amp;#039;&amp;#039;[[#Sub-Header 2|Sub-Header 2]] offset&amp;#039;&amp;#039;&amp;#039;, relative to the start of the file.&lt;br /&gt;
|-&lt;br /&gt;
| 0x10 || UInt16 || &amp;#039;&amp;#039;&amp;#039;[[#String Table|String table]] offset&amp;#039;&amp;#039;&amp;#039;, relative to the start of the file.&lt;br /&gt;
|-&lt;br /&gt;
| 0x12 || UInt16 || {{Unknown-left|&amp;#039;&amp;#039;&amp;#039;Unknown&amp;#039;&amp;#039;&amp;#039;.}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Sub-Header 1 ==&lt;br /&gt;
&lt;br /&gt;
{|class=wikitable&lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || UInt16 || &amp;#039;&amp;#039;&amp;#039;[[#Section 1|Section 1]] offset&amp;#039;&amp;#039;&amp;#039;, relative to the start of this header.&lt;br /&gt;
|-&lt;br /&gt;
| 0x02 || UInt16 || &amp;#039;&amp;#039;&amp;#039;Number of [[#Section 1|section 1]]&amp;#039;&amp;#039;&amp;#039; entries.&lt;br /&gt;
|-&lt;br /&gt;
| 0x04 || UInt16 || &amp;#039;&amp;#039;&amp;#039;[[#Section 2|Section 2]] offset&amp;#039;&amp;#039;&amp;#039;, relative to the start of this header.&lt;br /&gt;
|-&lt;br /&gt;
| 0x06 || UInt16 || &amp;#039;&amp;#039;&amp;#039;Number of [[#Section 2|section 2]]&amp;#039;&amp;#039;&amp;#039; entries.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Section 1 ===&lt;br /&gt;
Section 1 configure a [[BRLYT (File Format)#grp1|BRLYT group]] with animations.&lt;br /&gt;
&lt;br /&gt;
{|class=wikitable&lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x02 || UInt16 || &amp;#039;&amp;#039;&amp;#039;Function name offset&amp;#039;&amp;#039;&amp;#039;, relative to the start of the [[#String Table|string table]].&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || UInt16 || &amp;#039;&amp;#039;&amp;#039;[[BRLYT (File Format)#grp1|BRLYT group name]] offset&amp;#039;&amp;#039;&amp;#039;, relative to the start of the [[#String Table|string table]]. Unknown if this only can be a group.&lt;br /&gt;
|-&lt;br /&gt;
| 0x04 || UInt16 || &amp;#039;&amp;#039;&amp;#039;[[#Section 2|Section 2]] ID&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
|-&lt;br /&gt;
| 0x06 || UInt16 || &amp;#039;&amp;#039;&amp;#039;Number of [[#Section 2|section 2]]&amp;#039;&amp;#039;&amp;#039; entries linked by this entry.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Section 2 ===&lt;br /&gt;
Section 2 stores data about [[BRLAN]] animations.&lt;br /&gt;
&lt;br /&gt;
{|class=wikitable&lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || UInt16 || &amp;#039;&amp;#039;&amp;#039;Function name offsets&amp;#039;&amp;#039;&amp;#039;, relative to the start of the [[#String Table|string table]].&lt;br /&gt;
|-&lt;br /&gt;
| 0x02 || UInt16 || &amp;#039;&amp;#039;&amp;#039;[[BRLAN]] file name offset&amp;#039;&amp;#039;&amp;#039;, relative to the start of the [[#String Table|string table]]. Links to the filename of a [[BRLAN]].&lt;br /&gt;
|-&lt;br /&gt;
| 0x04 || UInt16 || &amp;#039;&amp;#039;&amp;#039;Next function name offset&amp;#039;&amp;#039;&amp;#039;, relative to the start of the [[#String Table|string table]]. If not empty, it links to the next function.&lt;br /&gt;
|-&lt;br /&gt;
| 0x06 || UInt16 || {{Unknown-left|&amp;#039;&amp;#039;&amp;#039;[[BRLYT]] name offset&amp;#039;&amp;#039;&amp;#039;, relative to the start of the [[#String Table|string table]]. Unknown usage.}}&lt;br /&gt;
|-&lt;br /&gt;
| 0x08 || Float || [[BRLAN]] animation &amp;#039;&amp;#039;&amp;#039;speed multiplier&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Sub-Header 2 ==&lt;br /&gt;
&lt;br /&gt;
{|class=wikitable&lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || UInt16 || &amp;#039;&amp;#039;&amp;#039;[[#Section 3|Section 3]] offset&amp;#039;&amp;#039;&amp;#039;, relative to the start of this header.&lt;br /&gt;
|-&lt;br /&gt;
| 0x02 || UInt16 || &amp;#039;&amp;#039;&amp;#039;Number of [[#Section 3|section 3]]&amp;#039;&amp;#039;&amp;#039; entries.&lt;br /&gt;
|-&lt;br /&gt;
| 0x04 || UInt16 || &amp;#039;&amp;#039;&amp;#039;[[#Section 4|Section 4]] offset&amp;#039;&amp;#039;&amp;#039;, relative to the start of this header.&lt;br /&gt;
|-&lt;br /&gt;
| 0x06 || UInt16 || &amp;#039;&amp;#039;&amp;#039;Number of [[#Section 4|section 4]]&amp;#039;&amp;#039;&amp;#039; entries.&lt;br /&gt;
|-&lt;br /&gt;
| 0x08 || UInt16 || &amp;#039;&amp;#039;&amp;#039;[[#Section 5|Section 5]] offset&amp;#039;&amp;#039;&amp;#039;, relative to the start of this header.&lt;br /&gt;
|-&lt;br /&gt;
| 0x0A || UInt16 || &amp;#039;&amp;#039;&amp;#039;Number of [[#Section 5|section 5]]&amp;#039;&amp;#039;&amp;#039; entries.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Section 3 ===&lt;br /&gt;
This is the section that is most known. It contains float data specifying where to set the final position of a BRLYT pane, in 4:3 and 16:9 aspect ratios.&lt;br /&gt;
&lt;br /&gt;
{|class=wikitable&lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || UInt16 || &amp;#039;&amp;#039;&amp;#039;Object name offset&amp;#039;&amp;#039;&amp;#039;, relative to the start of the [[#String Table|string table]].&lt;br /&gt;
|-&lt;br /&gt;
| 0x02 || UInt16 || Alpha channel (0xFF = opaque, 0x00 = transparent).&lt;br /&gt;
|-&lt;br /&gt;
| 0x04 || UInt16 || 0 = don&amp;#039;t use animation, 1 = use animation.&lt;br /&gt;
|-&lt;br /&gt;
| 0x06 || UInt16 || {{Unknown-left|&amp;#039;&amp;#039;&amp;#039;Padding&amp;#039;&amp;#039;&amp;#039;?}}&lt;br /&gt;
|-&lt;br /&gt;
| 0x08 || Float || &amp;#039;&amp;#039;&amp;#039;Delay time&amp;#039;&amp;#039;&amp;#039; for the animation. When going back, the delay works inverse.&lt;br /&gt;
|-&lt;br /&gt;
| 0x0C || Float || Translation X (4:3).&lt;br /&gt;
|-&lt;br /&gt;
| 0x10 || Float || Translation Y (4:3).&lt;br /&gt;
|-&lt;br /&gt;
| 0x14 || Float || Translation Z (4:3).&lt;br /&gt;
|-&lt;br /&gt;
| 0x18 || Float || Scale X (4:3).&lt;br /&gt;
|-&lt;br /&gt;
| 0x1C || Float || Scale Y (4:3).&lt;br /&gt;
|-&lt;br /&gt;
| 0x20 || Float || Translation X (16:9).&lt;br /&gt;
|-&lt;br /&gt;
| 0x24 || Float || Translation Y (16:9).&lt;br /&gt;
|-&lt;br /&gt;
| 0x28 || Float || Translation Z (16:9).&lt;br /&gt;
|-&lt;br /&gt;
| 0x2C || Float || Scale X (16:9).&lt;br /&gt;
|-&lt;br /&gt;
| 0x30 || Float || Scale Y (16:9).&lt;br /&gt;
|-&lt;br /&gt;
| 0x34 || UInt16 || &amp;#039;&amp;#039;&amp;#039;[[#Section 4|Section 4]] ID&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
|-&lt;br /&gt;
| 0x36 || UInt16 || &amp;#039;&amp;#039;&amp;#039;Number of [[#Section 4|section 4]]&amp;#039;&amp;#039;&amp;#039;  entries linked by this entry.&lt;br /&gt;
|-&lt;br /&gt;
| 0x38 || UInt16 || &amp;#039;&amp;#039;&amp;#039;[[#Section 5|Ssection 5]] ID&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
|-&lt;br /&gt;
| 0x3A || UInt16 || &amp;#039;&amp;#039;&amp;#039;Number of [[#Section 5|section 5]]&amp;#039;&amp;#039;&amp;#039;  entries linked by this entry.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Section 4 ===&lt;br /&gt;
This section refers to a message ID found in [[BMG]] files.&lt;br /&gt;
&lt;br /&gt;
{|class=wikitable&lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || UInt16 || &amp;#039;&amp;#039;&amp;#039;[[BRLYT#txt1|BRLYT text pane]] name offset&amp;#039;&amp;#039;&amp;#039;, relative to the start of the [[#String Table|string table]]. Links to the [[BRLYT]] text pane to use with the message. If empty, all text panes are used.&lt;br /&gt;
|-&lt;br /&gt;
| 0x02 || UInt16 || {{Unknown-left|&amp;#039;&amp;#039;&amp;#039;Unknown name offset&amp;#039;&amp;#039;&amp;#039;, relative to the start of the [[#String Table|string table]].}}&lt;br /&gt;
|-&lt;br /&gt;
| 0x04 || UInt32 || &amp;#039;&amp;#039;&amp;#039;BMG Message ID&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Section 5 ===&lt;br /&gt;
This section consists of two unknown names.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || UInt16 || {{Unknown-left|&amp;#039;&amp;#039;&amp;#039;Unknown name offset&amp;#039;&amp;#039;&amp;#039;, relative to the start of the [[#String Table|string table]].}}&lt;br /&gt;
|-&lt;br /&gt;
| 0x02 || UInt16 || {{Unknown-left|&amp;#039;&amp;#039;&amp;#039;Unknown name offset&amp;#039;&amp;#039;&amp;#039;, relative to the start of the [[#String Table|string table]].}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== String Table ==&lt;br /&gt;
At the end of the file, there is a section with null-terminated strings. All string offsets are relative to the start of the string table, which is linked in the [[#Header|header]]. The first byte is always 00, because empty strings has offset 0. The string table contains references to [[BRLYT]] file names, [[BRLYT]] pane names, functions/objects found in StaticR.rel and [[BRLAN]] files, which probably establishes a link between them to load correctly in the game.&lt;br /&gt;
&lt;br /&gt;
= Tools =&lt;br /&gt;
The following tools can handle BRCTR files:&lt;br /&gt;
* [[Wexos&amp;#039;s Toolbox]], by [[Wexos]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Mario Kart Wii File Formats]]&lt;/div&gt;</summary>
		<author><name>Wexos</name></author>
	</entry>
</feed>