Difference between revisions of "Haemimont Engine HPK"

From XentaxWiki
Jump to: navigation, search
(Compatible Programs)
(Compatible Programs)
 
(One intermediate revision by the same user not shown)
Line 57: Line 57:
 
* [https://github.com/nickelc/hpk HPK Archiver]
 
* [https://github.com/nickelc/hpk HPK Archiver]
 
* [https://github.com/atom0s/HpkArchiver HPK Archiver (old version)]
 
* [https://github.com/atom0s/HpkArchiver HPK Archiver (old version)]
 +
* [https://www.techpowerup.com/forums/threads/tropico-3-4-5-hpk-archiver.113705/ HPK Archiver (original version)]
 
<br/><br>
 
<br/><br>
  
Line 66: Line 67:
 
[[Category:Extension_hpk | Extension: hpk]]
 
[[Category:Extension_hpk | Extension: hpk]]
 
[[Category:BMS_None | BMS: None]]
 
[[Category:BMS_None | BMS: None]]
 +
[[Category:ZLIB compression]]
 +
[[Category:LZ4 compression]]
 +
[[Category:ZSTD compression]]
 
[[Category:File Format]]
 
[[Category:File Format]]

Latest revision as of 20:25, 9 August 2021

Back to index | Edit this page

HPK


Format Specifications

//header
4 bytes (char) - signature // "BPUL"
4 bytes (uint32) - data offset // 36
4 bytes (uint32) - number of fragments per file // 1 or 8
4 bytes - unknown // 0xFF 0xFF 0xFF 0xFF
4 bytes (uint32) - offset of the residual fragments in bytes
4 bytes (uint32) - number of residual fragments
4 bytes (uint32) - unknown  // 1
4 bytes (uint32) - offset of the filesystem fragments in bytes
4 bytes (uint32) - size of the filesystem fragments in bytes

// fragmented files
num_of_files *
{
   4 bytes (char) - signature  // "ZLIB" or "LZ4 " or "ZSTD"
   4 bytes (uint32) - data size
   4 bytes (uint32) - chunk size  // 32768
   4 bytes (uint32) - chunk offset
   x bytes - additional chunk offsets (optional)
}

//TODO

MultiEx BMS Script

Not written yet.

Notes and Comments

  • This file format occurs in games made using Haemimont Engine.

Games

List of games using this file format:

  • Grand Ages: Rome
  • Omerta: City of Gangsters
  • Surviving Mars
  • Tropico 3
  • Tropico 4
  • Tropico 5
  • Victor Vran

Compatible Programs