Alex Ferguson 2003 PKD

From XentaxWiki
Jump to: navigation, search

PKD + PKI


Format Specifications

// PKI FILE {

// FILE HEADER
uint32 {4}   - Header (PAK0)
uint32 {4}   - Directory Offset (24)
uint32 {4}   - Number Of Files
uint32 {4}   - Directory Entry Length (20)
uint32 {4}   - Filename Directory Offset
uint32 {4}   - Filename Directory Length


// FILES DIRECTORY (20-bytes per entry)
// for each file
uint32 {4}   - Compression Tag (0=Not Compressed, 1=Compressed)
uint32 {4}   - File Offset
uint32 {4}   - Compressed File Length (including the header fields if the file is compressed)
uint32 {4}   - File ID?
uint32 {4}   - Decompressed File Length


// FILENAME DIRECTORY
// for each file
char {X}     - Filename
byte {1}     - null Filename Terminator
}


// PKD FILE {

// for each file
// if (compressed){
uint32 {4}   - Compression Header (CMP0)
uint32 {4}   - Unknown (3)
uint32 {4}   - Compressed File Length (not including these header fields)
uint32 {4}   - Decompressed File Length
byte {X}     - Compressed File Data
}


// else if (not compressed){
char {X}     - File Data
}
}

MultiEx BMS

Not written yet

Notes and Comments

  • The *.pki file contains the directory, the *.pkd file contains the file data
  • Unknown compression is used


Supported Programs