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

Endian Order:Little Endian
Compression:None
Encryption:None


This format is used by the following Games:
Psychonauts *.pkg


This is the format specification information:
 
// ARCHIVE HEADER
  4 - Header (ZPKG)
  4 - Version (1)
  4 - First File Offset
  4 - Number Of Files In Directory 1
  4 - Directory 2 Offset
  4 - Number Of Files In Directory 2
  4 - Filename Directory Offset
  4 - Extension Directory Offset

  480 - null Padding to offset 512

// DIRECTORY 1
  // for each file in dir 1
    1 - null
    2 - File Extension Offset (relative to the start of the Extension Directory)
    1 - null
    4 - Filename Offset (relative to the start of the Filename Directory)
    4 - File Offset
    4 - File Length?

// DIRECTORY 2
  // I am not sure what this directory represents, but the junk chars make up a string
  // when added together, where the string represents directory names and general words

  // for each file in dir 2
    1 - Junk char
    1 - null
    4 - Unknown
    2 - File ID (incremental from 1)
    4 - Unknown

// FILENAME DIRECTORY
  1 - null

  // for each filename
    X - Filename
    1 - null

// EXTENSION DIRECTORY  
  1 - null

  // for each extension
    X - Extension Name
    1 - null

// FILE DATA
  // for each file
    X - File Data


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.

Game Extractor (Full Version) is also able to modify and save files of this type. Visit the Game Extractor website for more information on this, and the other great features that come with Game Extractor (Full Version).

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