Tony Hawk - Pro Skater 2

From XentaxWiki
Jump to: navigation, search

Choose archive extension:

PKR


Format Specifications

char {4}     - Header (PKR2)
uint32 {4}   - Version (1)
uint32 {4}   - Number Of Directories
uint32 {4}   - Number Of Files

// for each directory

byte {32}    - Directory Name
uint32 {4}   - Offset to the first file entry for this directory
uint32 {4}   - Number Of Files


// for each file

byte {32}    - Filename
uint32 {4}   - Unknown (-2)
uint32 {4}   - Offset
uint32 {4}   - Uncompressed Size
uint32 {4}   - Compressed Size


byte {X}     - File Data

MultiEx BMS Script

ImpType Standard ;
IDString 0 PKR2 ;
Get TEMP Long 0 ;
Get DIRNUM Long 0 ;
Get TEMP Long 0 ;
For D = 1 To DIRNUM ;
GetDString DIRNAME 32 0 ;
Get NEXTFILE Long 0 ;
Get FILENUM Long 0 ;
SavePos NEXTDIR 0 ;
Set FNNUM Long 0 ;
GoTo NEXTFILE 0 ;
Do ;
Math FNNUM += 1 ;
GetDString FNREAL 32 0 ;
Get TEMP Long 0 ;
SavePos FOFFSETX 0 ;
Get FOFFSET Long 0 ;
Get FSIZE Long 0 ;
SavePos FSIZEX 0 ;
Get FSIZE Long 0 ;
Set FNAME String DIRNAME ;
String FNAME += FNREAL ;
Log FNAME FOFFSET FSIZE FOFFSETX FSIZEX ;
While FNNUM < FILENUM ;
GoTo NEXTDIR 0 ;
Next D ;


Notes and Comments

  • No compression is used, so the compressed and uncompressed sizes are the same



Compatible Programs