Difference between revisions of "Sandbox"

From Custom Mario Kart
Jump to navigation Jump to search
m
m
Line 1: Line 1:
== File Header ==
+
== Header (LODI) ==
This is the general layout for a LODI header:
+
Every LODI file begins with an 0x74 byte '''LODI''' header.
 
{| class="wikitable"
 
{| class="wikitable"
|+ File header of a LODI file
+
! Offset
 +
! Size
 +
! Description
 
|-
 
|-
! Offset !! Size !! Description
+
| 0x00 || 4 || "'''LODI'''" File identifier, ASCII string.
 
|-
 
|-
| 0x00 || 4 || File magic, always 'LODI' in ASCII
+
| 0x10 || 4 || Start of the file, always 0x00.
 
|-
 
|-
| 0x10 || 4 || Start of the file, always 0x00
+
| 0x14 || 4 || End of the file.
|-
 
| 0x14 || 4 || End of the file
 
 
|-
 
|-
 
| 0x18 || 4 || Section offset
 
| 0x18 || 4 || Section offset
Line 24: Line 24:
 
| 0x2C || 4 || ?
 
| 0x2C || 4 || ?
 
|-
 
|-
| 0x30 || 4 || Section offset, always 0xC00
+
| 0x30 || 4 || Section offset, always 0xC00.
 
|-
 
|-
 
| 0x34 || 4 || ?
 
| 0x34 || 4 || ?
Line 32: Line 32:
 
| 0x3C || 4 || ?
 
| 0x3C || 4 || ?
 
|-
 
|-
| 0x40 || 4 || [[BRRES]] section offset
+
| 0x40 || 4 || [[BRRES]] / Textures section offset.
 
|-
 
|-
 
| 0x44 || 4 || ?
 
| 0x44 || 4 || ?
 
|-
 
|-
| 0x48 || 4 || Section offset
+
| 0x48 || 4 || Polygons? section offset
 
|-
 
|-
 
| 0x4C || 4 || ?
 
| 0x4C || 4 || ?
 +
|-
 +
| 0x60 || 4 || ?
 
|-
 
|-
 
| 0x64 || 4 || File ID?
 
| 0x64 || 4 || File ID?

Revision as of 21:55, 21 September 2014

Header (LODI)

Every LODI file begins with an 0x74 byte LODI header.

Offset Size Description
0x00 4 "LODI" File identifier, ASCII string.
0x10 4 Start of the file, always 0x00.
0x14 4 End of the file.
0x18 4 Section offset
0x1C 4 ?
0x20 4 Section offset
0x24 4 ?
0x28 4 Section offset
0x2C 4 ?
0x30 4 Section offset, always 0xC00.
0x34 4 ?
0x38 4 Section offset
0x3C 4 ?
0x40 4 BRRES / Textures section offset.
0x44 4 ?
0x48 4 Polygons? section offset
0x4C 4 ?
0x60 4 ?
0x64 4 File ID?
0x68 4 Same as 0x64
0x70 4 Same as 0x64