The Longest Journey TM
From XentaxWiki
Back to index | Edit this page
Contents
TM
- Format type: Image
- Endianness: Little-endian
Format Specifications
char {4} - identifier ("BIFF")
uint32 {4} - format version (1 or 2 allowed)
uint32 {4} - Unknown
uint32 {4} - Unknown
uint32 {4} - number of chunks
// for each chunk
- uint32 {4} - begin marker (0xf0f0f0f0)
- uint32 {4} - data type
- uint32 {4} - Unknown
- uint32 {4} - data size
- // if format version is 2
- uint32 {4} - Unknown
- uint32 {4} - Unknown
- // if data type is 0x02faf082 (palette)
- uint32 {4} - number of palette colours
- // for each colour
- uint16 {2} - red colour value
- uint16 {2} - green colour value
- uint16 {2} - blue colour value
- uint16 {2} - red colour value
- uint32 {4} - number of palette colours
- // if data type is 0x02faf080 (image)
- uint16 {2} - name length
- char {x} - name (zero-terminated)
- byte {1} - Unknown
- uint32 {4} - image width
- uint32 {4} - image height
- uint32 {4} - number of MIP map levels
- // for each MIP map level
- byte {x} - palettised image data (dimensions are halved after each level)
- byte {x} - palettised image data (dimensions are halved after each level)
- uint16 {2} - name length
- // if data type is something else
- byte {x} - Unknown (never encountered)
- byte {x} - Unknown (never encountered)
- uint32 {4} - end marker (0x0f0f0f0f)
- uint32 {4} - number of subchunks
- // for each subchunk
- (chunks can be arbitrarily nested, the same format rules apply)
- (chunks can be arbitrarily nested, the same format rules apply)
Notes and Comments
TM files contain textures in (optionally) various MIP map levels. The same chunk layout is used for BIFF files as well, though the data types encountered in those files are usually different.
MultiEx BMS Script
None written yet.
Supported by Programs
- The Longest Journey Explorer
- TLJ Viewer (works only with the original 4 CD release)
- TLJView
Links
None