Brawlhalla SWZ: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Ikskoks
(Created page with "{{GRAFPageHeader}} == SWZ == * ''' Format Type ''': Archive <br> * ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Little Endian <br> * ''' Signature '''...")
 
imported>Ikskoks
 
(18 intermediate revisions by the same user not shown)
Line 4: Line 4:
* ''' 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 ''':    PXO (?) <br>  
* ''' Signature ''':    None <br>  




Line 11: Line 11:
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;">
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;">
<pre>
<pre>
// TODO
// SWZ file format (by barncastle)
 
struct Header
{
  uint32_BE Checksum;
  uint32_BE Seed;      // XOR with EncryptionKey
  StringEntry Entries[x];
}
 
struct StringEntry
{
  uint32_BE EncodedCompressedSize  // XOR'd
  uint32_BE EncodedDecompressedSize // XOR'd
  uint32_BE Checksum;
 
  //  zlib compressed then XOR'd
  byte EncodedZlibCompressedData[decodedCompressedSize];
}
</pre>
</pre>
</div>
</div>
Line 17: Line 34:
=== Notes and Comments ===  
=== Notes and Comments ===  


None.
* This file format uses '''ZLIB''' compression.
* This file format uses '''XOR''' encryption combined with '''WELL512''' number generator (more details [https://en.wikipedia.org/wiki/Well_equidistributed_long-period_linear here]).


=== Games ===  
=== Games ===  
Line 29: Line 47:
=== Compatible Programs ===  
=== Compatible Programs ===  


None.
* [https://gist.github.com/barncastle/a21b62df945445b38daf91ede021a3ec Code for decrypting Blue Mammoth Games' Brawlhalla's SWZ files]
* [https://gist.github.com/barncastle/0fb2279bdc337d2a7d951e1bd2e3c0df WELL512.cs]
<br/><br>
<br/><br>


Line 35: Line 54:
[[Category:Complete Complete|Brawlhalla SWZ]]
[[Category:Complete Complete|Brawlhalla SWZ]]
[[Category:Platform PC|Brawlhalla SWZ]]
[[Category:Platform PC|Brawlhalla SWZ]]
[[Category:CE None|Brawlhalla SWZD]]
[[Category:CE Both|Brawlhalla SWZD]]
[[Category:Format_Archive | Type: Archive]]
[[Category:Format_Archive | Type: Archive]]
[[Category:Extension_swz | Extension: swz]]
[[Category:Extension_swz | Extension: swz]]
[[Category:BMS_None | BMS: None]]
[[Category:BMS_None | BMS: None]]
[[Category:ZLIB compression]]
[[Category:XOR encryption]]
[[Category:WELL512]]
[[Category:File Format]]
[[Category:File Format]]

Latest revision as of 12:02, 13 August 2022

Back to index | Edit this page

SWZ

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


Format Specifications

// SWZ file format (by barncastle)

struct Header
{
  uint32_BE Checksum;
  uint32_BE Seed;      // XOR with EncryptionKey
  StringEntry Entries[x];
}

struct StringEntry
{
  uint32_BE EncodedCompressedSize   // XOR'd
  uint32_BE EncodedDecompressedSize // XOR'd
  uint32_BE Checksum;

  //  zlib compressed then XOR'd
  byte EncodedZlibCompressedData[decodedCompressedSize];
}

Notes and Comments

  • This file format uses ZLIB compression.
  • This file format uses XOR encryption combined with WELL512 number generator (more details here).

Games

List of games using this file format:

  • Brawlhalla (*.SWZ)

QuickBMS Script

Not written yet.

Compatible Programs