GRAF:Trespasser TPA

From XentaxWiki
Jump to: navigation, search

Back to index | Edit this page

TPA

Format Specifications

uint32 {4}   - Version Number (50 01 00 00)

uint32 {4}   - Number of WBBlocks (See Notes 1 and 2)
uint32 {4}   - Version number? (18 00 00 00)
uint32 {4}   - Number of Foley Table Entries (null except for Effects.tpa)
uint32 {4}   - Absolute offset of Foley Table (= file size if #FoleyTables = 0)
uint32 {4}   - Number of WBTable Entries (Equal to or greater than # of WBBlocks) (See Note 2)

// for each WBTable Entry

uint32 {4}   - Sound ID (first one always D9 7B A0 F0) (See Note 3)
uint32 {4}   - Absolute offset of WBBlock
uint32 {4}   - Size of WBBlock
uint32 {4}   - Unknown (Usually null)
uint32 {4}   - Unknown (Usually null)
char {8}     - Header? (WBORn) (null-padded)
uint32 {4}   - Size of WBHeader
uint32 {4}   - Size of ADPCM Block
uint32 {4}   - Size of file data
uint32 {4}   - Uncompressed size of file data
uint32 {4}   - Sample Rate
byte {1}     - Output mode (01 = Mono, 02 = Stereo)
byte {1}     - Audio format (00 = PCM, 01 = DVI/IMA ADPCM)
byte {1}     - null
uint32 {4}   - Caption flag (null = No captions, 24 = Captions)

// for each WBBlock

char {8}     - Header? (WBORn) (null-padded)
uint32 {4}   - Size of WBHeader
uint32 {4}   - Size of ADPCM Block
uint32 {4}   - Size of file data
uint32 {4}   - Uncompressed size of file data
uint32 {4}   - Sample Rate
byte {1}     - Output mode (01 = Mono, 02 = Stereo)
byte {1}     - Audio format (00 = PCM, 01 = DVI/IMA ADPCM)
byte {1}     - null
uint32 {4}   - Caption flag (null = No captions, 24 = Captions)
if( captionFlag == 0x00000024 ){
uint32 {4}   - Size of caption
uint32 {4}   - Number of caption lines (Can't be null)
// For each caption line
uint32 {4}   - Length of time to display caption (250ms increments?)
char {x}     - Caption line data (null-terminated)
}

byte {x}     - File data

//for each Foley Table

uint32 {4}   - SoundMaterial1 hash
uint32 {4}   - SoundMaterial2 hash
uint32 {4}   - NumEffectSounds
uint32 {4}   - Unknown
uint32 {4}   - Unknown
uint64 {8}   - Effect hashes
uint32 {4}   - Other effect hash
byte {x}     - Unknown

Notes and Comments

Note 1 (field names)

Several of the fields in the format specifications are named "WBsomething". This is because of the string "WBOR" which appears regularly throughout every *.tpa file. The "WB" in the field names thus represent the string "WBOR".

Note 2 (number of WBBlocks, WBTables)

The number of WBBlocks in a given file should match the number of WBTables, but sometimes it doesn't. This is because the same sound data will sometimes have two, and possibly even more, Sound IDs. When this happens, the number of WBTables is always higher than the number of WBBlocks.

Note 3 (first WBTable)

The first WBTable always points to a block of zeroes that are either 16536 or 22120 bytes long. This first, missing entry is the default sound played whenever the TPA is missing the sound called for.

MultiEx BMS Script

None written yet.

Supported by Programs

Unknown

Links

Games

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