Chicken Little HOG: Difference between revisions
Jump to navigation
Jump to search
imported>WATTO mNo edit summary |
imported>Ikskoks No edit summary |
||
| (4 intermediate revisions by 3 users not shown) | |||
| Line 14: | Line 14: | ||
uint16 {2} - Version Major <font color="purple">(2)</font> <br> | uint16 {2} - Version Major <font color="purple">(2)</font> <br> | ||
uint16 {2} - Version Minor <font color="purple">(1)</font> <br> | uint16 {2} - Version Minor <font color="purple">(1)</font> <br> | ||
uint32 {4} - | uint32 {4} - Number Of Files <br> | ||
uint32 {4} - Directory Length <br> | uint32 {4} - Directory Length <br> | ||
uint32 {4} - Padding Size | uint32 {4} - Padding Size <br> | ||
byte { | byte {0-x} - null Padding to offset ''<font color="green">"Padding Size"</font>'' <br> | ||
<br> | <br> | ||
<font color="blue"> ''' // for each file ''' </font> <br> | <font color="blue"> ''' // for each file ''' </font> <br> | ||
| Line 28: | Line 28: | ||
: byte {1} - null Filename Terminator <br> | : byte {1} - null Filename Terminator <br> | ||
<br> | <br> | ||
byte {0- | byte {0-(''<font color="green">"Padding Size"-1</font>'')} - null Padding to a multiple of ''<font color="green">"Padding Size"</font>'' bytes <br> | ||
<br> | <br> | ||
<font color="blue"> ''' // for each file ''' </font> <br> | <font color="blue"> ''' // for each file ''' </font> <br> | ||
: byte {X} - File Data <br> | : byte {X} - File Data <br> | ||
: byte {0- | : byte {0-(''<font color="green">"Padding Size"-1</font>'')} - null Padding to a multiple of ''<font color="green">"Padding Size"</font>'' bytes <br> | ||
</b></tt> | </b></tt><br> | ||
=== MultiEx BMS === | === MultiEx BMS === | ||
<pre>ImpType Standard ; | |||
Get FOOBAR Long 0 ; | |||
Get FILENUM Long 0 ; | |||
Get DIRSIZE Long 0 ; | |||
Get PADSIZE Long 0 ; | |||
Set TEMP Long PADSIZE ; | |||
GoTo TEMP 0 ; | |||
SavePos ENTOFF 0 ; | |||
For Z = 1 To FILENUM ; | |||
GoTo TEMP 0 ; | |||
Math TEMP += 12 ; | |||
Next Z ; | |||
GoTo TEMP 0 ; | |||
SavePos FNAMEOFF 0 ; | |||
For X = 1 To FILENUM ; | |||
GoTo ENTOFF 0 ; | |||
Get FOOBAR Long 0 ; | |||
SavePos FOFFSETX 0 ; | |||
Get FOFFSET Long 0 ; | |||
SavePos FSIZEX 0 ; | |||
Get FSIZE Long 0 ; | |||
SavePos ENTOFF 0 ; | |||
GoTo FNAMEOFF 0 ; | |||
Get FNAME String 0 ; | |||
SavePos FNAMEOFF 0 ; | |||
Log FNAME FOFFSET FSIZE FOFFSETX FSIZEX ; | |||
Next X ;</pre> | |||
=== Other Games === | === Other Games === | ||
These games also use this format... | These games also use this format... | ||
| Line 47: | Line 72: | ||
* [[Game Extractor|Game Extractor]]<br> | * [[Game Extractor|Game Extractor]]<br> | ||
* [[MultiEx Commander|MultiEx Commander]]<br> | |||
[[Category:File Format]] | |||
Latest revision as of 12:00, 4 January 2021
Choose archive extension:
HOG
- Format Type : Archive
- Endian Order : Little Endian
Format Specifications
uint16 {2} - Version Major (2)
uint16 {2} - Version Minor (1)
uint32 {4} - Number Of Files
uint32 {4} - Directory Length
uint32 {4} - Padding Size
byte {0-x} - null Padding to offset "Padding Size"
// for each file
- uint32 {4} - File ID?
- uint32 {4} - File Offset
- uint32 {4} - File Length
// for each file
- char {X} - Filename
- byte {1} - null Filename Terminator
byte {0-("Padding Size"-1)} - null Padding to a multiple of "Padding Size" bytes
// for each file
- byte {X} - File Data
- byte {0-("Padding Size"-1)} - null Padding to a multiple of "Padding Size" bytes
MultiEx BMS
ImpType Standard ; Get FOOBAR Long 0 ; Get FILENUM Long 0 ; Get DIRSIZE Long 0 ; Get PADSIZE Long 0 ; Set TEMP Long PADSIZE ; GoTo TEMP 0 ; SavePos ENTOFF 0 ; For Z = 1 To FILENUM ; GoTo TEMP 0 ; Math TEMP += 12 ; Next Z ; GoTo TEMP 0 ; SavePos FNAMEOFF 0 ; For X = 1 To FILENUM ; GoTo ENTOFF 0 ; Get FOOBAR Long 0 ; SavePos FOFFSETX 0 ; Get FOFFSET Long 0 ; SavePos FSIZEX 0 ; Get FSIZE Long 0 ; SavePos ENTOFF 0 ; GoTo FNAMEOFF 0 ; Get FNAME String 0 ; SavePos FNAMEOFF 0 ; Log FNAME FOFFSET FSIZE FOFFSETX FSIZEX ; Next X ;
Other Games
These games also use this format...
- Chicken Little *.hog
- Tak 3: The Great Juju Challenge (XBox) *.hog