Difference between revisions of "BFLAN (File Format)"

From MK8
Jump to navigation Jump to search
m
m
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
BFLAN is an updated format for BRLAN files on the Wii.
+
{{Under-construction}}
 +
'''BFLAN''' ('''B'''inary ca'''F'''e '''L'''ayout '''AN'''imation) is an updated format for [[:mkw:BRLAN|BRLAN]] files on the Wii.
  
 
== File Header (FLAN) ==
 
== File Header (FLAN) ==
Line 10: Line 11:
 
| 0x00
 
| 0x00
 
| 4
 
| 4
| Magic (File Layout ANimation)
+
| Magic (FLAN)
 
|-
 
|-
 
| 0x04
 
| 0x04
 
| 2
 
| 2
| Byte Order Mark
+
| {{BOM}}
 
|-
 
|-
 
| 0x06
 
| 0x06
Line 22: Line 23:
 
| 0x08
 
| 0x08
 
| 4
 
| 4
| Flags (But what?)
+
| Version
 
|-
 
|-
 
| 0x0C
 
| 0x0C
Line 29: Line 30:
 
|-
 
|-
 
| 0x10
 
| 0x10
| 4
+
| 2
| Unknown (Always 0x00020000 ???)
+
| Number of sections
 +
|-
 +
| 0x12
 +
| 2
 +
| '''Unknown'''.
 
|}
 
|}
  
Line 86: Line 91:
 
| 0x00
 
| 0x00
 
| 4
 
| 4
| Magic (File Layout Texture Pattern)
+
| Magic (caFe Layout Texture Pattern)
 
|-
 
|-
 
| 0x04
 
| 0x04
 
| 4
 
| 4
| Unknown (Always 0x01000000 ???)
+
| '''Unknown''' (Always 0x01000000 ???)
 
|-
 
|-
 
| 0x08
 
| 0x08
Line 98: Line 103:
 
| 0x0C
 
| 0x0C
 
| 4
 
| 4
| Unknown (Probably flags, usually 0x100)
+
| '''Unknown''' (probably flags, usually 0x100)
 
|-
 
|-
 
| 0x10
 
| 0x10
Line 108: Line 113:
 
| 0x0C again, probably another section size
 
| 0x0C again, probably another section size
 
|}
 
|}
 +
 
=== Entries ===
 
=== Entries ===
 
Each entry is 8 bytes, seems to a float, followed by flags (second byte looks like a sorting/matching number with strings).
 
Each entry is 8 bytes, seems to a float, followed by flags (second byte looks like a sorting/matching number with strings).
  
 
= Tools =
 
= Tools =
 +
The following tool can handle BFLAN files:
 +
* [https://www.dropbox.com/s/7ni9vf43e0o7fxz/BenzinU.exe?dl=0 BenzinU], by [[User:diddy81|diddy81]]
 +
* [[Wexos's Toolbox]], by [[Wexos]]
  
The following tool can modify BFLAN files
+
[[Category:File Format]]
 
 
*[https://www.dropbox.com/s/7ni9vf43e0o7fxz/BenzinU.exe?dl=0 BenzinU], by [[User:diddy81|diddy81]]
 

Latest revision as of 10:22, 22 July 2017

Under Construction
This article is not finished. Help improve it by adding accurate information or correcting grammar and spelling.

BFLAN (Binary caFe Layout ANimation) is an updated format for BRLAN files on the Wii.

File Header (FLAN)

Offset Size Description
0x00 4 Magic (FLAN)
0x04 2 Byte Order Mark (BOM): 0xFEFF for big endian and 0xFFFE for little endian.
0x06 2 Header size (always 0x14)
0x08 4 Version
0x0C 4 Size of entire file
0x10 2 Number of sections
0x12 2 Unknown.

pat1 Section (???)

Notes

BFLAN files have a tree-like structure, FLAN encompasses the whole file, pat1 looks like a header for pai1, pai1 holds all entry data.

Header

Offset Size Description
0x00 4 Magic ("pat1")
0x04 4 Section size (all sub-data)
0x08 4 Unknown, seems to always be 1, probably number of entries
0x0C 4 Offset to first file string (Dunno what used for, always 0x1C?)
0x10 4 Offset to second file string (Dunno what used for)
0x14 4 Unknown, seems to be number of string entries minus 1 (0x14A -> 0x149)
0x18 4 Padding ???

Footer

After is two strings, each padded to 4 bytes. After that is a bunch of zeroes (section padded to 8 or 16 bytes? Reference files have 0x44, 0x48, and 0x50 as size.

Texture Pattern (FLTP)

Header

Offset Size Description
0x00 4 Magic (caFe Layout Texture Pattern)
0x04 4 Unknown (Always 0x01000000 ???)
0x08 4 Unknown, usually 0x0C, could be offset or header length
0x0C 4 Unknown (probably flags, usually 0x100)
0x10 2 Number of entries (padded to 4 bytes/shifted ????)
0x14 4 0x0C again, probably another section size

Entries

Each entry is 8 bytes, seems to a float, followed by flags (second byte looks like a sorting/matching number with strings).

Tools

The following tool can handle BFLAN files: