Second Sight PAK: Difference between revisions
Jump to navigation
Jump to search
| Line 36: | Line 36: | ||
=== MultiEx BMS Script === | === MultiEx BMS Script === | ||
=== | |||
ImpType Standard ; | ImpType Standard ; | ||
GoTo 4 0 ; | GoTo 4 0 ; | ||
| Line 57: | Line 57: | ||
Log FN FO FS FOO FSO ; | Log FN FO FS FOO FSO ; | ||
Next n ; | Next n ; | ||
=== | |||
=== Compatible Programs === | === Compatible Programs === | ||
* [[Game Extractor|Game Extractor]]<br> | * [[Game Extractor|Game Extractor]]<br> | ||
Revision as of 09:25, 3 June 2005
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 ;