AAR (File Format)

From Wexos's Wiki
Jump to navigationJump to search
Under Construction
This article is not finished. Help improve it by adding accurate information or correcting grammar and spelling.

AAR (Aqualead ARchive) is an archive format developed by Aqualead and found in some Wii and 3DS games (and suspected to be used in GameCube titles as well), such as One Piece: Unlimited Adventure, One Piece: Unlimited Cruise Episode 1 - The Treasure Beneath The Waves, One Piece: Unlimited Cruise Episode 2: Awakening of a Hero, One Piece: Unlimited Cruise SP and One Piece: Unlimited Cruise SP 2.

File Format

The file byte order can be either big endian (Wii) or little endian (3DS).

Header

The file starts with the following header:

Offset Type Description
0x00 Char[4] File magic. Always ALAR in ASCII.
0x04 Byte Version number.
0x05 Byte Unknown.
0x06 UInt16 Number of file entries.
0x08 Byte Padding.
0x09 UInt24 Unix timestamp without year of the file's creation date.
0x0C Byte Padding.
0x0D UInt24 Unix timestamp without year of the file's last modification date.

File Entry

Each file entry has the following structure:

Offset Type Description
0x00 Byte File type:
  • 0x00 = Other/No extension
  • 0x40 = Texture (ATX, TPL)
  • 0x41 = Motion (AMT)
  • 0x42 = Image (AIG, TGA)
  • 0x43 = Assemble/resource (AOD)
  • 0x44 = Mesh (AMS)
  • 0x45 = Palette
  • 0x46 = Tilemap
  • 0x47 = Archive (AAR)
  • 0x48 = Sound
  • 0x49 = Table definition
  • 0x4A = Table (ATB)
  • 0x4B = Shader (ASD)
  • 0x4C = Script (NUT)
  • 0x4D = Font (AFT)
  • 0x4E = ID mask
  • 0x4F = Extension mask
0x01 UInt24 Unix timestamp without year of the file's inclusion date.
0x04 UInt32 File data offset.
0x08 UInt32 File size in bytes.
0x0C Byte[4] Unknown flags. Always 0x80000001.

File Data

After all nodes comes all the file data, with the file names 0x24 bytes before the data itself. There is a 2 0-byte padding before the name with unknown reason, and a UInt16 before the file data.

Version List

Version Found in
2.0

Tools

The following tools can handle AAR files:

  • (none)