AIG (File Format)
From Wexos's Wiki
Under Construction
This article is not finished. Help improve it by adding accurate information or correcting grammar and spelling.
AIG (Aqualead ImaGe) is a texture 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 ALIG in ASCII. |
| 0x04 | Byte | Version number. |
| 0x05 | Byte | Unknown. 1 if using alpha? |
| 0x06 | UInt16 | Unknown. |
| 0x08 | Char[4] | Image format. |
| 0x0C | Byte[4] | Unknown. Padding? |
| 0x10 | UInt16 | Width of image in pixels, always in little endian. |
| 0x12 | UInt16 | Height of image in pixels, always in little endian. |
| 0x14 | Byte[4] | Unknown. Texture flags? |
| 0x18 | Byte[4] | Unknown. |
| 0x1C | Byte[4] | Unknown. |
| 0x20 | UInt32 | Texture data size in bytes. |
| 0x24 | UInt16[2] | Unknown. |
| 0x28 | Byte[24] | Padding. |
Image Formats
| Format | Description |
|---|---|
| GACC | 2 CMPR textures, the first one is used as the main color texture and the second one is used as an alpha mask |
| GCCP | CMPR texture |
Version List
| Version | Found in |
|---|---|
| 2.0 |
Tools
The following tools can handle AIG files:
- (none)