Heroes Of Might And Magic 4 H4R: Difference between revisions
Jump to navigation
Jump to search
imported>WATTO No edit summary |
imported>AKuHAK |
||
| Line 23: | Line 23: | ||
:: uint32 {4} - Data Offset <br> | :: uint32 {4} - Data Offset <br> | ||
:: uint32 {4} - File Length <br> | :: uint32 {4} - File Length <br> | ||
:: uint32 {4} - Directory Length | :: uint32 {4} - Directory Length <font color="purple">(compresed size)</font> <br> | ||
:: uint32 {4} - <font color="red"> '' Time? (UNIX format) '' </font> <br> | |||
:: | |||
<br> | <br> | ||
:: <font color="blue"> ''' if ( | :: <font color="blue"> ''' if (fileNameLength > 0){ ''' </font> <br> | ||
::: <font color="blue"> ''' // File ''' </font> <br> | ::: <font color="blue"> ''' // File ''' </font> <br> | ||
::: uint16 {2} - <font color=" | ::: uint16 {2} - Filename Length <br> | ||
::: uint32 {4} - Compression <br> | ::: char {X} - Filename <br> | ||
::: <font color="blue"> ''' } ''' </font> | ::: uint16 {2} - Directory Name Length <br> | ||
<br> | ::: char {X} - Directory Name <br> | ||
::: uint16 {2} - Pointer Name Length <font color="purple">(null)</font><br> | |||
::: char {X} - Pointer Name <font color="purple">(null - doesn't exist)</font> <br> | |||
::: uint32 {4} - Compression Level <font color="purple">(always null for pointer data)</font><br> | |||
::: <font color="blue"> ''' } ''' </font> <br> | |||
:: <font color="blue"> ''' else { ''' </font> <br> | :: <font color="blue"> ''' else { ''' </font> <br> | ||
::: <font color="blue"> ''' // | ::: <font color="blue"> ''' // Pointer ''' </font> <br> | ||
::: char { | ::: uint16 {2} - Filename Length <font color="purple">(null)</font> <br> | ||
::: char {X} - Filename <font color="purple">(null - doesn't exist)</font> <br> | |||
::: uint16 {2} - Directory Name Length <font color="purple">(null)</font> <br> | |||
::: char {X} - Directory Name <font color="purple">(null - doesn't exist)</font> <br> | |||
::: uint16 {2} - Pointer Name Length<br> | |||
::: char {X} - Pointer Name <font color="purple">(must be equivalent to existing FileName)</font><br> | |||
::: uint32 {4} - Compression Level <font color="purple">(0 - without compression, 3 - normal gzip compression)</font><br> | |||
::: <font color="blue"> ''' } ''' </font> <br> | ::: <font color="blue"> ''' } ''' </font> <br> | ||
<br> | <br> | ||
</b></tt> | </b></tt> | ||
Revision as of 08:01, 23 October 2012
Choose archive extension:
H4R
- Format Type : Archive
- Endian Order : Little Endian
Format Specifications
byte {4} - Header (72 52 82 5)
uint32 {4} - Directory Offset
byte {X} - File Data
// Directory
- uint32 {4} - Number Of Files
- // for each file
- uint32 {4} - Data Offset
- uint32 {4} - File Length
- uint32 {4} - Directory Length (compresed size)
- uint32 {4} - Time? (UNIX format)
- uint32 {4} - Data Offset
- if (fileNameLength > 0){
- // File
- uint16 {2} - Filename Length
- char {X} - Filename
- uint16 {2} - Directory Name Length
- char {X} - Directory Name
- uint16 {2} - Pointer Name Length (null)
- char {X} - Pointer Name (null - doesn't exist)
- uint32 {4} - Compression Level (always null for pointer data)
- }
- // File
- else {
- // Pointer
- uint16 {2} - Filename Length (null)
- char {X} - Filename (null - doesn't exist)
- uint16 {2} - Directory Name Length (null)
- char {X} - Directory Name (null - doesn't exist)
- uint16 {2} - Pointer Name Length
- char {X} - Pointer Name (must be equivalent to existing FileName)
- uint32 {4} - Compression Level (0 - without compression, 3 - normal gzip compression)
- }
- // Pointer
- if (fileNameLength > 0){
MultiEx BMS Script
Not written yet