Sm4sh Injector Pack

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

  1. mariosonicds
    OP

    mariosonicds GBAtemp Regular

    Member
    140
    144
    Oct 9, 2009
    United States
    *REQUIRES TexConv2*
    Requires Python 2.7 installed

    NEW FEATURES!!
    Extract files and convert via A.Extract.A
    Better GUI
    True lazyness on mips. (Now it staps it from overwriting preshus data)

    *Extraction*

    *Easy*
    Drag your nut file onto A.Extract.A
    You will get your DDS files in OutDDS

    *Harder*
    Open cmd in the directoru of convert
    type
    python Nut_check.py "Your Nut file"
    Then run
    GTX2DDS


    *Clean Up*
    Open CleanUp

    *Injection*

    *Easy*
    Use my easy injector via editing EasyInject.bat to change the folder to NUT_Inject and TexConv2
    Copy that EasyInject.bat to the folder where your new dds and nut file
    Open EasyInject and boom you are done
    *Harder*
    Inject via 'python NUT_Inject.py Model.nut myTexture.dds (Slot Number IE: 9 10 25 ect)'

    *Specal*
    **This is for AMDCompress and Nvidia Plugin**
    ARGB_8888 is what AMDCompress opens ABGR_8888 dds files, so in editing swap the Red and Blue then when done with edits Swap them back....
    The new EasyInject_ARGB_png.bat can convert your png export from AMDCompressCLI.exe

    *Usage of AMDCompressCLI.exe*
    AMDCompressCLI.exe DDSfile(in) PNGfile(out)


    *Update*
    If you have a dds file in the DDS folder, use the EasyInject_S_DDS.bat

    Update your bat files, If you have spaces like c:/User/Bob/Desktop/Meme Oh/Convert me/ Then add quoits "c:/User/Bob/Desktop/Meme Oh/Convert me/"

    USE INTEL DDS PLUGIN FOR THOES PESKY A8B8G8R8
    http://gametechdev.github.io/Intel-Texture-Works-Plugin/
    and if you dont have Photoshop use amd compress but swap Red and Blue chanels.
    http://developer.amd.com/tools-and-sdks/graphics-development/amdcompress/


    Edit: We got a basic video going over the fundimentals


    *ID Error Fixer
    TexIDFix.py model.nud model.nut (ID to assign)
    (ID to assign) can be 0 - 255

    *Ver 2.0 - New Gui, More safetynets,Ez extract
    *Ver 1.3.1 - Added IDFixer
    *Ver 1.3 - Added local path to fix some injections
    *Ver 1.2 - Fixed single Mipmap issue and Support for special case DDS Out.
    *Ver 1.1 - Added a catch for too many mipmaps (Helpful for non PS users)
     

    Attached Files:

    Last edited by mariosonicds, May 18, 2016


  2. Atross

    Atross Advanced Member

    Newcomer
    85
    7
    Feb 6, 2015
    France
    Not sure to understand everything.
    How can it be used ? If someone can make a tutorial for hacking textures/models swap, it can be cool !
     
  3. soniczx123

    soniczx123 GBAtemp Advanced Fan

    Member
    572
    162
    Jul 24, 2015
    Does this only work for textures?

    — Posts automatically merged - Please don't double post! —

    @Dead_MK
     
    Dead_MK likes this.
  4. mariosonicds
    OP

    mariosonicds GBAtemp Regular

    Member
    140
    144
    Oct 9, 2009
    United States
    What do you mean? It can do stage, fighter, texture or any nut file.
     
  5. soniczx123

    soniczx123 GBAtemp Advanced Fan

    Member
    572
    162
    Jul 24, 2015
    Okey, just wanted to know what is contained within the .nut files
     
  6. mariosonicds
    OP

    mariosonicds GBAtemp Regular

    Member
    140
    144
    Oct 9, 2009
    United States
    We beleve it to be an acronym for Namco unviersal texture.... Could posably be used for pokken tournament since Soneek saw in the update that another common file was used NUS3Bank.... unsure tho.
     
  7. Dead_MK

    Dead_MK Advanced Member

    Newcomer
    70
    39
    Aug 21, 2015
    Canada
    Smashville
    I guess rebuilding the .nut is another story.
     
  8. mariosonicds
    OP

    mariosonicds GBAtemp Regular

    Member
    140
    144
    Oct 9, 2009
    United States
    Ya, should not be to much of an under taking.... eventualy ill get to that. Esp with 100% new model file in our future.
     
  9. Dead_MK

    Dead_MK Advanced Member

    Newcomer
    70
    39
    Aug 21, 2015
    Canada
    Smashville
    @mariosonicds
    tmp.gtx = Your .dds converted?


    EDIT: Tried to edit the .nut file with an hex editor to change the texture (In this case, tmp.gtx == mytexture.dds) and the texture is weird af lmao

    Screenshot_7 = Before the conversion
    Screenshot_6 = After the conversion
     

    Attached Files:

    Last edited by Dead_MK, Mar 17, 2016
  10. mariosonicds
    OP

    mariosonicds GBAtemp Regular

    Member
    140
    144
    Oct 9, 2009
    United States
    Yes the tmp.gtx is converted dds, and auto swizzed too.
     
  11. Dead_MK

    Dead_MK Advanced Member

    Newcomer
    70
    39
    Aug 21, 2015
    Canada
    Smashville
    Btw I edited the model.nut of PKMN Stadium 2 and this happen

    Idk where to find the green reflection.. (it is not in the model.nut)
     
  12. mariosonicds
    OP

    mariosonicds GBAtemp Regular

    Member
    140
    144
    Oct 9, 2009
    United States
    K you forgot to change the amout of mips, my injector only injected the mip 1 which is only used up close. Nvidia plugin has support to generate those needed mip maps
     
    Dead_MK likes this.
  13. Logan Pockrus

    Logan Pockrus Knawledge is key.

    Member
    1,338
    1,020
    Jan 1, 2016
    United States
    So, do you use Cafiine to use these modified files?
     
  14. soniczx123

    soniczx123 GBAtemp Advanced Fan

    Member
    572
    162
    Jul 24, 2015
    Yes, or SDCafiine. Faster and doesn't require a server
     
  15. Logan Pockrus

    Logan Pockrus Knawledge is key.

    Member
    1,338
    1,020
    Jan 1, 2016
    United States
    In that case, what is the folder structure to replace these files? Specifically, character model.nut files. I.E., something like /vol/content/audio/stream/pBGM_DS_TICK_TOCK_CLOCK_N.bfstm (that particular structure replaces the soundtrack for tick tock clock in Mario Kart 8).
     
  16. soniczx123

    soniczx123 GBAtemp Advanced Fan

    Member
    572
    162
    Jul 24, 2015
    On the root of your SD Card: GameID/patch/data/fighter/(character name)/model
     
  17. Logan Pockrus

    Logan Pockrus Knawledge is key.

    Member
    1,338
    1,020
    Jan 1, 2016
    United States
    Thank you! You've been an excellent help!
     
    soniczx123 likes this.
  18. Sn10jg

    Sn10jg Advanced Member

    Newcomer
    90
    1
    Mar 31, 2016
    Canada
    So oddly enough I'm having trouble with injecting. I managed to get the vertex to work but textures are not injecting. I tried both the hard and easy way. I already have python installed and it works with everything else.

    I edited the easyinject.bat to Shaq\Desktop\Injectpack\ (with everything else untouched) and the injection is not working. The two .dds files and the model.nut are with the easyinject.bat in a seperate folder. The hard way I opened cmd in the injectpack folder with my two .dds files and model.nut and entered nut_inject.py model.nut 0.dds and I get this error.

    Traceback (most recent call last):
    File "C\Users\Shaq\InjectPack\NUT_Inject.py", line 10 in (module)
    textID = int(sys.argv[3])
    IndexError: list index out of range

    If anyone can help that would greatly appreciated.
     
  19. NWPlayer123

    NWPlayer123 GBAtemp Addict

    Member
    2,629
    6,226
    Feb 17, 2012
    United States
    The Everfree Forest
    sys.argv[3] is the 3rd variable input via command line which is the texture "slot" you're replacing, I assume 0 based on your dds name
     
  20. Sn10jg

    Sn10jg Advanced Member

    Newcomer
    90
    1
    Mar 31, 2016
    Canada
    Kind of confused. The 0.dds is the original one I extracted and I tried inserting it as a test to see if I can get it to work at all (since I can't get my modded one to work). So does that mean I have to rename it to something else instead of 0.dds?