<?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=DIV_%28File_Format%29</id>
	<title>DIV (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=DIV_%28File_Format%29"/>
	<link rel="alternate" type="text/html" href="https://wiki.wexosmk.xyz/index.php?title=DIV_(File_Format)&amp;action=history"/>
	<updated>2026-05-06T17:54:46Z</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=DIV_(File_Format)&amp;diff=186&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=DIV_(File_Format)&amp;diff=186&amp;oldid=prev"/>
		<updated>2024-05-01T17:28: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;&amp;#039;&amp;#039;&amp;#039;DIV&amp;#039;&amp;#039;&amp;#039; files (&amp;#039;&amp;#039;&amp;#039;DIV&amp;#039;&amp;#039;&amp;#039;ision) are used in [[Mario Kart 7]] tracks to subdivide the course model in clipping bounding boxes, to reduce lag.&lt;br /&gt;
&lt;br /&gt;
= File Format =&lt;br /&gt;
The file byte order is always little endian.&lt;br /&gt;
&lt;br /&gt;
== Header ==&lt;br /&gt;
The file starts with a header that is 0x10 bytes long.&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 || Char[4] || &amp;#039;&amp;#039;&amp;#039;File magic&amp;#039;&amp;#039;&amp;#039;. Always &amp;#039;&amp;#039;BADC&amp;#039;&amp;#039; in ASCII.&lt;br /&gt;
|-&lt;br /&gt;
| 0x04 || UInt32 || &amp;#039;&amp;#039;&amp;#039;File size&amp;#039;&amp;#039;&amp;#039; in bytes.&lt;br /&gt;
|-&lt;br /&gt;
| 0x08 || UInt32 || &amp;#039;&amp;#039;&amp;#039;[[#PAHS|PAHS]] offset&amp;#039;&amp;#039;&amp;#039;. Always 0x10.&lt;br /&gt;
|-&lt;br /&gt;
| 0x0C || Int32 || {{Unknown-left|&amp;#039;&amp;#039;&amp;#039;Unknown&amp;#039;&amp;#039;&amp;#039;. Always 1000.}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== PAHS ==&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;PAHS&amp;#039;&amp;#039;&amp;#039; section (&amp;#039;&amp;#039;&amp;#039;SHAP&amp;#039;&amp;#039;&amp;#039;e) contains a group of [[#MRTS|streams]], one per polygon in the course [[BCRES]] file. The streams follow the same order as the polygons.&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 || Char[4] || &amp;#039;&amp;#039;&amp;#039;Section magic&amp;#039;&amp;#039;&amp;#039;. Always &amp;#039;&amp;#039;PAHS&amp;#039;&amp;#039; in ASCII.&lt;br /&gt;
|-&lt;br /&gt;
| 0x04 || Int32 || &amp;#039;&amp;#039;&amp;#039;Number of [[#MRTS|MRTS]] sections&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== MRTS ==&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;MRTS&amp;#039;&amp;#039;&amp;#039; section (&amp;#039;&amp;#039;&amp;#039;STR&amp;#039;&amp;#039;&amp;#039;ea&amp;#039;&amp;#039;&amp;#039;M&amp;#039;&amp;#039;&amp;#039;) contains axis-aligned bounding boxes (AABBs) that correspond to the polygon from the course model.&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 || Char[4] || &amp;#039;&amp;#039;&amp;#039;Section magic&amp;#039;&amp;#039;&amp;#039;. Always &amp;#039;&amp;#039;MRTS&amp;#039;&amp;#039; in ASCII.&lt;br /&gt;
|-&lt;br /&gt;
| 0x04 || UInt16 || &amp;#039;&amp;#039;&amp;#039;Number of bounding boxes&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;&amp;#039;N&amp;#039;&amp;#039;&amp;#039;).&lt;br /&gt;
|-&lt;br /&gt;
| 0x06 || UInt16 || &amp;#039;&amp;#039;&amp;#039;Number of vertices&amp;#039;&amp;#039;&amp;#039; in the polygon.&lt;br /&gt;
|-&lt;br /&gt;
| 0x08 + 0x10*&amp;#039;&amp;#039;&amp;#039;N&amp;#039;&amp;#039;&amp;#039; || Float[2] || &amp;#039;&amp;#039;&amp;#039;Minimum position&amp;#039;&amp;#039;&amp;#039; of the AABB.&lt;br /&gt;
|-&lt;br /&gt;
| 0x10 + 0x10*&amp;#039;&amp;#039;&amp;#039;N&amp;#039;&amp;#039;&amp;#039; || Float[2] || &amp;#039;&amp;#039;&amp;#039;Maximum position&amp;#039;&amp;#039;&amp;#039; of the AABB.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Tools =&lt;br /&gt;
The following tools can handle DIV files:&lt;br /&gt;
* (none)&lt;br /&gt;
&lt;br /&gt;
[[Category:Mario Kart 7 File Formats]]&lt;/div&gt;</summary>
		<author><name>Wexos</name></author>
	</entry>
</feed>