BNK Wildfire
BNK
- Format Type : Archive
- Endian Order : Little Endian
- Date Posted : Dec. 5, 2005
Format Specifications
byte {X} - File Data
// Directory
- // for each file
- char {32} - Filename (null terminated, then filled with junk)
- uint32 {4} - Length of the data to EOF from current file's start
- uint32 {4} - File Length
- uint32 {4} - Unknown
- uint32 {4} - Unknown
- char {32} - Filename (null terminated, then filled with junk)
char {8} - Footer (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 ;