BNK Wildfire: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>WATTO
imported>Ikskoks
 
(33 intermediate revisions by 3 users not shown)
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>
* ''' Date Posted ''': Dec. 5, 2005 <br>
* ''' Signature ''':   Wildfire <br>  
 


=== Format Specifications ===  
=== Format Specifications ===  
Line 15: Line 14:
<font color="blue"> ''' // DIRECTORY ''' </font> <br>  
<font color="blue"> ''' // DIRECTORY ''' </font> <br>  
: <font color="blue"> ''' // for each file ''' </font> <br>  
: <font color="blue"> ''' // for each file ''' </font> <br>  
:: char {32}&nbsp;&nbsp;&nbsp; - Filename <font color="purple">(null terminated, filled with junk)</font> <br>  
:: char {12}&nbsp;&nbsp;&nbsp; - Filename <font color="purple">(null terminated)</font> <br>
:: uint32 {4}&nbsp;&nbsp; - File Offset relative to the end of the archive. (ie FileOffset=ArchiveSize-ThisField) <br>  
:: bytes {20}&nbsp;&nbsp;&nbsp; - <font color="red">Unknown</font> <br>
:: uint32 {4}&nbsp;&nbsp; - File Length <br>  
:: uint32 {4}&nbsp;&nbsp; - File Offset relative to the end of the archive. (ie FileOffset = ArchiveSize - ThisField) <br>  
:: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>  
:: uint32 {4}&nbsp;&nbsp; - Compressed File Size <br>  
:: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>  
:: uint32 {4}&nbsp;&nbsp; - Uncompressed File Size <br>  
:: uint32 {4}&nbsp;&nbsp; - Compression Flag <br>  
<br>
<br>
<font color="blue"> ''' // ARCHIVE FOOTER ''' </font> <br>  
<font color="blue"> ''' // ARCHIVE FOOTER ''' </font> <br>  
: char {8}&nbsp;&nbsp;&nbsp;&nbsp; - Header <font color="purple">(Wildfire)</font> <br>  
: char {8}&nbsp;&nbsp;&nbsp;&nbsp; - Signature <font color="purple">(Wildfire)</font> <br>  
: uint32 {4}&nbsp;&nbsp; - null <br>  
: uint32 {4}&nbsp;&nbsp; - null <br>  
: uint16 {2}&nbsp;&nbsp; - Version <font color="purple">(1)</font> <br>  
: uint16 {2}&nbsp;&nbsp; - Version <font color="purple">(1)</font> <br>  
Line 54: Line 54:
Next X ;
Next X ;
</pre>
</pre>
=== Notes and Comments ===
* This file format use '''LZSS0''' compression method.
* This format occurs in games made by '''Wildfire Studios'''. They are all '''Pinball''' games.
=== quickBMS script ===
* [http://aluigi.org/bms/austin_powers_pinball.bms austin_powers_pinball.bms]
=== Other Games ===
These games use this format:
* Austin Powers Pinball (PC) (*.BNK)
* Balls of Steel (*.BNK)
* Kiss Pinball (PC) (*.BNK)


=== Supported by Programs ===  
=== Supported by Programs ===  
* [[Game Extractor|Game Extractor]]<br>
* [[MultiEx Commander|MultiEx Commander]]<br><br>
* [[MultiEx Commander|MultiEx Commander]]<br><br>
[[Category:Complete Almost Done|BNK Wildfire]]
[[Category:Platform PC|BNK Wildfire]]
[[Category:CE Compressed|BNK Wildfire]]
[[Category:Format_Archive | Type: Archive]]
[[Category:Extension_bnk | Extension: bnk]]
[[Category:LZSS0 compression]]
[[Category:File Format]]

Latest revision as of 23:14, 2 July 2022

BNK

  • Format Type : Archive
  • Endian Order : Little Endian
  • Signature : Wildfire

Format Specifications

// FILE DATA

// for each file
byte {X}     - File Data


// DIRECTORY

// for each file
char {12}    - Filename (null terminated)
bytes {20}    - Unknown
uint32 {4}   - File Offset relative to the end of the archive. (ie FileOffset = ArchiveSize - ThisField)
uint32 {4}   - Compressed File Size
uint32 {4}   - Uncompressed File Size
uint32 {4}   - Compression Flag


// 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 ;

Notes and Comments

  • This file format use LZSS0 compression method.
  • This format occurs in games made by Wildfire Studios. They are all Pinball games.

quickBMS script

Other Games

These games use this format:

  • Austin Powers Pinball (PC) (*.BNK)
  • Balls of Steel (*.BNK)
  • Kiss Pinball (PC) (*.BNK)

Supported by Programs