DICT: Difference between revisions

From Luigi's Mansion 2 Modding Wiki
(Create initial draft of a writeup for the DICT file format)
 
m (Fixing a small error in text and adding italics to "Next Level Games".)
Line 1: Line 1:
The DICT('''.dict''' or presumably '''dictionary''') file format is a file format used by Next Level Games to store information and lookup data for files that can be extracted from a corresponding [[DATA|.data]] file. These files contain data for textures, models and scripts, among others.
The DICT ('''.dict''' or presumably '''dictionary''') file format is a file format used by ''Next Level Games'' to store information and lookup data for files that can be extracted from a corresponding [[DATA|.data]] file. These files contain data for textures, models and scripts, among others.


== Layout ==
== Layout ==

Revision as of 16:05, 6 May 2024

The DICT (.dict or presumably dictionary) file format is a file format used by Next Level Games to store information and lookup data for files that can be extracted from a corresponding .data file. These files contain data for textures, models and scripts, among others.

Layout

A .dict file consists of a header section and multiple file sections. Typically .dict files contain information on 8 files that can be extracted from a .data file. This is not a fixed number and could differ in certain files!

Header

Offset Byte Size Name Description
0x0-0x3 4 Identifier Magic adress that identifies a .dict file. It's hex value is 0xA9F32458.
0x4-0x5 2 Header Flags Use is currently unknown. The hex always seems to be 0x0104.
0x6 1 Compression Flag If the .data file is compressed the byte is set to 0x1, else to 0x0.
0x7 1 Padding
0x8-0xb 4 File Count Number of files that are stored in the .data file.
0xc-0xf 4 Largest Compressed File The byte size of the largest compressed file stored in the .data file.
0x10-0x2b 27 Unknown