Haemimont Engine HPK: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Ikskoks
imported>Ikskoks
 
(8 intermediate revisions by the same user not shown)
Line 48: Line 48:
* Omerta: City of Gangsters
* Omerta: City of Gangsters
* Surviving Mars
* Surviving Mars
* The First Templar (PC) (*.HPK)
* The First Templar - Special Edition (PC) (*.HPK)
* Tropico 3
* Tropico 3
* Tropico 4
* Tropico 4
Line 57: Line 59:
* [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 69:
[[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:23, 14 February 2023

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
  • The First Templar (PC) (*.HPK)
  • The First Templar - Special Edition (PC) (*.HPK)
  • Tropico 3
  • Tropico 4
  • Tropico 5
  • Victor Vran

Compatible Programs