GRAF:ZIP Archive: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Ikskoks
imported>Ikskoks
 
(16 intermediate revisions by the same user not shown)
Line 2: Line 2:


== ZIP, ZIPFS, PK3, PK4, PAK, DAT ==
== ZIP, ZIPFS, PK3, PK4, PAK, DAT ==
{{GRAFPageMisc}}
 
* ''' Format Type ''':    Archive <br>
* ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Little Endian <br>
* ''' Signature ''':    PK <br>


=== Format Specifications ===
=== Format Specifications ===
{{GRAFPageFormat|1={{BlockDescription| // for each file }}
{{GRAFPageFormat|1={{BlockDescription| // for each file }}
: char {4} &nbsp;&nbsp;&nbsp; - Signature {{Constant|(0x04034b50)}}
: char {4} &nbsp;&nbsp;&nbsp; - Signature {{Constant|(50 4B 03 04)}} // "PK"
: uint8 {1} &nbsp;&nbsp; - Version needed to extract {{InlineComment|(major is X/10, minor is X MOD 10)}}
: uint8 {1} &nbsp;&nbsp; - Version needed to extract {{InlineComment|(major is X/10, minor is X MOD 10)}}
: uint8 {1} &nbsp;&nbsp; - File attribute support for different OSes
: uint8 {1} &nbsp;&nbsp; - File attribute support for different OSes
Line 58: Line 61:
=== Games ===
=== Games ===


* 0 A.D. (*.ZIP) (PC)
* [[18 Wheels Of Steel: Across America]] [[ZIPFS|*.zipfs]]
* [[18 Wheels Of Steel: Across America]] [[ZIPFS|*.zipfs]]
* [[18 Wheels Of Steel: Convoy]] [[SCS|*.scs]]
* [[18 Wheels Of Steel: Convoy]] [[SCS|*.scs]]
Line 155: Line 159:
* [[Pusher]] [[ZIP|*.zip]]
* [[Pusher]] [[ZIP|*.zip]]
* [[Puzzle Kingdoms]] [[ZIP|*.zip]]
* [[Puzzle Kingdoms]] [[ZIP|*.zip]]
* Quadrilateral Cowboy (*.PK4) (PC)
* [[Quake 3]] [[PK3|*.pk3]]
* [[Quake 3]] [[PK3|*.pk3]]
* [[Reflexive Arcade]] [[DAT|*.dat]]
* [[Reflexive Arcade]] [[DAT|*.dat]]
Line 202: Line 207:
* [[Vampire: The Masquerade]] [[NOB|*.nob]]
* [[Vampire: The Masquerade]] [[NOB|*.nob]]
* [[Vietnam: Line Of Sight]] [[ZA|*.za]]
* [[Vietnam: Line Of Sight]] [[ZA|*.za]]
* VRC PRO (PC) (*.ZIP *.VRC *.VRH, password: "d17856f1ce")
* [[WinAmp]] [[ZIP|*.zip]]
* [[WinAmp]] [[ZIP|*.zip]]
* [[Windows Media Player]] [[ZIP|*.zip]]
* [[Windows Media Player]] [[ZIP|*.zip]]
* [[World Of Padman]] [[PK3|*.pk3]]
* [[World Of Padman]] [[PK3|*.pk3]]
* Worms: Open Warfare 2 (PSP) (*.ZIP)
* [[XS Mark]] [[PK1|*.pk1]] [[PK2|*.pk2]]
* [[XS Mark]] [[PK1|*.pk1]] [[PK2|*.pk2]]
* [[Xpand Rally]] [[PAK|*.pak]]
* [[Xpand Rally]] [[PAK|*.pak]]

Latest revision as of 11:08, 1 May 2022

Back to index | Edit this page

ZIP, ZIPFS, PK3, PK4, PAK, DAT

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

Format Specifications

// for each file
char {4}     - Signature (50 4B 03 04) // "PK"
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