GRAF:ZIP Archive

From XentaxWiki
(Redirected from GRAF:ZipArchive)
Jump to: navigation, search

Back to index | Edit this page

ZIP, ZIPFS, PK3, PK4, PAK, DAT

Format Specifications

// for each file
char {4}     - Signature (0x04034b50)
uint8 {1}    - Version needed to extract (major is X/10, minor is X MOD 10)
uint8 {1}    - File attribute support for different OSes
uint16 {2}   - General purpose bit flag
uint16 {2}   - Compression method
uint16 {2}   - Last mod file time
uint16 {2}   - Last mod file date
uint32 {4}   - CRC32
uint32 {4}   - Compressed File Size
uint32 {4}   - Decompressed File Size
uint16 {2}   - Filename Length
uint16 {2}   - Extra Field Length (usually 0)
char {X}     - Filename
char {X}     - Extra field (usually non-existant)
byte {X}     - File Data

// for each directory

char {2}     - Header (PK)
uint32 {4}   - Entry Type (513 = Directory Entry)
uint16 {2}   - Unknown (20)
uint16 {2}   - Unknown (2)
uint16 {2}   - Unknown (8)
uint64 {8}   - Checksum?
uint32 {4}   - Compressed File Size
uint32 {4}   - Decompressed File Size
uint32 {4}   - Filename Length
byte {10}    - null
uint32 {4}   - File Offset (points to PK for this file in the directory)
char {X}     - Filename

char {2}     - Header (PK)
uint32 {4}   - Entry Type (1541 = Archive Entry)
uint16 {2}   - null
uint64 {8}   - Checksum?
uint32 {4}   - Length Of File Data (archive size excluding the directory)

uint16 {2}   - null

Notes and Comments

This is a generic ZIP archive.

MultiEx BMS Script

Treated as PKZip file.

Supported by Programs

Games