GRAF:ZIP Archive: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
(testing)
imported>Dinoguy1000
m (saving to protect changes)
Line 1: Line 1:
== ZIP, ZIPFS, PK3, PK4 ==
{{GRAFPageHeader}}


* ''' Format Type ''':    Archive <br>
== ZIP, ZIPFS, PK3, PK4 ==
* ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Little Endian <br>
{{GRAFPageMisc|date_posted=04:48, December 11, 2005}}


=== Format Specifications ===
{{GRAFPageFormat|1={{BlockDescription| // for each file }}
: char {4} &nbsp;&nbsp;&nbsp; - Signature {{Constant|(0x04034b50)}}
: 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
: uint16 {2} &nbsp; - General purpose bit flag
: uint16 {2} &nbsp; - Compression method
: uint16 {2} &nbsp; - Last mod file time
: uint16 {2} &nbsp; - Last mod file date
: uint32 {4} &nbsp; - CRC32
: uint32 {4} &nbsp; - Compressed File Size
: uint32 {4} &nbsp; - Decompressed File Size
: uint16 {2} &nbsp; - Filename Length
: uint16 {2} &nbsp; - Extra Field Length {{InlineComment|(usually 0)}}
: char {X} &nbsp;&nbsp;&nbsp; - Filename
: char {X} &nbsp;&nbsp;&nbsp; - Extra field {{InlineComment|(usually non-existant)}}
: byte {X} &nbsp;&nbsp;&nbsp; - File Data


=== Format Specifications ===
{{BlockDescription| // for each directory }}
: char {2} &nbsp;&nbsp;&nbsp; - Header {{Constant|(PK)}}
: uint32 {4} &nbsp; - Entry Type {{Constant|(513 &#61; Directory Entry)}}
: uint16 {2} &nbsp; - {{Unknown}} {{Purple|(20)}}
: uint16 {2} &nbsp; - {{Unknown}} {{Purple|(2)}}
: uint16 {2} &nbsp; - {{Unknown}} {{Purple|(8)}}
: uint64 {8} &nbsp; - {{Unknown|Checksum?}}
: uint32 {4} &nbsp; - Compressed File Size
: uint32 {4} &nbsp; - Decompressed File Size
: uint32 {4} &nbsp; - Filename Length
: byte {10} &nbsp;&nbsp; - null
: uint32 {4} &nbsp; - File Offset {{InlineComment|(points to PK for this file in the directory)}}
: char {X} &nbsp;&nbsp;&nbsp; - Filename


<tt><b>
char {2} &nbsp;&nbsp;&nbsp; - Header {{Constant|(PK)}}<br>
{{Blue|// for each file}} <br>
uint32 {4} &nbsp; - Entry Type {{InlineComment|(1541 &#61; Archive Entry)}}<br>
: char {4}&nbsp;&nbsp;&nbsp;&nbsp; - Signature {{Purple|(0x04034b50)}} <br>
uint16 {2} &nbsp; - null<br>
: uint8 {1}&nbsp;&nbsp;&nbsp; - Version needed to extract {{Purple|(major is X/10, minor is X MOD 10)}} <br>
uint64 {8} &nbsp; - {{Unknown|Checksum?}}<br>
: uint8 {1}&nbsp;&nbsp;&nbsp; - File attribute support for different OSes
uint32 {4} &nbsp; - Length Of File Data {{InlineComment|(archive size excluding the directory)}}<br>
: uint16 {2}&nbsp;&nbsp; - General purpose bit flag<br>
uint16 {2} &nbsp; - null}}
: uint16 {2}&nbsp;&nbsp; - Compression method<br>
: uint16 {2}&nbsp;&nbsp; - Last mod file time<br>
: uint16 {2}&nbsp;&nbsp; - Last mod file date<br>
: uint32 {4}&nbsp;&nbsp; - CRC32<br>
: uint32 {4}&nbsp;&nbsp; - Compressed File Size <br>
: uint32 {4}&nbsp;&nbsp; - Decompressed File Size <br>
: uint16 {2}&nbsp;&nbsp; - Filename Length <br>
: uint16 {2}&nbsp;&nbsp; - Extra Field Length (usually 0)<br>
: char {X}&nbsp;&nbsp;&nbsp;&nbsp; - Filename <br>
: char {X}&nbsp;&nbsp;&nbsp;&nbsp; - Extra field (usually non-existant)<br>
: byte {X}&nbsp;&nbsp;&nbsp;&nbsp; - File Data <br>
<br>
{{Blue|// for each directory}} <br>
: char {2}&nbsp;&nbsp;&nbsp;&nbsp; - Header {{Purple|(PK)}} <br>  
: uint32 {4}&nbsp;&nbsp; - Entry Type {{Purple|(513 &#61; Directory Entry)}} <br>
: uint16 {2}&nbsp;&nbsp; - '' {{Red|Unknown}} {{Purple|(20)}} '' <br>
: uint16 {2}&nbsp;&nbsp; - '' {{Red|Unknown}} {{Purple|(2)}} '' <br>
: uint16 {2}&nbsp;&nbsp; - '' {{Red|Unknown}} {{Purple|(8)}} '' <br>
: uint64 {8}&nbsp;&nbsp; - '' {{Red|Checksum?}} <br>
: uint32 {4}&nbsp;&nbsp; - Compressed File Size <br>
: uint32 {4}&nbsp;&nbsp; - Decompressed File Size <br>
: uint32 {4}&nbsp;&nbsp; - Filename Length <br>
: byte {10}&nbsp;&nbsp;&nbsp; - null <br>
: uint32 {4}&nbsp;&nbsp; - File Offset {{Purple|(points to PK for this file in the directory)}} <br>
: char {X}&nbsp;&nbsp;&nbsp;&nbsp; - Filename <br>
<br>
char {2}&nbsp;&nbsp;&nbsp;&nbsp; - Header {{Purple|(PK)}} <br>
uint32 {4}&nbsp;&nbsp; - Entry Type {{Purple|(1541 &#61; Archive Entry)}} <br>  
uint16 {2}&nbsp;&nbsp; - null <br>  
uint64 {8}&nbsp;&nbsp; - '' {{Red|Checksum?}} '' <br>  
uint32 {4}&nbsp;&nbsp; - Length Of File Data {{Purple|(archive size excluding the directory)}} <br>  
uint16 {2}&nbsp;&nbsp; - null <br>
<br>
</b></tt>


=== MultiEx BMS Script ===  
=== Notes and Comments ===
This is a generic ZIP archive.
 
=== MultiEx BMS Script ===


Treated as PKZip file.
Treated as PKZip file.
Line 55: Line 53:
External: PKZip</bms>
External: PKZip</bms>


=== Notes and Comments ===  
=== Supported by Programs ===
 
* {{ProgramSupportMexcom}}
* This is a generic ZIP archive
* {{ProgramSupportGameExtracter}}
<br>
* [[Dragon_Unpacker|Dragon UnPACKer]]
 
* Almost any standard file compressor/extracter
=== Compatible Programs ===


* [[MultiEx_Commander|MultiEx Commander]]
=== Links ===
* [[Game Extractor|Game Extractor]]
None
* [[Dragon_Unpacker|Dragon UnPACKer]]<br/>
<br/>


=== Other Games ===  
=== Games ===


These games use this file format<br>
* [[18 Wheels Of Steel: Across America]] [[ZIPFS|*.zipfs]]
* 18 Wheels Of Steel: Convoy *.scs
* [[18 Wheels Of Steel: Convoy]] [[SCS|*.scs]]
* 18 Wheels Of Steel: Across America *.zipfs
* [[18 Wheels Of Steel: Pedal To The Metal]] [[ZIPFS|*.zipfs]]
* 18 Wheels Of Steel: Pedal To The Metal *.zipfs
* [[Against Rome]] [[DAT|*.dat]]
* Against Rome *.dat
* [[Alpha Black Zero]] [[ABZ|*.abz]]
* Alpha Black Zero *.abz
* [[American McGee's Alice]] [[PK3|*.pk3]]
* American McGee's Alice *.pk3
* [[Arena Wars]] [[DATA|*.data]] [[TEXTUREPACK|*.texturepack]] [[AWREPLAY|*.awreplay]]
* Arena Wars *.data *.texturepack *.awreplay
* [[Battlefield 2]] [[ZIP|*.zip]]
* Battlefield 2 *.zip
* [[Blitzkrieg]] [[PAK|*.pak]]
* Blitzkrieg *.pak
* [[Blitzkrieg 2]] [[PAK|*.pak]]
* Blitzkrieg 2 *.pak
* [[Brothers Pilots 4]] [[PAK|*.pak]]
* Brothers Pilots 4 *.pak
* [[Buzz! The Great Music Quiz]] [[PAK|*.pak]]
* Buzz! The Great Music Quiz *.pak
* [[Call of Duty]] [[PK3|*.pk3]]
* Call of Duty *.pk3
* [[Call of Duty 2]] [[IWD|*.iwd]]
* Carnivores: Cityscape *.gro
* [[Carnivores: Cityscape]] [[GRO|*.gro]]
* Cellblock Squadrons *.box
* [[Cellblock Squadrons]] [[BOX|*.box]]
* Chrome SpecForce *.zip *.pak
* [[Chrome SpecForce]] [[PAK|*.pak]] [[ZIP|*.zip]]
* Civilization: Call To Power *.ctp
* [[Civilization: Call To Power]] [[CTP|*.ctp]]
* Crime Life: Gang Wars *.pak
* [[Crime Life: Gang Wars]] [[PAK|*.pak]]
* Deadly Dozen *.za
* [[Deadly Dozen]] [[ZA|*.za]]
* Deadly Dozen 2 *.zip
* [[Deadly Dozen 2]] [[ZIP|*.zip]] (*.za or *.zip?)
* Defiance *.dat
* [[Defiance]] [[DAT|*.dat]]
* Desperados: Wanted Dead or Alive *.pac
* [[Desperados: Wanted Dead or Alive]] [[PAC|*.pac]]
* Dethkarz *.zip
* [[Dethkarz]] [[ZIP|*.zip]]
* Doom 2 *.pak
* [[Doom 2]] [[PAK|*.pak]]
* Doom 3 *.pk4
* [[Doom 3]] [[PK4|*.pk4]]
* Duke Nukem Manhatten Project *.zipfs
* [[Duke Nukem Manhatten Project]] [[ZIPFS|*.zipfs]]
* El Airplane *.arh
* [[El Airplane]] [[ARH|*.arh]]
* Empire Earth 2 *.zip
* [[Elite Warriors]] [[ZA|*.za]]
* [[Empire Earth 2]] [[ZIP|*.zip]]
* Falcon 4 *.zip
* Falcon 4 *.zip
* Fallout Tactics *.bos
* Fallout Tactics *.bos
Line 176: Line 172:
* Zoo Tycoon 2: Endangered Species *.z2f
* Zoo Tycoon 2: Endangered Species *.z2f


[[Category:BMS]]
{{GRAFPageFooter}}
 
[[Category:Format Standard|ZipArchive]]
[[Category:Complete Almost Done|ZipArchive]]
[[Category:Platform PC|ZipArchive]]
[[Category:BMS New|ZipArchive]]
[[Category:BMS Author Unknown|ZipArchive]]
[[Category:CE Compressed|ZipArchive]]

Revision as of 19:01, 7 February 2007

Back to index | Edit this page

ZIP, ZIPFS, PK3, PK4

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.

<bms author="PK" ext="zipfs" games="'Duke Nukem: Manhattan Project','18 Wheels Of Steel: Across America','18 Wheels Of Steel: Pedal To The Metal'" platforms="'PC','PC','PC'" version="1.0" verbose="no" silence="no"> External: PKZip</bms>

Supported by Programs

Links

None

Games

Navigation

Jump to a listing by...
All Formats - Common Formats - Standard Formats - Malformed Pages
Platforms
Microsoft:
Xbox
Xbox 360
Nintendo:
GameCube
DS
Desktop:
PC
Sega:
Dreamcast
Sony:
PlayStation
PlayStation 2
PlayStation 3
PlayStation Portable
Type
Animation - Archive - Audio - Image - Mesh - Miscellaneous - Model - Video
Endianness
Little-endian - Big-endian
BMS Scripts
Pages Without a BMS Script

All Pages with Scripts:
Recently Added Scripts

Program Support
No Known Support

MultiEx Commander - Game Extractor

Format Specification Completion
Work in Progress - Almost Done - Completed
Compression and Encryption
No Compression or Encryption Used - Unknown Compression or Encryption Used

One or Both Used:
Compression Used - Both Compression and Encryption Used