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

Endian Order:Little Endian
Compression:none
Encryption:None


This format is used by the following Games:
Invisible Inc. *.kwad


This is the format specification information:
 
// HEADER
  4 - Header 1 (KLEI)
  4 - Header 2 (PKG2)
  4 - Archive Length
  4 - Unknown (1)
  
// DETAILS DIRECTORY
  4 - Number of Files
  
  // for each file
    4 - null
    4 - File Length (including the 3 header fields)
    4 - File Offset
    4 - File Type (BLOB, SRF1, TEX1, MDL1)

// FILENAME DIRECTORY
  // for each file
    4 - File ID?
    4 - Filename Length
    X - Filename
    0-3 - null Padding to a multiple of 4 bytes

X - null Padding to a multiple of 65536 bytes

// FILE DATA
  // for each file
    4 - Header (KLEI)
    4 - File Type (BLOB, SRF1, TEX1, MDL1)
    4 - File Length (not including these header fields)
    X - File Data
    X - null Padding to a multiple of 65536 bytes


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.