Zanzarah: The Hidden Portal PAK: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Ikskoks
m (Ikskoks moved page Zanzarah PAK to Zanzarah: The Hidden Portal PAK without leaving a redirect)
imported>Ikskoks
Line 7: Line 7:
* ''' Format Type ''':    Archive <br>  
* ''' Format Type ''':    Archive <br>  
* ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Little Endian <br>  
* ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Little Endian <br>  
* ''' Signature ''':    None <br>





Revision as of 15:32, 3 May 2022

Choose archive extension:

PAK

  • Format Type : Archive
  • Endian Order : Little Endian
  • Signature : None


Format Specifications

// ARCHIVE HEADER

uint32 {4}   - null
uint32 {4}   - Number Of Files


// FILES DIRECTORY

// for each file
uint32 {4}   - Filename Length
char {X}     - Filename (including ..\ at the front of the filename)
uint32 {4}   - Offset of data block (relative to the end of the files directory)
uint32 {4}   - Length of data block (substract 8 to get filesize)


// FILE DATA

// for each data block
uint32 {4}   - Always 0x00000101
byte {X}     - File Data
uint32 {4}   - Always 0x00000202


MultiEx BMS Script

Not written yet

Notes and Comments

  • The files in the directory are NOT in the same order as the files in the archive. ie. file 1 in the directory may actually be file 3827 in the archive, etc.
  • After unpacking PAK, the game can read the files from game main directory, so there is no need for repacking files to the archive.

Compatible Programs