Texture Metadata File

From Luigi's Mansion 2 Modding Wiki
Revision as of 04:19, 11 May 2024 by Schweini (talk | contribs) (Add hex table)

A Texture Metadata File is a file that can be extracted from a .data file, and contains information on textures that are stored in the Mixed Data File.

Layout

Offset Byte Size Name Description
0x0-0x3 4 Identifier Magic address that identifies a texture metadata section. It's hex value is 0xE977D350.
0x4-0x7 4 Hash ID ID that identifies the texture.
0x8-0xb 4 Texture Size Size of the texture data in bytes.
0xc-0xf 4 Hash ID Same as the Hash ID before.
0x10-0x13 4 Padding
0x14-0x17 4 Unknown
0x18-0x19 2 Width Width of the image in pixels.
0x1a-0x1b 2 Height Height of the image in pixels.
0x1c-0x1e 2 Unknown
0x1f 1 Mipmap Level Mipmap Level of the texure.
0x20-0x37 23 Unknown
0x38 1 Compression Format The compression format of the texture, either ETC1 or ETC1A4.