Metropolis Software PAK: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Ikskoks
imported>Ikskoks
 
(11 intermediate revisions by the same user not shown)
Line 36: Line 36:
<br>
<br>
<font color="blue"> ''' // ARCHIVE FOOTER ''' </font> <br>  
<font color="blue"> ''' // ARCHIVE FOOTER ''' </font> <br>  
: uint32 {4}&nbsp;&nbsp; - Crypted offset to start of the DIRECTORY<br>  
: uint32 {4}&nbsp;&nbsp; - Encrypted offset to start of the DIRECTORY<br>  
</b></tt>
</b></tt>


Line 50: Line 50:
Other notes:
Other notes:
* This file format use '''GZIP''' compression.
* This file format use '''GZIP''' compression.
* Archangel is a game from Poland, so filenames are stored in polish language, e.g. "pieklo_fabryka_wnetrze.scene".
* This file format occurs in games made by '''Metropolis Software'''.
* Some filenames are stored in polish language, e.g. "pieklo_fabryka_wnetrze.scene".
 
=== Games ===
List of games using this file format:
* Archangel (PC) (*.PAK)
* Gorky Zero: Beyond Honor


=== QuickBMS script ===  
=== QuickBMS script ===  

Latest revision as of 00:20, 3 July 2022

Choose archive extension:

PAK

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


Format Specifications

// ARCHIVE HEADER

uint32 {4}   - Version (1)
uint32 {4}   - Number Of Files


// FILE DATA

// for each file
uint32 {4}   - File Uncompressed Size
uint32 {4}   - File Compressed Size
byte {X}     - File Data (compressed with GZIP)
uint32 {4}   - Unknown (26)


// DIRECTORY

// for each file
uint32 {4}   - Entry Offset
uint32 {4}   - Entry Size


// FILENAME ARRAY

// for each file
uint32 {4}   - Filename Length (including null)
char {X}     - Filename
byte {1}     - null Filename Terminator


// ARCHIVE FOOTER

uint32 {4}   - Encrypted offset to start of the DIRECTORY

Notes and Comments

Offset to DIRECTORY must be decrypted before use. Substruct from it:

  • 0 - for demo
  • 0x4857 - for retail/en
  • 0x4858 - for retail/ru

It's easy to detect right value to substruct - first file offset in DIRECTORY always 8.


Other notes:

  • This file format use GZIP compression.
  • This file format occurs in games made by Metropolis Software.
  • Some filenames are stored in polish language, e.g. "pieklo_fabryka_wnetrze.scene".

Games

List of games using this file format:

  • Archangel (PC) (*.PAK)
  • Gorky Zero: Beyond Honor

QuickBMS script

Supported Programs