Pro Beach Soccer WAD

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: PC
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.

QuickBMS Script

Supported Programs

Notes

  • On the PC version of "Pro Beach Soccer" there is one single archive named WadPc.wad and it contains all game data except music.

Games

  • Pro Beach Soccer (PC) (*.WAD)