Giants Citizen Kabuto GZP: Difference between revisions
Jump to navigation
Jump to search
imported>WATTO mNo edit summary |
imported>WATTO |
||
| Line 12: | Line 12: | ||
<tt><b> | <tt><b> | ||
uint32 {4} - <font color="red"> '' Unknown '' </font> <br> | <font color="blue"> ''' // ARCHIVE HEADER ''' </font> <br> | ||
uint32 {4} - Directory Offset <br> | : uint32 {4} - <font color="red"> '' Unknown '' </font> <br> | ||
: uint32 {4} - Directory Offset <br> | |||
<br> | <br> | ||
byte {X} - File Data <br> | <font color="blue"> ''' // FILE DATA ''' </font> <br> | ||
: <font color="blue"> ''' // for each file ''' </font> <br> | |||
:: uint32 {4} - Compressed File Length <font color="purple">(including 16-byte header)</font> <br> | |||
:: uint32 {4} - Decompressed File Length <br> | |||
:: uint32 {4} - <font color="red"> '' Hash? '' </font> <br> | |||
:: uint32 {4} - Compression Tag <font color="purple">(1=compressed 2=not compressed)</font> <br> | |||
:: byte {X} - File Data <br> | |||
<br> | <br> | ||
<font color="blue"> ''' // | <font color="blue"> ''' // DIRECTORY ''' </font> <br> | ||
: uint32 {4} - <font color="red"> '' Unknown '' </font> <br> | : uint32 {4} - <font color="red"> '' Unknown '' </font> <br> | ||
: uint32 {4} - Number Of Files <br> | : uint32 {4} - Number Of Files <br> | ||
: <font color="blue"> ''' // for each file ''' </font> <br> | : <font color="blue"> ''' // for each file ''' </font> <br> | ||
:: uint32 {4} - File Length <br> | :: uint32 {4} - Compressed File Length <font color="purple">(including 16-byte header)</font> <br> | ||
:: uint32 {4} - | :: uint32 {4} - Decompressed File Length <br> | ||
:: uint32 {4} - <font color="red"> '' | :: uint32 {4} - <font color="red"> '' Hash? '' </font> <br> | ||
:: uint32 {4} - File Offset <font color=" | :: uint32 {4} - File Offset <br> | ||
:: | :: byte {1} - Compression Tag <font color="purple">(1=compressed 2=not compressed)</font> <br> | ||
:: byte {1} - Filename Length <font color="purple">(including null terminator)</font> <br> | |||
:: char {X} - Filename <br> | :: char {X} - Filename <br> | ||
:: byte {1} - null Filename Terminator <br> | :: byte {1} - null Filename Terminator <br> | ||
</b></tt> | </b></tt> | ||
Revision as of 09:09, 20 December 2005
Choose archive extension:
GZP
- Format Type : Archive
- Endian Order : Little Endian
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
- uint32 {4} - Compressed File Length (including 16-byte header)
// 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
- uint32 {4} - Compressed File Length (including 16-byte header)
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