opening.bnr (File Format)/Wii

From Wexos's Wiki
Revision as of 17:56, 1 May 2024 by Wexos (talk | contribs) (Imported from avsys wiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

opening.bnr is a file found in all Wii disks which is the first file read when loading a game. It contains banner and sound for when loading a game.

File Format

Header

The file starts with an IMET header. It has the following structure:

Offset Type Description
0x00 Byte[0x40] Padding. Always 0.
0x40 Char[4] File magic. Always IMET in ASCII.
0x44 UInt32 U8 offset.
0x48 UInt32 Number of files in the U8.
0x4C UInt32 banner.bin size in bytes.
0x50 UInt32 icon.bin size in bytes.
0x54 UInt32 sound.bin size in bytes.
0x58 UInt32 Unknown.
0x5C Char[0x54] Japanese channel name stored as UTF-16.
0xB0 Char[0x54] English channel name stored as UTF-16.
0x104 Char[0x54] German channel name stored as UTF-16.
0x158 Char[0x54] French channel name stored as UTF-16.
0x1AC Char[0x54] Spanish channel name stored as UTF-16.
0x200 Char[0x54] Italian channel name stored as UTF-16.
0x254 Char[0x54] Dutch channel name stored as UTF-16.
0x2A8 Byte[0x348] Padding. Always 0.
0x5F0 Byte[0x10] MD5 checksum of file data (0x0000 – 0x5EFF).

U8 File

After the IMET header comes an U8 file. This file contains three different files:

File name Description
meta/banner.bin Contains the images and animation displayed when the channel is selected.
meta/icon.bin Contains the images and animation displayed when the channel is in the menu.
meta/sound.bin Contains the audio that is played when the channel is selected.

All files inside the U8 starts with the following structure:

Offset Type Description
0x00 Char[4] Magic. Always IMD5 in ASCII.
0x04 UInt32 File size in bytes, excluding this structure.
0x08 Byte[8] Padding.
0x10 Byte[0x10] MD5 checksum of the file data following this header.

All files may be compressed using LZ77. If so, the first 4 bytes will be "LZ77". Note that the actual file starts after the IMD5 header, so if the file is compressed, bytes 0x20 – 0x23 will be "LZ77".

banner.bin

The banner.bin file is a U8 file containing layout data. It contains the folder arc, which contains anim, blyt and timg which stores BRLAN, BRLYT respectively TPL files. The BRLYT file is called banner.brlyt.

icon.bin

The icon.bin file is a U8 file containing layout data. It contains the folder arc, which contains anim, blyt and timg which stores BRLAN, BRLYT respectively TPL files. The BRLYT file is called icon.brlyt.

sound.bin

The sound.bin file can either be a WAV, an AIFF or a BNS. If the file is a WAV or an AIFF, it must contain 16-bit uncompressed PCM data.

Tools

The following tools can handle opening.bnr files:

  • (none)