This is the specifications for the archive file which is handled by the Game Extractor plugin Archive_TRE_XTRE_2.

Endian Order:Little Endian
Compression:REFPACK, UNLZWX
Encryption:None


This format is used by the following Games:
Wing Commander 3 *.tre


This is the format specification information:
 
// ARCHIVE HEADER
  4 - Header (XTRE)
  4 - Version (0)
  4 - ID Directory Offset (24)
  4 - Filename Directory Offset (if no filename table, this field equals the next field)
  4 - Files Directory Offset
  4 - File Data Offset
 
// ID DIRECTORY
  // for each file
    4 - Checksum
    4 - Offset (into the filename directory (if exists) or into the files directory)
 
// FILENAME DIRECTORY
  // for each file
    1 - Filename Length
    X - Filename
    4 - Offset (into the files directory)

// FILES DIRECTORY
  // for each file
    4 - File Offset
    3 - Decompressed File Length
    1 - Compression Flag (0=uncompressed, 192=REFPACK Compression, 128=UNLZWX Compression)

// FILE DATA
  X - File Data


These are the accompanying notes and further information:
 
Uses REFPACK compression for some files. Uses UNLZWX compression for other files.


Game Extractor is able to read files of this type, as well as files from thousands of other games. To give it a try, download Game Extractor (Basic Version) for free, and see what it can do.

For further information on this format, refer to the source code on our GitHub repository.