Zanzarah: The Hidden Portal PAK: Difference between revisions
Jump to navigation
Jump to search
(fixed now) |
(→Format Specifications: style) |
||
| Line 12: | Line 12: | ||
<tt><b> | <tt><b> | ||
uint32 {4} - null <br> | <font color="blue"> ''' // ARCHIVE HEADER ''' </font> <br> | ||
uint32 {4} - Number Of Files <br> | : uint32 {4} - null <br> | ||
: uint32 {4} - Number Of Files <br> | |||
<br> | <br> | ||
<font color="blue"> ''' // for each file ''' </font> <br> | <font color="blue"> ''' // FILES DIRECTORY ''' </font> <br> | ||
: uint32 {4} - Filename Length <br> | :<font color="blue"> ''' // for each file ''' </font> <br> | ||
: char {X} - Filename <font color="purple">(including ..\ at the front of the filename)</font> <br> | :: uint32 {4} - Filename Length <br> | ||
: uint32 {4} - Offset of data block <font color="purple">(relative to the end of | :: char {X} - Filename <font color="purple">(including ..\ at the front of the filename)</font> <br> | ||
: uint32 {4} - Length of data block <font color="purple">(substract 8 to get filesize)</font><br> | :: uint32 {4} - Offset of data block <font color="purple">(relative to the end of the files directory)</font> <br> | ||
:: uint32 {4} - Length of data block <font color="purple">(substract 8 to get filesize)</font><br> | |||
<br> | <br> | ||
<font color="blue"> ''' // for each data block ''' </font> <br> | <font color="blue"> ''' // FILE DATA ''' </font> <br> | ||
: uint32 {4} - Always 0x00000101 <br> | :<font color="blue"> ''' // for each data block ''' </font> <br> | ||
: byte {X} - File Data <br> | :: uint32 {4} - Always 0x00000101 <br> | ||
: uint32 {4} - Always 0x00000202 <br> | :: byte {X} - File Data <br> | ||
:: uint32 {4} - Always 0x00000202 <br> | |||
<br> | <br> | ||
</b></tt> | </b></tt> | ||
Revision as of 16:31, 7 December 2010
Choose archive extension:
PAK
- Format Type : Archive
- Endian Order : Little Endian
Format Specifications
// ARCHIVE HEADER
- uint32 {4} - null
- uint32 {4} - Number Of Files
// FILES DIRECTORY
- // for each file
- uint32 {4} - Filename Length
- char {X} - Filename (including ..\ at the front of the filename)
- uint32 {4} - Offset of data block (relative to the end of the files directory)
- uint32 {4} - Length of data block (substract 8 to get filesize)
- uint32 {4} - Filename Length
// FILE DATA
- // for each data block
- uint32 {4} - Always 0x00000101
- byte {X} - File Data
- uint32 {4} - Always 0x00000202
- uint32 {4} - Always 0x00000101
MultiEx BMS Script
Not written yet
Notes and Comments
- The files in the directory are NOT in the same order as the files in the archive. ie. file 1 in the directory may actually be file 3827 in the archive, etc.