GRAF:ZIP Archive: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>WATTO
imported>Ikskoks
 
(118 intermediate revisions by 12 users not shown)
Line 1: Line 1:
== ZIP, ZIPFS, PK3, PK4 ==  
{{GRAFPageHeader}}
 
== ZIP, ZIPFS, PK3, PK4, PAK, DAT ==


* ''' Format Type ''':    Archive <br>  
* ''' Format Type ''':    Archive <br>  
* ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Little Endian <br>  
* ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Little Endian <br>
* ''' Signature ''':    PK <br>
 
=== Format Specifications ===
{{GRAFPageFormat|1={{BlockDescription| // for each file }}
: 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; - 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


{{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}} {{Constant|(20)}}
: uint16 {2} &nbsp; - {{Unknown}} {{Constant|(2)}}
: uint16 {2} &nbsp; - {{Unknown}} {{Constant|(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


=== Format Specifications ===
char {2} &nbsp;&nbsp;&nbsp; - Header {{Constant|(PK)}}<br>
uint32 {4} &nbsp; - Entry Type {{InlineComment|(1541 &#61; Archive Entry)}}<br>
uint16 {2} &nbsp; - null<br>
uint64 {8} &nbsp; - {{Unknown|Checksum?}}<br>
uint32 {4} &nbsp; - Length Of File Data {{InlineComment|(archive size excluding the directory)}}<br>
uint16 {2} &nbsp; - null}}


<tt><b>
=== Notes and Comments ===
<font color="blue"> ''' // for each file ''' </font> <br>
This is a generic ZIP archive.
: char {2}&nbsp;&nbsp;&nbsp;&nbsp; - Header <font color="purple">(PK)</font> <br>
: uint32 {4}&nbsp;&nbsp; - Entry Type <font color="purple">(1311747 = File Entry)</font> <br>
: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Unknown <font color="purple">(2)</font> '' </font> <br>
: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Unknown <font color="purple">(8)</font> '' </font> <br>
: uint64 {8}&nbsp;&nbsp; - <font color="red"> '' Checksum? '' </font> <br>
: uint32 {4}&nbsp;&nbsp; - Compressed File Size <br>
: uint32 {4}&nbsp;&nbsp; - Decompressed File Size <br>
: uint32 {4}&nbsp;&nbsp; - Filename Length <br>
: char {X}&nbsp;&nbsp;&nbsp;&nbsp; - Filename <br>
: byte {X}&nbsp;&nbsp;&nbsp;&nbsp; - File Data <br>
<br>
<font color="blue"> ''' // for each file ''' </font> <br>
: char {2}&nbsp;&nbsp;&nbsp;&nbsp; - Header <font color="purple">(PK)</font> <br>
: uint32 {4}&nbsp;&nbsp; - Entry Type <font color="purple">(513 = Directory Entry)</font> <br>
: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Unknown <font color="purple">(20)</font> '' </font> <br>
: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Unknown <font color="purple">(2)</font> '' </font> <br>
: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Unknown <font color="purple">(8)</font> '' </font> <br>
: uint64 {8}&nbsp;&nbsp; - <font color="red"> '' Checksum? '' </font> <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 <font color="purple">(points to PK for this file in the directory)</font> <br>
: char {X}&nbsp;&nbsp;&nbsp;&nbsp; - Filename <br>
<br>
char {2}&nbsp;&nbsp;&nbsp;&nbsp; - Header <font color="purple">(PK)</font> <br>
uint32 {4}&nbsp;&nbsp; - Entry Type <font color="purple">(1541 = Archive Entry)</font> <br>
uint16 {2}&nbsp;&nbsp; - null <br>
uint64 {8}&nbsp;&nbsp; - <font color="red"> '' Checksum? '' </font> <br>
uint32 {4}&nbsp;&nbsp; - Length Of File Data <font color="purple">(archive size excluding the directory)</font> <br>
uint16 {2}&nbsp;&nbsp; - null <br>
<br>
</b></tt>


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


Treated as a PKZip file<br><br>
Treated as PKZip file.


=== Notes and Comments ===  
=== Supported by Programs ===
* {{ProgramSupportMexcom}}
* {{ProgramSupportGameExtracter}}
* [[Dragon Unpacker|Dragon UnPACKer]]
* Almost any standard file compressor/extractor (Windows' File Explorer, WinRAR, 7-Zip, etc.)


* This is a generic ZIP archive
=== Games ===
<br>


=== Compatible Programs ===
* 0 A.D. (*.ZIP) (PC)
* [[18 Wheels Of Steel: Across America]] [[ZIPFS|*.zipfs]]
* [[18 Wheels Of Steel: Convoy]] [[SCS|*.scs]]
* [[18 Wheels Of Steel: Pedal To The Metal]] [[ZIPFS|*.zipfs]]
* [[Adobe AIR]] [[AIR|*.air]]
* [[Against Rome]] [[DAT|*.dat]]
* [[Alpha Black Zero]] [[ABZ|*.abz]]
* [[American History Lux]] [[JAR|*.jar]]
* [[American McGee's Alice]] [[PK3|*.pk3]]
* [[Android Apps]] [[APK|*.apk]]
* [[Arena Wars]] [[DATA|*.data]] [[TEXTUREPACK|*.texturepack]] [[AWREPLAY|*.awreplay]]
* [[Battlefield 2]] [[ZIP|*.zip]]
* Beach Soccer (PC) (*.ZIP, password: "rokkimake")
* [[Blitzkrieg 2]] [[PAK|*.pak]]
* [[Blitzkrieg]] [[PAK|*.pak]]
* [[Braid]] [[ZIP|*.zip]]
* [[Broken Sword 2.5]] [[B25C|*.b25c]]
* [[Brothers Pilots 4]] [[PAK|*.pak]]
* [[Buzz! The Great Music Quiz]] [[PAK|*.pak]]
* [[Call of Duty 2]] [[IWD|*.iwd]]
* [[Call of Duty]] [[PK3|*.pk3]]
* [[Call of Juarez: Bound in Blood]] [[PAK|*.pak]]
* [[Carnivores: Cityscape]] [[GRO|*.gro]]
* [[Cellblock Squadrons]] [[BOX|*.box]]
* [[Chrome SpecForce]] [[PAK|*.pak]] [[ZIP|*.zip]]
* [[Citizen Abel: Gravity Bone]] [[PK3|*.pk3]]
* [[Civilization: Call To Power]] [[CTP|*.ctp]]
* [[Crime Life: Gang Wars]] [[PAK|*.pak]]
* [[Cyber-Wing]] [[ZIP|*.zip]]
* [[Dark Sector]] [[CACHE|*.cache]]
* [[Darkstar One]] [[CPR|*.cpr]]
* [[Deadly Dozen 2]] [[ZIP|*.zip]] (*.za or *.zip?)
* [[Deadly Dozen]] [[ZA|*.za]]
* [[Deer Drive]] [[SCS|*.scs]]
* [[Defiance]] [[DAT|*.dat]]
* [[Desperados: Wanted Dead or Alive]] [[PAC|*.pac]]
* [[Dethkarz]] [[ZIP|*.zip]]
* [[Doom 2]] [[PAK|*.pak]]
* [[Doom 3]] [[PK4|*.pk4]]
* [[Doomsday]] [[ZIP|*.zip]]
* [[Duke Nukem Manhatten Project]] [[ZIPFS|*.zipfs]]
* [[El Airplane]] [[ARH|*.arh]]
* [[El Matador]] [[DAT|*.dat]]
* [[Elite Warriors]] [[ZA|*.za]]
* [[Empire Earth 2]] [[ZIP|*.zip]]
* [[Falcon 4]] [[ZIP|*.zip]]
* [[Fallout Tactics]] [[BOS|*.bos]]
* [[Far Cry]] [[PAK|*.pak]]
* [[Fire Starter]] [[ZIP|*.zip]]
* [[Freedom Fighters]] [[ZIP|*.zip]]
* [[Freedom Force vs The 3rd Reich]] [[FF|*.ff]]
* [[Freelancer]] [[FLMOD|*.flmod]]
* [[Galactic Civilizations 2: Dread Lords]] [[DXPACK|*.dxpack]]
* [[Google Gadget]] [[GG|*.gg]]
* [[Google My Tracks]] [[KMZ|*.kmz]]
* [[Great Battles of WWII: Stalingrad]] [[PAK|*.pak]]
* [[Hard Truck: 18 Wheels Of Steel]] [[ZIPFS|*.zipfs]]
* [[Heavy Metal FAKK 2]] [[ZIP|*.zip]]
* [[Hellhog XP]] [[A|*.a]]
* [[Heroes Tactics]] [[_ZIP|*._zip]]
* [[Hitman 2: Silent Assasin]] [[ZIP|*.zip]]
* [[Hitman Contracts]] [[ZIP|*.zip]]
* [[Hot Rod American Street Drag]] [[ROD|*.rod]]
* [[House Of The Dead 3]] [[ZIP|*.zip]]
* [[Hoyle Board Games 2005]] [[ZIP|*.zip]]
* [[Hoyle Card Games 2005]] [[ZIP|*.zip]]
* [[Hunting Unlimited]] [[ZIP|*.zip]]
* [[Imperial Glory]] [[ZIP|*.zip]]
* [[Iron Grip: Warlord]] [[PK3|*.pk3]]
* [[Itch]] [[PSH|*.psh]]
* [[Jedi Academy]] [[PK3|*.pk3]]
* [[Jedi Knight: Mysteries Of The Sith]] [[ZIP|*.zip]]
* [[Jedi Outcast]] [[PK3|*.pk3]]
* [[King's Bounty: Armored Princess]] [[KFS|*.kfs]]
* [[Law And Order 3: Justice Is Served]] [[ZIP|*.zip]]
* [[Line Of Sight: Vietnam]] [[ZA|*.za]]
* [[Lionheart: Legacy of the Crusader]] [[DAT|*.dat]]
* [[MDK 2]] [[ZIP|*.zip]]
* [[Mad Ugly Dirty (M.U.D) TV]] [[DAT|*.dat]]
* [[Master of Orion 3]] [[MOB|*.mob]]
* [[Maximus XV]] [[ZIP|*.zip]]
* [[Mech Warrior 4 Mercenaries]] [[MTX|*.mtx]]
* [[Medal Of Honor: Allied Assault]] [[PK3|*.pk3]]
* [[Men Of War]] [[PAK|*.pak]]
* [[Metal Gear Solid]] [[MGZ|*.mgz]]
* [[Microsoft Flight Simulator 2004]] [[ZIP|*.zip]]
* [[Microsoft Office Documents]] [[DOCX|*.docx]] [[XLSX|*.xlsx]] [[PPTX|*.pptx]]
* [[Monte Christo]] [[ZIP|*.zip]]
* [[MotorM4X]] [[DTF|*.dtf]] [[SCN|*.scn]]
* [[Neighbours From Hell 2]] [[BND|*.bnd]]
* [[Neighbours From Hell]] [[BND|*.bnd]]
* [[Outfront]] [[PAK|*.pak]]
* [[PURE]] [[SDZ|*.sdz]]
* [[Packmania 2]] [[ARF|*.arf]]
* [[Paradise Cracked]] [[ZIP|*.zip]]
* [[Perimeter]] [[PAK|*.pak]]
* [[Pusher]] [[ZIP|*.zip]]
* [[Puzzle Kingdoms]] [[ZIP|*.zip]]
* Quadrilateral Cowboy (*.PK4) (PC)
* [[Quake 3]] [[PK3|*.pk3]]
* [[Reflexive Arcade]] [[DAT|*.dat]]
* [[Resurrection]] [[PAK|*.pak]]
* [[Return To Castle Wolfenstein]] [[PK3|*.pk3]]
* [[Revenant]] [[RVI|*.rvi]] [[RVM|*.rvm]] [[RVR|*.rvr]]
* [[Richard Burns Rally]] [[RBZ|*.rbz]]
* [[Ricochet Xtreme]] [[DAT|*.dat]]
* [[Ricochet]] [[ZIP|*.zip]]
* [[S.W.A.T. 3]] [[RES|*.res]]
* [[SAP BusinessObjects Archive]] [[BIAR|*.biar]]
* [[Sabotain]] [[ZIP|*.zip]]
* [[Savage 2: A Tortured Soul]] [[S2Z|*.s2z]]
* [[Savage]] [[S2Z|*.s2z]]
* [[Serious Sam 2]] [[GRO|*.gro]]
* [[Serious Sam]] [[GRO|*.gro]]
* [[Shadow Warrior]] [[SHR|*.shr]]
* [[Shark: Hunting The Great White]] [[ZIPFS|*.zipfs]]
* [[Singles: Flirt Up Your Life]] [[ZIP|*.zip]]
* [[Smokin' Guns]] [[PK3|*.pk3]]
* [[Sniper Fury]] [[PAK|*.pak]]
* [[Sniper Ghost Warrior]] [[PAK|*.pak]]
* [[Soldier Of Fortune 2]] [[PK3|*.pk3]]
* [[Soldiers Of Anarchy]] [[ZIP|*.zip]]
* [[Soldiers: Heroes Of World War 2]] [[PAK|*.pak]]
* [[Space Exploration]] [[JAR|*.jar]]
* [[Star Wolves]] [[ZIP|*.zip]]
* [[Supreme Commander]] [[SCD|*.scd]]
* [[Swarm]] [[DAT|*.dat]]
* [[System Shock 2]] [[CRF|*.crf]]
* [[Team Factor]] [[ZIP|*.zip]]
* [[Terminator 3]] [[POD|*.pod]]
* [[The Fall: Last Days Of Gaia]] [[UBN|*.ubn]]
* [[The Guild 2]] [[ZIP|*.zip]]
* [[The Tribez]] [[ZIP|*.zip]]
* [[Thief 2: The Metal Age]] [[CRF|*.crf]]
* [[Thief: The Dark Age]] [[CRF|*.crf]]
* [[Tom Clancy's H.A.W.X]] [[PAK|*.pak]] [[ZIP|*.zip]]
* [[ToolsMedia]] [[TMA|*.tma]]
* [[Torchlight]] [[ZIP|*.zip]]
* [[Transport Tycoon]] [[001|*.001]]
* [[Tribes 2]] [[ZIP|*.zip]]
* [[True Combat: Elite]] [[PK3|*.pk3]]
* [[Universal Combat: A World Apart]] [[ZIP|*.zip]]
* [[Uplink]] [[DAT|*.dat]]
* [[Urban Terror]] [[PK3|*.pk3]]
* [[Vampire: The Masquerade]] [[NOB|*.nob]]
* [[Vietnam: Line Of Sight]] [[ZA|*.za]]
* VRC PRO (PC) (*.ZIP *.VRC *.VRH, password: "d17856f1ce")
* [[WinAmp]] [[ZIP|*.zip]]
* [[Windows Media Player]] [[ZIP|*.zip]]
* [[World Of Padman]] [[PK3|*.pk3]]
* Worms: Open Warfare 2 (PSP) (*.ZIP)
* [[XS Mark]] [[PK1|*.pk1]] [[PK2|*.pk2]]
* [[Xpand Rally]] [[PAK|*.pak]]
* [[Zoo Tycoon 2: Endangered Species]] [[Z2F|*.z2f]]
* [[Zoo Tycoon]] [[ZTD|*.ztd]]
<br><br>


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


=== Other Games ===


These games also use this file format<br>
[[Category:Format Standard|ZipArchive]]
* 18 Wheels Of Steel: Across America *.zipfs
[[Category:Complete Almost Done|ZipArchive]]
* 18 Wheels Of Steel: Pedal To The Metal *.zipfs
[[Category:Platform PC|ZipArchive]]
* Alpha Black Zero *.abz
[[Category:BMS New|ZipArchive]]
* American McGee's Alice *.pk3
[[Category:BMS Author Unknown|ZipArchive]]
* Battlefield 2 *.zip
[[Category:CE Compressed|ZipArchive]]
* Blitzkrieg *.pak
[[Category:File Format]]
* Blitzkrieg 2 *.pak
* Call of Duty *.pk3
* Carnivores: Cityscape *.gro
* Chrome SpecForce *.zip *.pak
* Civilization: Call To Power *.ctp
* Deadly Dozen *.za
* Defiance *.dat
* Desperados: Wanted Dead or Alive *.pac
* Dethkarz *.zip
* Duke Nukem Manhatten Project *.zipfs
* El Airplane *.arh
* Empire Earth 2 *.zip
* Falcon 4 *.zip
* Fallout Tactics *.bos
* Far Cry *.pak
* Freedom Fighters *.zip
* Freedom Force vs The 3rd Reich *.ff
* Freelancer *.flmod
* Great Battles of WWII: Stalingrad *.pak
* Hard Truck: 18 Wheels Of Steel *.zipfs
* Hellhog XP *.a
* Hitman Contracts *.zip
* Hitman 2 Silent Assasin *.zip
* Hot Rod American Street Drag *.rod
* Jedi Academy *.pk3
* Jedi Outcast *.pk3
* Lionheart *.dat
* Master of Orion 3 *.mob
* Medal Of Honor: Allied Assault *.pk3
* Metal Gear Solid *.zip
* Outfront *.pak
* Packmania 2 *.arf
* Perimeter *.pak
* Quake 3 *.pk3
* Return To Castle Wolfenstein *.pk3
* Revenant *.rvi *.rvm *.rvr
* Richard Burns Rally *.rbz
* Ricochet Xtreme *.dat
* Serious Sam *.gro
* Shadow Warrior *.shr
* Shark: Hunting The Great White *.zipfs
* Soldier Of Fortune 2 *.pk3
* Soldiers Heroes Of World War 2 *.pak
* Swarm *.dat
* S.W.A.T 3 *.res
* System Shock 2 *.crf
* Terminator 3 *.pod
* The Fall - Last Days Of Gaia *.ubn
* Thief: The Dark Age *.crf
* Thief 2: The Metal Age *.crf
* Transport Tycoon *.001
* Universal Combat: A World Apart *.zip
* Uplink *.dat
* Vietnam: Line Of Sight *.za
* Vampire: The Masquerade *.nob
* Xpand Rally *.pak
* XS Mark *.pk1 *.pk2
* Zoo Tycoon *.ztd

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