SCN0 (File Format)

From Custom Mario Kart
(Redirected from SCN0)
Jump to: navigation, 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 SCN0 file format, as found within BRRES files. SCN0 files are SCeNe settings files to show live rendered videos.

File Format

File Header

Offset Size Description
0x00 4 The magic "SCN0" to identify the sub file. See »BRRES Sub Files« for other magics.
0x04 4 Length of the sub file.
0x08 4 Sub file version number. See »BRRES Sub Files« for details.
0x0c 4 Offset to outer BRRES File (negative value).
0x10 N*4 N section offsets.
0x10+N*4 4 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

SCN0 can possibly contain certain sections multiple times.

The SCN0 header follows directly after the file header. For SCN0 version 5 it has the following layout:

offset size description
0x00 4 Unknown
0x04 4 Unknown
0x08 4 Frame Count
0x0C 2 Unsure SpecularLightCount
0x0E 2 Looping 0x00=disabled 0x01=enabled
0x10 2 * 6 Section count * 6 (as there are 6 types of sections)
0x1C End of header / Start of a filler

Possible Sections

Each section starts with an interger (4 bytes) which defines the size of the section.

Folder Description
LightSet(NW4R) Combines AmbLight with Lights
AmbLight(NW4R)
Lights(NW4R)
Fogs(NW4R)
Cameras(NW4R)
All about BRRES files

BRRES fileIndex GroupSub Files

CHR0CLR0MDL0PAT0SCN0SHP0SRT0TEX0