Documenting BFRES File Format

Discussion in 'Wii U - Hacking & Backup Loaders' started by NWPlayer123, Feb 28, 2015.

  1. NWPlayer123
    OP

    NWPlayer123 GBAtemp Addict

    Member
    2,629
    6,226
    Feb 17, 2012
    United States
    The Everfree Forest
    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.
     


  2. Mr. Mysterio

    Mr. Mysterio Super Genius

    Member
    661
    856
    Sep 16, 2014
    United States
    Rosalina's Comet Observatory

    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.
     
    Margen67 and dojafoja like this.
  3. NWPlayer123
    OP

    NWPlayer123 GBAtemp Addict

    Member
    2,629
    6,226
    Feb 17, 2012
    United States
    The Everfree Forest
    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.
     
    Margen67 likes this.
  4. Ray Lewis

    Ray Lewis Banned

    Banned
    1,518
    386
    Dec 30, 2012
    United States
    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?
     
  5. NWPlayer123
    OP

    NWPlayer123 GBAtemp Addict

    Member
    2,629
    6,226
    Feb 17, 2012
    United States
    The Everfree Forest
    Well we have all the resources, but chances are nobody's going to care until we can actually use these for game mods (which might actually be really soon)
     
  6. Mr. Mysterio

    Mr. Mysterio Super Genius

    Member
    661
    856
    Sep 16, 2014
    United States
    Rosalina's Comet Observatory
    I care. I find it exciting!
     
    Margen67 and Ray Lewis like this.
  7. Hiccup

    Hiccup GBAtemp Advanced Fan

    Member
    905
    271
    Nov 21, 2009
  8. NWPlayer123
    OP

    NWPlayer123 GBAtemp Addict

    Member
    2,629
    6,226
    Feb 17, 2012
    United States
    The Everfree Forest
    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.
     
    Margen67 likes this.
  9. jammybudga777

    jammybudga777 GBAtemp Advanced Maniac

    Member
    1,673
    561
    Aug 23, 2013
    yes yes ask marcan and comex plzz. im sure they will join in if you request...... :lol:
     
    Margen67 likes this.
  10. NWPlayer123
    OP

    NWPlayer123 GBAtemp Addict

    Member
    2,629
    6,226
    Feb 17, 2012
    United States
    The Everfree Forest
    They're busy with their own projects, they're not gonna bother with this.
     
    jammybudga777 likes this.
  11. diddy81

    diddy81 Wii Theme Team

    Member
    779
    172
    Mar 14, 2009
    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
     
    Margen67, NWPlayer123 and dojafoja like this.
  12. NWPlayer123
    OP

    NWPlayer123 GBAtemp Addict

    Member
    2,629
    6,226
    Feb 17, 2012
    United States
    The Everfree Forest
    That's useful too. It'll definitely come in handy in the near future. Is any of it documented on mk8.tockdom.com ?
     
    Margen67 likes this.
  13. diddy81

    diddy81 Wii Theme Team

    Member
    779
    172
    Mar 14, 2009
    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
     
  14. sonic1000

    sonic1000 Advanced Member

    Newcomer
    90
    66
    Dec 22, 2014
    United States
    Can you release it?
     
  15. diddy81

    diddy81 Wii Theme Team

    Member
    779
    172
    Mar 14, 2009
    when i get it to a level im happy with i will
     
  16. Don Jon

    Don Jon GBAtemp Fan

    Member
    461
    180
    Nov 20, 2015
    United States
    We need this now more than ever
     
  17. Don Jon

    Don Jon GBAtemp Fan

    Member
    461
    180
    Nov 20, 2015
    United States
    bump
     
  18. twc

    twc Banned

    Banned
    55
    29
    Jan 18, 2016
    United States
    one word "Nintendo Ware for Cafe" (NW4F)
     
  19. shaneod

    shaneod GBAtemp Fan

    Member
    348
    254
    Mar 3, 2011
    Oh, how you amuse me...
     
    twc likes this.
  20. Don Jon

    Don Jon GBAtemp Fan

    Member
    461
    180
    Nov 20, 2015
    United States
    Is that Mr.Reans website?