Second Sight PAK: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
Line 36: Line 36:


=== MultiEx BMS Script ===  
=== MultiEx BMS Script ===  
===
<tt><pre>
ImpType Standard ;  
ImpType Standard ;  
GoTo 4 0 ;  
GoTo 4 0 ;  
Line 56: Line 56:
Get FN String 0 ;  
Get FN String 0 ;  
Log FN FO FS FOO FSO ;  
Log FN FO FS FOO FSO ;  
Next n ;
Next n ;  
</pre></tt>
 
Requires [[MultiEx_Commander|MexCom]] 4.0
 
===
===



Revision as of 09:37, 3 June 2005

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