Giants Citizen Kabuto GZP: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>WATTO
No edit summary
imported>Ikskoks
 
(11 intermediate revisions by 3 users not shown)
Line 12: Line 12:


<tt><b>
<tt><b>
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>  
<font color="blue"> ''' // ARCHIVE HEADER ''' </font> <br>
uint32 {4}&nbsp;&nbsp; - Directory Offset <br>  
: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>  
: uint32 {4}&nbsp;&nbsp; - Directory Offset <br>  
<br>
<br>
byte {X}&nbsp;&nbsp;&nbsp;&nbsp; - File Data <br>  
<font color="blue"> ''' // FILE DATA ''' </font> <br>
: <font color="blue"> ''' // for each file ''' </font> <br>
:: uint32 {4}&nbsp;&nbsp; - Compressed File Length <font color="purple">(including 16-byte header)</font> <br>
:: uint32 {4}&nbsp;&nbsp; - Decompressed File Length <br>
:: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Hash? '' </font> <br>
:: uint32 {4}&nbsp;&nbsp; - Compression Tag <font color="purple">(1=compressed 2=not compressed)</font> <br>
:: byte {X}&nbsp;&nbsp;&nbsp;&nbsp; - File Data <br>  
<br>
<br>
<font color="blue"> ''' // Directory ''' </font> <br>  
<font color="blue"> ''' // DIRECTORY ''' </font> <br>
: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>  
: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>  
: uint32 {4}&nbsp;&nbsp; - Number Of Files <br>  
: uint32 {4}&nbsp;&nbsp; - Number Of Files <br>  
<br>
: <font color="blue"> ''' // for each file ''' </font> <br>  
: <font color="blue"> ''' // for each file ''' </font> <br>  
:: uint32 {4}&nbsp;&nbsp; - File Length <br>  
:: uint32 {4}&nbsp;&nbsp; - Compressed File Length <font color="purple">(including 16-byte header)</font> <br>  
:: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>  
:: uint32 {4}&nbsp;&nbsp; - Decompressed File Length <br>  
:: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>  
:: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Hash? '' </font> <br>  
:: uint32 {4}&nbsp;&nbsp; - File Offset <font color="darkgreen">[+16]</font> <br>  
:: uint32 {4}&nbsp;&nbsp; - File Offset <br>
:: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>  
:: byte {1}&nbsp;&nbsp;&nbsp;&nbsp; - Compression Tag <font color="purple">(1=compressed 2=not compressed)</font> <br>  
:: byte {1}&nbsp;&nbsp;&nbsp;&nbsp; - Filename Length <font color="purple">(including null terminator)</font> <br>  
:: char {X}&nbsp;&nbsp;&nbsp;&nbsp; - Filename <br>  
:: char {X}&nbsp;&nbsp;&nbsp;&nbsp; - Filename <br>  
:: byte {1}&nbsp;&nbsp;&nbsp;&nbsp; - null Filename Terminator <br>  
:: byte {1}&nbsp;&nbsp;&nbsp;&nbsp; - null Filename Terminator <br>  
<br>
</b></tt>
</b></tt>


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


Not written yet<br><br>
<pre>
Get DUMMYL Long 0 ;
Get TAILOFF Long 0 ;
GoTo TAILOFF 0 ;
Get DUMMYL Long 0 ;
Get FILECNTL Long 0 ;
SavePos TAILOFF 0 ;
Do ;
GoTo TAILOFF 0 ;
Get FILESIZE Long 0 ;
Get DUMMYL Long 0 ;
Get DUMMYL Long 0 ;
Get FILEOFF Long 0 ;
Math FILEOFF += 16 ;
SavePos TAILOFF 0 ;
Math TAILOFF += 2 ;
GoTo TAILOFF 0 ;
Get FILENAME String 0 ;
SavePos TAILOFF 0 ;
Log FILENAME FILEOFF FILESIZE 0 0 ;
Math EXTRCNT += 1 ;
While EXTRCNT <> FILECNTL ;
</pre>
 
=== Other Games ===
This format is used in the following games...
* Giants Citizen Kabuto *.gzp
* Giants Citizen Kabuto Reaper *.gzp


=== Compatible Programs ===  
=== Compatible Programs ===  


* [[MultiEx_Commander|MultiEx Commander]]
* [[Game Extractor|Game Extractor]]<br>
* [[Game Extractor|Game Extractor]]<br>
[[Category:File Format]]

Latest revision as of 13:45, 10 January 2021

Choose archive extension:

GZP


Format Specifications

// ARCHIVE HEADER

uint32 {4}   - Unknown
uint32 {4}   - Directory Offset


// FILE DATA

// for each file
uint32 {4}   - Compressed File Length (including 16-byte header)
uint32 {4}   - Decompressed File Length
uint32 {4}   - Hash?
uint32 {4}   - Compression Tag (1=compressed 2=not compressed)
byte {X}     - File Data


// DIRECTORY

uint32 {4}   - Unknown
uint32 {4}   - Number Of Files
// for each file
uint32 {4}   - Compressed File Length (including 16-byte header)
uint32 {4}   - Decompressed File Length
uint32 {4}   - Hash?
uint32 {4}   - File Offset
byte {1}     - Compression Tag (1=compressed 2=not compressed)
byte {1}     - Filename Length (including null terminator)
char {X}     - Filename
byte {1}     - null Filename Terminator

MultiEx BMS Script

Get DUMMYL Long 0 ;
Get TAILOFF Long 0 ;
GoTo TAILOFF 0 ;
Get DUMMYL Long 0 ;
Get FILECNTL Long 0 ;
SavePos TAILOFF 0 ;
Do ;
GoTo TAILOFF 0 ;
Get FILESIZE Long 0 ;
Get DUMMYL Long 0 ;
Get DUMMYL Long 0 ;
Get FILEOFF Long 0 ;
Math FILEOFF += 16 ;
SavePos TAILOFF 0 ;
Math TAILOFF += 2 ;
GoTo TAILOFF 0 ;
Get FILENAME String 0 ;
SavePos TAILOFF 0 ;
Log FILENAME FILEOFF FILESIZE 0 0 ;
Math EXTRCNT += 1 ;
While EXTRCNT <> FILECNTL ;

Other Games

This format is used in the following games...

  • Giants Citizen Kabuto *.gzp
  • Giants Citizen Kabuto Reaper *.gzp

Compatible Programs