LNG (File Format)
From Wexos's Wiki
LNG is a file format used in Crash Team Racing. It contains message data for each language in the game.
File Format
The file byte order is always little endian.
Header
The file starts with a header that is 8 bytes long.
Offset | Type | Description |
---|---|---|
0x00 | Int32 | Number of messages N. |
0x04 | Int32 | Offset to Message Entry List O. |
0x08 | End of header, start of Message Data |
Message Data
After the header, there is a list of null-terminated UTF-8 strings that contain the message texts.
Message Entry List
This section indexes the absolute offsets of each message from Message Data.
Offset | Type | Description |
---|---|---|
O + N * 4 | Int32 | Offset to the message in Message Data. |
At the end of the file, there is a null-terminated string with the text MISSING MSG. It is unknown if this is used by the game at all, or if it's just a remain from development.
Tools
The following tools can handle LNG files:
- CTR tools, by DCxDemo (can convert LNG to plaint text and vice versa).