Second Sight

From XentaxWiki
Jump to: navigation, search

Choose archive extension:

PAK


Format Specifications

char {4}     - Header (P4CK)
uint32 {4}   - Directory Offset
uint32 {4}   - Offset Directory Length
uint32 {4}   - Filename Directory Length

// for each file

byte {X}     - File Data
byte {0-15}  - null padding to a multiple of 16 bytes


// Directory

// for each file
uint32 {4}   - Filename Offset [+DirOffset]
uint32 {4}   - File Offset
uint32 {4}   - File Length
uint32 {4}   - null


// Filename Directory

// for each file
char {X}     - Filename
byte {1}     - null Filename Terminator


MultiEx BMS Script

ImpType Standard ; 
GoTo 4 0 ; 
Get DirOffset Long 0 ; 
Get FNum Long 0 ; 
Math FNum /= 16 ; 
Set JP Long DirOffset ; 
For n = 1 To FNum ; 
GoTo JP 0 ; 
Get FNO Long 0 ; 
Math FNO += DirOffset ; 
SavePos FOO 0 ; 
Get FO Long 0 ; 
SavePos FSO 0 ; 
Get FS Long 0 ; 
Get DN Long 0 ; 
SavePos JP 0 ; 
GoTo FNO 0 ; 
Get FN String 0 ; 
Log FN FO FS FOO FSO ; 
Next n ; 

Requires MexCom 4.0

Compatible Programs