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
918
Trophies
1
XP
1,102
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
918
Trophies
1
XP
1,102
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.
  • K3Nv2 @ K3Nv2:
    I'll reformat and have a 3tb raid0 m. 2 at least
    +1
  • K3Nv2 @ K3Nv2:
    Lmao that sold out fast
    +1
  • Veho @ Veho:
    Yeet the cat.
    +1
  • K3Nv2 @ K3Nv2:
    Good idea
    +1
  • The Real Jdbye @ The Real Jdbye:
    i thought everybody knew cocktails are like 75% ice
  • Veho @ Veho:
    Yeah but not like this.
  • Veho @ Veho:
    It's not like they're complaining that their Slurpee is 99% ice or something, but if the cocktail calls for "shot of vodka, shot of vermouth, shot of gin, shot of Campari, three shots of juice, squirt of lemon" and ends up being a thimbleful of booze, that's a problem.
  • The Real Jdbye @ The Real Jdbye:
    the funny thing is cocktails in norway are only allowed to have 1 20ml shot of booze
  • The Real Jdbye @ The Real Jdbye:
    so..... yeah
  • The Real Jdbye @ The Real Jdbye:
    we're used to only having a thimbleful of booze
  • Veho @ Veho:
    Booo.
  • The Real Jdbye @ The Real Jdbye:
    same thing if you want whisky on the rocks or something, you can't get a double
  • The Real Jdbye @ The Real Jdbye:
    but you could buy as many shots of whisky (or anything else) as you want and ask for a glass of ice and pour them in
  • The Real Jdbye @ The Real Jdbye:
    it's dumb
  • Veho @ Veho:
    Maybe.
  • Veho @ Veho:
    There was a comparison of the number of Ibuprofen poisonings before and after they limited the maximum dosage per box or per pill (i'll look that up). No limit on the number of boxes you can still buy as many as you want, so people argued it was pointless.
  • Veho @ Veho:
    But the number of (accidental) poisonings dropped because drinking an entire package of ibuprofen pills went from "I need a new liver" to "I need a new box of Ibuprofen".
  • Veho @ Veho:
    Here we have ketoprofen that used to be prescription-only because of the risk of toxic dosages, but then they halved the dose per pill and sell them in bottles of six pills apiece instead of twenty and it doesn't need a prescription any more. Yes you can buy more than one bottle but people simply don't.
  • Psionic Roshambo @ Psionic Roshambo:
    Usually accidentally overdose of ibuprofen here is from people taking like cold medicine then ibuprofen for a headache and the combination is over what they need
    Veho @ Veho: https://imgur.com/gallery/QQkYnQu