Hacking Documenting BFRES File Format

NWPlayer123

Well-Known Member
OP
Member
Joined
Feb 17, 2012
Messages
2,642
Trophies
0
Location
The Everfree Forest
XP
6,693
Country
United States
Anyone up for helping document the format and creating editors? I can give you a good starting point if anyone wants to try. Specifically the main obstacle is figuring out the texture swizzling algorithm.
Here's the original file, extracted texture data (the .bin files), the FTEX sections (might be useful), my god awful script I wrote in 5 minutes to extract all textures, and the converted file obtained from Models Resource.
I'm not advanced enough to do this which is why I'm asking for help.

Some additional resources, the main documentation source is the MK8 Tockdom Wiki, LordNed has started a tool, Kinnay wrote a script to extract the raw mesh from them, and Treeki made a GFX decoder which I've never gotten to work.
 

Mr. Mysterio

Super Genius
Member
Joined
Sep 16, 2014
Messages
661
Trophies
0
Age
24
Location
Rosalina's Comet Observatory
XP
1,124
Country
United States
Anyone up for helping document the format and creating editors? I can give you a good starting point if anyone wants to try. Specifically the main obstacle is figuring out the texture swizzling algorithm.
Here's the original file, extracted texture data (the .bin files), the FTEX sections (might be useful), my god awful script I wrote in 5 minutes to extract all textures, and the converted file obtained from Models Resource.
I'm not advanced enough to do this which is why I'm asking for help.

Some additional resources, the main documentation source is the MK8 Tockdom Wiki, LordNed has started a tool, Kinnay wrote a script to extract the raw mesh from them, and Treeki made a GFX decoder which I've never gotten to work.


I would be happy to help! I've done some similar things before, like figuring out some of the subtleties of the GCN BMD model format.

BTW, I compiled Treeki's GTX extractor for AboodXD. Apparently, I'm the only one who's been able to?!!:lol: He said that it works.
 

NWPlayer123

Well-Known Member
OP
Member
Joined
Feb 17, 2012
Messages
2,642
Trophies
0
Location
The Everfree Forest
XP
6,693
Country
United States
AFAIK that was written for decoding NSMBU tilesets specifically, I haven't had it compiled so of course I couldn't test to see if it works elsewhere, but according to LordNed, you can decode textures extracted from his tool with TexConv2 from the leaked 2.09.22 SDK (which includes source and obviously can't be uploaded anywhere because copyright). I don't have much time on my hands at the moment but I'll help whoever's interested.
 
  • Like
Reactions: Margen67

Ray Lewis

Banned!
Banned
Joined
Dec 30, 2012
Messages
1,518
Trophies
0
XP
419
Country
United States
AFAIK that was written for decoding NSMBU tilesets specifically, I haven't had it compiled so of course I couldn't test to see if it works elsewhere, but according to LordNed, you can decode textures extracted from his tool with TexConv2 from the leaked 2.09.22 SDK (which includes source and obviously can't be uploaded anywhere because copyright). I don't have much time on my hands at the moment but I'll help whoever's interested.
I can ask Comex, or even Marcan to help. I need to find their phone numbers again. My phone lost some contacts :-( Odds are great that Bubba already has this tool and that TSK has a theory on how to do it. Seriously, you had one person make a serious offer to help?
 

NWPlayer123

Well-Known Member
OP
Member
Joined
Feb 17, 2012
Messages
2,642
Trophies
0
Location
The Everfree Forest
XP
6,693
Country
United States

No, actually. I thought I had read somewhere about a 3DS MAX script but I never found it until you linked it. Still, that's only import, we'd also need export in order for it to be useful for game mods. It's a great start though :P (IEA's the model expert, not me, not at all surprised he made that)
It's also not a proper substitute for documentation.
 
  • Like
Reactions: Margen67

jammybudga777

Well-Known Member
Member
Joined
Aug 23, 2013
Messages
2,284
Trophies
1
Age
37
XP
2,193
Country
I can ask Comex, or even Marcan to help. I need to find their phone numbers again. My phone lost some contacts :-( Odds are great that Bubba already has this tool and that TSK has a theory on how to do it. Seriously, you had one person make a serious offer to help?

yes yes ask marcan and comex plzz. im sure they will join in if you request...... :lol:
 
  • Like
Reactions: Margen67

diddy81

Wii Theme Team
Member
Joined
Mar 14, 2009
Messages
917
Trophies
1
XP
1,101
Country
this has nothing to do with bfres files but thought id let you know ive been working on a benzinU for the bflyt and bflan files

its unpacking 90% of the bflyt files and 100% of the bflan files

theres some unknown stuff i cant do till i have a way to test them on the wii u to work out what them parts do
 

diddy81

Wii Theme Team
Member
Joined
Mar 14, 2009
Messages
917
Trophies
1
XP
1,101
Country
That's useful too. It'll definitely come in handy in the near future. Is any of it documented on mk8.tockdom.com ?

no its not documented there or anywhere else ive seen however the files are very similar to the brlyt/brlan files from the wii
theres a few new sections and changes in the files structure
 

sonic1000

Well-Known Member
Newcomer
Joined
Dec 22, 2014
Messages
90
Trophies
0
Age
23
XP
174
Country
United States
this has nothing to do with bfres files but thought id let you know ive been working on a benzinU for the bflyt and bflan files

its unpacking 90% of the bflyt files and 100% of the bflan files

theres some unknown stuff i cant do till i have a way to test them on the wii u to work out what them parts do
Can you release it?
 

Don Jon

Well-Known Member
Member
Joined
Nov 20, 2015
Messages
1,057
Trophies
0
Age
38
XP
1,496
Country
United States
Anyone up for helping document the format and creating editors? I can give you a good starting point if anyone wants to try. Specifically the main obstacle is figuring out the texture swizzling algorithm.
Here's the original file, extracted texture data (the .bin files), the FTEX sections (might be useful), my god awful script I wrote in 5 minutes to extract all textures, and the converted file obtained from Models Resource.
I'm not advanced enough to do this which is why I'm asking for help.

Some additional resources, the main documentation source is the MK8 Tockdom Wiki, LordNed has started a tool, Kinnay wrote a script to extract the raw mesh from them, and Treeki made a GFX decoder which I've never gotten to work.
We need this now more than ever
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    OctoAori20 @ OctoAori20: Nice nice-