GRAF:ZIP Archive: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
Line 9: Line 9:
<tt><b>
<tt><b>
{{Blue|// for each file}} <br>  
{{Blue|// for each file}} <br>  
: char {2}&nbsp;&nbsp;&nbsp;&nbsp; - Header {{Purple|(PK)}} <br>  
: char {4}&nbsp;&nbsp;&nbsp;&nbsp; - Signature {{Purple|(0x04034b50)}} <br>  
: uint32 {4}&nbsp;&nbsp; - Entry Type {{Purple|(1311747 &#61; File Entry)}} <br>  
: uint8 {1}&nbsp;&nbsp;&nbsp; - Version needed to extract {{Purple|(major is X/10, minor is X MOD 10)}} <br>  
: uint16 {2}&nbsp;&nbsp; - '' {{Red|Unknown}} {{Purple|(2)}} '' <br>  
: uint8 {1}&nbsp;&nbsp;&nbsp; - File attribute support for different OSes
: uint16 {2}&nbsp;&nbsp; - '' {{Red|Unknown}} {{Purple|(8)}} '' <br>  
: uint16 {2}&nbsp;&nbsp; - General purpose bit flag<br>
: uint64 {8}&nbsp;&nbsp; - '' {{Red|Checksum?}} '' <br>  
: 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; - Compressed File Size <br>  
: uint32 {4}&nbsp;&nbsp; - Decompressed File Size <br>  
: uint32 {4}&nbsp;&nbsp; - Decompressed File Size <br>  
: uint32 {4}&nbsp;&nbsp; - Filename Length <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; - Filename <br>  
: char {X}&nbsp;&nbsp;&nbsp;&nbsp; - Extra field (usually non-existant)<br>
: byte {X}&nbsp;&nbsp;&nbsp;&nbsp; - File Data <br>  
: byte {X}&nbsp;&nbsp;&nbsp;&nbsp; - File Data <br>  
<br>
<br>

Revision as of 11:26, 5 October 2006

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

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="yes" silence="no"> External: PKZip</bms>

Notes and Comments

  • This is a generic ZIP archive


Compatible Programs


Other Games

These games use this file format

  • 18 Wheels Of Steel: Convoy *.scs
  • 18 Wheels Of Steel: Across America *.zipfs
  • 18 Wheels Of Steel: Pedal To The Metal *.zipfs
  • Against Rome *.dat
  • Alpha Black Zero *.abz
  • American McGee's Alice *.pk3
  • Arena Wars *.data *.texturepack *.awreplay
  • Battlefield 2 *.zip
  • Blitzkrieg *.pak
  • Blitzkrieg 2 *.pak
  • Brothers Pilots 4 *.pak
  • Buzz! The Great Music Quiz *.pak
  • Call of Duty *.pk3
  • Carnivores: Cityscape *.gro
  • Cellblock Squadrons *.box
  • Chrome SpecForce *.zip *.pak
  • Civilization: Call To Power *.ctp
  • Crime Life: Gang Wars *.pak
  • Deadly Dozen *.za
  • Deadly Dozen 2 *.zip
  • Defiance *.dat
  • Desperados: Wanted Dead or Alive *.pac
  • Dethkarz *.zip
  • Doom 2 *.pak
  • Doom 3 *.pk4
  • Duke Nukem Manhatten Project *.zipfs
  • El Airplane *.arh
  • Empire Earth 2 *.zip
  • Falcon 4 *.zip
  • Fallout Tactics *.bos
  • Far Cry *.pak
  • Fire Starter *.zip
  • 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
  • Heavy Metal FAKK 2 *.zip
  • Hellhog XP *.a
  • Hitman Contracts *.zip
  • Hitman 2 Silent Assasin *.zip
  • Hot Rod American Street Drag *.rod
  • House Of The Dead 3 *.zip
  • Hoyle Board Games 2005 *.zip
  • Hoyle Card Games 2005 *.zip
  • Hunting Unlimited *.zip
  • Imperial Glory *.zip
  • Itch *.psh
  • Jedi Academy *.pk3
  • Jedi Knight: Mysteries Of The Sith *.zip
  • Jedi Outcast *.pk3
  • Law And Order 3: Justice Is Served *.zip
  • Line Of Sight: Vietnam *.za
  • Lionheart *.dat
  • Master of Orion 3 *.mob
  • Maximus XV *.zip
  • MDK2 *.zip
  • Medal Of Honor: Allied Assault *.pk3
  • Metal Gear Solid *.mgz
  • Microsoft Flight Simulator 2004 *.zip
  • Monte Christo *.zip
  • Neighbours From Hell *.bnd
  • Neighbours From Hell 2 *.bnd
  • Outfront *.pak
  • Packmania 2 *.arf
  • Paradise Cracked *.zip
  • Perimeter *.pak
  • Pusher *.zip
  • Quake 3 *.pk3
  • Return To Castle Wolfenstein *.pk3
  • Revenant *.rvi *.rvm *.rvr
  • Richard Burns Rally *.rbz
  • Ricochet *.zip
  • Ricochet Xtreme *.dat
  • Sabotain *.zip
  • Savage *.s2z
  • Serious Sam *.gro
  • Serious Sam 2 *.gro
  • Shadow Warrior *.shr
  • Shark: Hunting The Great White *.zipfs
  • Singles: Flirt Up Your Life *.zip
  • Soldier Of Fortune 2 *.pk3
  • Soldiers: Heroes Of World War 2 *.pak
  • Soldiers Of Anarchy *.zip
  • Star Wolves *.zip
  • Swarm *.dat
  • S.W.A.T 3 *.res
  • System Shock 2 *.crf
  • Team Factor *.zip
  • Terminator 3 *.pod
  • The Fall: Last Days Of Gaia *.ubn
  • Thief: The Dark Age *.crf
  • Thief 2: The Metal Age *.crf
  • Transport Tycoon *.001
  • Tribes 2 *.zip
  • Universal Combat: A World Apart *.zip
  • Uplink *.dat
  • Vietnam: Line Of Sight *.za
  • Vampire: The Masquerade *.nob
  • WinAmp *.zip
  • Windows Media Player *.zip
  • Xpand Rally *.pak
  • XS Mark *.pk1 *.pk2
  • Zoo Tycoon *.ztd
  • Zoo Tycoon 2: Endangered Species *.z2f