Second Sight PAK: Difference between revisions
Jump to navigation
Jump to search
imported>WATTO No edit summary |
imported>Ikskoks |
||
| (18 intermediate revisions by 4 users not shown) | |||
| Line 36: | Line 36: | ||
=== MultiEx BMS Script === | === MultiEx BMS Script === | ||
<tt><pre> | |||
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 ; | |||
</pre></tt> | |||
Requires [[MultiEx_Commander|MexCom]] 4.0 | |||
=== Compatible Programs === | === Compatible Programs === | ||
* [[MultiEx Commander|MultiEx Commander]] | |||
* [[Game Extractor|Game Extractor]]<br> | * [[Game Extractor|Game Extractor]]<br> | ||
[[Category:Extension_pak | Extension: pak]] | |||
[[Category:File Format]] | |||
Latest revision as of 19:31, 29 March 2022
Choose archive extension:
PAK
- Format Type : Archive
- Endian Order : Little Endian
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
- uint32 {4} - Filename Offset [+DirOffset]
// Filename Directory
- // for each file
- char {X} - Filename
- byte {1} - null Filename Terminator
- char {X} - Filename
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