The Genius of Sappheiros: Weekend PAK: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Ikskoks
imported>Ikskoks
 
(15 intermediate revisions by the same user not shown)
Line 19: Line 19:
num_of_files *
num_of_files *
{
{
   x bytes (char) - file path + null
   x bytes (char) - file path + null   // path may contain japaneese characters
   4 bytes (uint32) - file size
   4 bytes (uint32) - file compressed size
   4 bytes (uint32) - VAR2
   4 bytes (uint32) - file decompressed size
   4 bytes (uint32) - file relative offset
   4 bytes (uint32) - file relative offset
   1 byte (bool) - compression flag?
   1 byte (bool) - flag?
   4 bytes (uint32) - VAR5
   4 bytes (uint32) - seed?
}  
}  


Line 34: Line 34:
</div>
</div>


=== MultiEx BMS Script ===  
=== QuickBMS Script ===  


Not written yet.
* [https://github.com/bartlomiejduda/Tools/tree/master/NEW%20Tools/The%20Genius%20of%20Sappheiros%20Weekend PAK script]


=== Notes and Comments ===  
=== Notes and Comments ===  


None.
* TOC is encrypted with [https://en.wikipedia.org/wiki/Mersenne_Twister Mersenne Twister algorithm].
* File data is encrypted with XOR (64 bytes key).
* Some files may be compressed with ZLIB.


=== Games ===  
=== Games ===  
Line 58: Line 60:
[[Category:Format_Archive | Type: Archive]]
[[Category:Format_Archive | Type: Archive]]
[[Category:Extension_pak | Extension: pak]]
[[Category:Extension_pak | Extension: pak]]
[[Category:BMS_None | BMS: None]]
[[Category:XOR encryption]]
[[Category:Custom encryption]]
[[Category:ZLIB compression]]
[[Category:File Format]]
[[Category:File Format]]

Latest revision as of 23:27, 15 December 2021

Back to index | Edit this page

PAK

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


Format Specifications

// The Genius of Sappheiros: Weekend PAK file format

4 bytes (uint32) - TOC length

// whole TOC is encrypted
4 bytes (uint32) - CRC check value (for TOC data)
num_of_files *
{
   x bytes (char) - file path + null   // path may contain japaneese characters
   4 bytes (uint32) - file compressed size
   4 bytes (uint32) - file decompressed size 
   4 bytes (uint32) - file relative offset
   1 byte (bool) - flag?
   4 bytes (uint32) - seed?
} 

num_of_files *
{
   x bytes - file data   // encrypted
}

QuickBMS Script

Notes and Comments

  • TOC is encrypted with Mersenne Twister algorithm.
  • File data is encrypted with XOR (64 bytes key).
  • Some files may be compressed with ZLIB.

Games

List of games using this file format:

  • Monsters Card
  • The Genius of Sappheiros: Weekend (*.PAK)

Compatible Programs