Restricted Area PAK: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Ikskoks
imported>Ikskoks
Line 51: Line 51:
=== Notes and Comments ===  
=== Notes and Comments ===  


* Unknown compression is used in this archive<br>
* Unknown compression is used in this archive.
** UPDATE: It may be compressed with '''JCalg'''. (see more at [https://bitsum.com/portfolio/jcalg1/ jcalg1 page])
<br>
<br>
=== Supported Programs ===  
=== Supported Programs ===  



Revision as of 23:45, 13 June 2022

Choose archive extension:

PAK


Format Specifications

// for each file

uint32 {4}   - Decompressed File Length
uint32 {4}   - File Length (not including this 8-byte header)


// Compressed File Data
char {2}     - Compression Header (JC)
uint32 {4}   - Decompressed File Length
byte {X}     - Compressed File Data


MultiEx BMS

Set JC String .JC ;
SavePos ST 0 ;
GoTo EOF 0 ;
SavePos END 0 ;
GoTo ST 0 ;
Set Num Long 0 ;
Do ;
Get UCS Long 0 ;
SavePos CSO 0 ;
Get CS Long 0 ;
SavePos FO 0 ;
SavePos J 0 ;
GetDString ID 2 0 ;
SavePos UCSO 0 ;
Set FN String FILE ;
String FN += Num ;
String FN += JC ;
Log FN FO CS 0 CSO ;
Math Num += 1 ;
Math J += CS ;
GoTo J 0 ;
While J < END ; 

Notes and Comments

  • Unknown compression is used in this archive.
    • UPDATE: It may be compressed with JCalg. (see more at jcalg1 page)


Supported Programs