BNK Wildfire: Difference between revisions
Jump to navigation
Jump to search
imported>Ikskoks (→BNK) |
imported>Ikskoks (→BNK) |
||
| Line 3: | Line 3: | ||
* ''' Format Type ''': Archive <br> | * ''' Format Type ''': Archive <br> | ||
* ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Little Endian <br> | * ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Little Endian <br> | ||
* ''' Signature ''': Wildfire <br> | * ''' Signature ''': Wildfire <br> | ||
| Line 22: | Line 21: | ||
<br> | <br> | ||
<font color="blue"> ''' // ARCHIVE FOOTER ''' </font> <br> | <font color="blue"> ''' // ARCHIVE FOOTER ''' </font> <br> | ||
: char {8} - | : char {8} - Signature <font color="purple">(Wildfire)</font> <br> | ||
: uint32 {4} - null <br> | : uint32 {4} - null <br> | ||
: uint16 {2} - Version <font color="purple">(1)</font> <br> | : uint16 {2} - Version <font color="purple">(1)</font> <br> | ||
Revision as of 22:53, 2 July 2022
BNK
- Format Type : Archive
- Endian Order : Little Endian
- Signature : Wildfire
Format Specifications
// FILE DATA
- // for each file
- byte {X} - File Data
- byte {X} - File Data
// DIRECTORY
- // for each file
- char {32} - Filename (null terminated, filled with junk)
- uint32 {4} - File Offset relative to the end of the archive. (ie FileOffset = ArchiveSize - ThisField)
- uint32 {4} - File Length
- uint32 {4} - Unknown
- uint32 {4} - Unknown
- char {32} - Filename (null terminated, filled with junk)
// ARCHIVE FOOTER
- char {8} - Signature (Wildfire)
- uint32 {4} - null
- uint16 {2} - Version (1)
- uint32 {4} - Number Of Files
MultiEx BMS Script
GoTo EOF 0 ; SavePos TOFF 0 ; Set TEMP Long TOFF ; Math TEMP -= 3 ; GoTo TEMP 0 ; Get FILENUM Long 0 ; Set FILENUMX Long FILENUM ; Math FILENUMX *= 48 ; Math FILENUMX += 17 ; Set TEMP Long TOFF ; Math TEMP -= FILENUMX ; GoTo TEMP 0 ; For X = 1 To FILENUM ; GetDString FNAME 32 0 ; Get TEMP Long 0 ; Set FOFFSET Long TOFF ; Math FOFFSET -= TEMP ; Math FOFFSET += 1 ; Get FSIZE Long 0 ; Get FOOBAR Long 0 ; Get FOOBAR Long 0 ; Log FNAME FOFFSET FSIZE 0 0 ; Next X ;
Other Games
These games use this format:
- Austin Powers Pinball *.bnk
- Balls of Steel *.bnk