Source VPK

From XentaxWiki
Jump to: navigation, search

Contents: GRAFs page - All - 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z - Edit

Format Type: Archive
Extensions: vpk
Platforms: unknown
Endian Order: Little Endian



Format Specifications

There is a file named <name>_dir.vpk, which contains the directory for all package files with the name <name>_###.vpk
The packages are numbered incrementally from 000.
_dir.vpk file...
HEADER
  uint32 {4}       - Header ((bytes)85, 170, 18, 52)
  uint32 {4}       - Version (1)
  uint32 {4}       - Directory Length

DIRECTORY
  for each File Extension
    byte {X}         - File Extension
    byte {1}         - null File Extension Terminator
    for each directory within this File Extension
      byte {X}         - Directory Name
      byte {1}         - null Directory Name Terminator
      for each file in this Directory
        byte {X}         - Filename
        byte {1}         - null Filename Terminator
        uint32 {4}       - CRC
        uint16 {2}       - Number of Preload Bytes (data in this file)
        uint16 {2}       - Number of Archive Package File (eg 2 == <name>_002.vpk file) (or if the file data is in this directory file, the value = 32767)
        uint32 {4}       - File Offset (relative to the start of the Archive Package File referenced in the above field)
        uint32 {4}       - File Size (can be zero, if the bytes are all stored in Preload, and the whole file is contained in this directory file) (does not include the preload bytes length)
        uint16 {2}       - Entry Terminator (-1)
        if (PreloadBytes != 0){
          byte {X}         - Preload Data
          }

      byte {1}         - null End Of Current "Directory" Terminator

    uint16 {2}       - null End Of Current "File Extension" Terminator

  Repeat from "for each File Extension" whilever we haven't reached the end of the directory file



MultiEx BMS Script

No BMS script

Supported Programs



Notes

No additional notes

Games

  • Alien Swarm Reactive Drop
  • Counter-Strike: Global Offensive
  • Counter-Strike: Source
  • Day of Defeat: Source
  • Dota 2
  • Half-Life 2
  • Half-Life 2: Deathmatch
  • Half-Life: Source
  • Left 4 Dead
  • Left 4 Dead 2
  • Portal
  • Portal 2
  • Portal Stories: Mel
  • Source Filmmaker
  • Team Fortress 2
  • Transmissions Element 120
  • Valve Source Engine



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