[Release] BFRES Texture Injector

Discussion in 'Wii U - Hacking & Backup Loaders' started by mariosonicds, Apr 11, 2016.

  1. mariosonicds
    OP

    mariosonicds GBAtemp Regular

    Member
    140
    144
    Oct 9, 2009
    United States
    This is yet another tool for injecting textures into X game. This follow suit to my nut injector but formats are a bit more obscure... so i added a feature to inject similar formats. Best bet is to use AMDCompress to output a png and export to dds if supported.

    ******************************
    *You need your own copy of TexConv2*
    ******************************

    Usage

    Extract
    - python Bfres_check.py MYBFRES.bfres
    -Prints out helpful info like
    LuigiPupil_Alb ID:34 Has 8 Mips

    Inject
    EASY
    -Edit EasyInject_BFRES to were you have your Bfres_inject.py
    -Make folder with corsoding id's and the bfres to inject
    -Copy your EasyInject_BFRES.bat into the folder
    -Run
    -Profit
    Lenthy
    -python Bfres_inject.py MYBFRES.bfres MYDDS.dds (Texture ID)

    This a test in cemu with mk8
    Image

    A Quick Tutorial
    Vid

    If you need some help, i might be able to... Kinda new to bfres business
     

    Attached Files:

    Last edited by mariosonicds, Apr 11, 2016
  2. mhayen

    mhayen Member

    Newcomer
    24
    5
    Mar 10, 2016
    Canada
    do it work with wii and gc game? thinking about putting the already made hi rez texture pack for rogue squadron 2,3.
     
  3. mariosonicds
    OP

    mariosonicds GBAtemp Regular

    Member
    140
    144
    Oct 9, 2009
    United States
    No this is built around the Wii U in mind.... That's why there is "texconv2 is required"

    Edit: Can't you just make a texture pack for dolphin.....
     
    Last edited by mariosonicds, Apr 11, 2016
  4. Don Jon

    Don Jon GBAtemp Fan

    Member
    493
    198
    Nov 20, 2015
    United States
    Could you upload your luigi skin with the folders in tact as an example bro?
    Thanks.
     
  5. NexoCube

    NexoCube stop using piracy :(

    Member
    1,184
    588
    Nov 3, 2015
    France
    Stack Pointer
    Cafiine is better. Because you can change a whole game. But nice stuff tho. ^^
     
  6. ZoNtendo

    ZoNtendo GBAtemp Fan

    Member
    422
    227
    May 25, 2015
    TexhaxU>This
     
  7. aracom

    aracom GBAtemp Fan

    Member
    476
    242
    Oct 1, 2015
    Gambia, The
    Have you tested Splatoons BFRES format? NWPs Texhax had some problems with that, just getting crashes when going ingame. I'll try yours later.
     
  8. mariosonicds
    OP

    mariosonicds GBAtemp Regular

    Member
    140
    144
    Oct 9, 2009
    United States
    Well, what do you want me to edit?
    Img

    Because idk what nwplayer was editing?
     
  9. CPCM

    CPCM Member

    Newcomer
    32
    10
    Aug 24, 2014
    I want you to edit this.
    content/Model/Clt_First_M.szs
     
  10. aracom

    aracom GBAtemp Fan

    Member
    476
    242
    Oct 1, 2015
    Gambia, The
    Yep, the first shirt is the bfres in content/Model/Clt_First_M.szs. We tried to edit them manually too, but with no success. Although I don't know if NWP tried any other methods.
     
    Last edited by aracom, Apr 11, 2016
  11. mariosonicds
    OP

    mariosonicds GBAtemp Regular

    Member
    140
    144
    Oct 9, 2009
    United States
    Well, when I get home I'll give it a go. From the looks of it, there is a large portion in ati2n and ati1n. I had my way with these before, but I did not get a crash but a messed up texture. But T shirts should have bc1 or dtx1 for there color map.

    Img
     
  12. aracom

    aracom GBAtemp Fan

    Member
    476
    242
    Oct 1, 2015
    Gambia, The
    Tried to extract textures from that file, seems broken, pdn and photoshop all either crash(photoshop...) or say that there was a unknown error. Windows Texture Viewer can display 0, 1, 2 and 4, but the normal map in 3 gets me another crash :/
     
  13. mariosonicds
    OP

    mariosonicds GBAtemp Regular

    Member
    140
    144
    Oct 9, 2009
    United States
    Did you try amdcompress. Photoshop uses old dds standard. Kinda went over that in the quick tutorial.
     
  14. aracom

    aracom GBAtemp Fan

    Member
    476
    242
    Oct 1, 2015
    Gambia, The
    That gives me different results, 0, 1 and 4 are working, 2 says "Image Format Is Not Supported" and 3 works but definitely doesn't look right.
     
  15. mariosonicds
    OP

    mariosonicds GBAtemp Regular

    Member
    140
    144
    Oct 9, 2009
    United States
    3 that's right. It's a depth map or a reflection map. The big chunks are compression artifacts.

    Edit: what are you editing?
     
  16. aracom

    aracom GBAtemp Fan

    Member
    476
    242
    Oct 1, 2015
    Gambia, The
    /Model/Clt_First_M.szs from splatoon, it's a bfres in a szs compressed sarc archive.
     
  17. mariosonicds
    OP

    mariosonicds GBAtemp Regular

    Member
    140
    144
    Oct 9, 2009
    United States
    Hmm well I'm going to be back at comp soon.
     
  18. NWPlayer123

    NWPlayer123 GBAtemp Addict

    Member
    2,632
    6,233
    Feb 17, 2012
    United States
    The Everfree Forest
    Not necessarily, Cafiine doesn't add any extra locks when sending files so if it doesn't wait and it tries to send it over the network like Sploon does with map models then it's gonna crash :\ Loadiine assures that files have been completed before moving on so you do need it for some things
    I've only ever got it to work with clothes which is odd, no animated/complex models have ever worked.
     
    Last edited by NWPlayer123, Apr 11, 2016
  19. Don Jon

    Don Jon GBAtemp Fan

    Member
    493
    198
    Nov 20, 2015
    United States
    Looking foward for vertex editing for splatoon characters too
    :/
     
  20. mariosonicds
    OP

    mariosonicds GBAtemp Regular

    Member
    140
    144
    Oct 9, 2009
    United States
    Uhh Number 2.dds opens for me
    Img