Indiana Jones PS2 PK2

From XentaxWiki
Revision as of 04:55, 1 August 2006 by 71.10.25.153 (talk) (Supported Programs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

PK2 + HSH


Format Specifications

// PK2 FILE

// for each file

byte {X}     - File Data
byte {0-2047}      - null Padding to a multiple of 2048 bytes



// HSH FILE

// for each file

char {X}     - Filename (String)
byte {1}     - Filename Terminator (byte 32)
char {X}     - File Length (String)
byte {1}     - File Length Terminator (byte 32)
char {X}     - File Offset (String)
uint16 {2}   - New Line Characters (13,10)

Notes and Comments

  • The *.pk2 file contains the file data, the *.hsh file contains the directory
  • The *.hsh file is all strings, not fields!
  • You need to read this file by reading a full line, then find the 2 separators from the back of the line. This is because the filename can have spaces in it.