WAD PAMPAK

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: wad
Platforms: unknown
Endian Order: Little Endian



Format Specifications

// Uses ZLib Compression for some files
// Files are listed in the directory in Reverse Order (ie the first entry in the directory is the last file in the archive)
// The filenames are hard to build - they have a directory structure to them, and are in the reverse order. Refer to Plugin_WAD_PAMPAK source code for filename building details.

// ARCHIVE HEADER
  8 - Header ("PAM_PAK" + (byte)0)
  2 - Number Of Files
  2 - Number of Names
  4 - Filename Directory Length
  4 - File Data Offset

// FILES DIRECTORY
  // for each file
    4 - File Length (Compressed)
    4 - File Offset
    
// UNKNOWN DIRECTORY
  // for each file
    2 - Unknown
    2 - Unknown
    2 - Unknown
    2 - Unknown (52685)

// NAMES DIRECTORY
  // for each name (filenames AND directory names)
    X - Filename/Directory Name
    1 - null Name Terminator
  
  1 - null End of Filename Directory terminator

// FILE DATA
  // for each file
    if (compressed){
      8 - File Header ("PAM-ZLB" + (byte)0)
      4 - Number of Blocks
      4 - Decompressed Block Length
      4 - Decompressed Last Block Length (0 if there is only 1 block)
      4 - Total Decompressed Length
      
      // for each block
        4 - Block Offset (Relative to the start of this file data)
      
      // for each block
        4 - Hash?
      
      // for each block
        X - File Data (ZLib Compression)
        
      0-3 - null Padding to a multiple of 4 bytes (This field does not exist for the Last file in the archive!)
      }
    else if (not compressed){
      X - File Data
      0-3 - null Padding to a multiple of 4 bytes (This field does not exist for the Last file in the archive!)
      }



MultiEx BMS Script

No BMS script

Supported Programs



Notes

No additional notes

Games

  • Pro Beach Soccer



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