Hacking Sm4sh Injector Pack

  • Thread starter Thread starter mariosonicds
  • Start date Start date
  • Views Views 72,640
  • Replies Replies 83
  • Likes Likes 7

mariosonicds

Well-Known Member
Member
Joined
Oct 9, 2009
Messages
143
Reaction score
145
Trophies
1
XP
466
Country
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)
 

Attachments

Last edited by mariosonicds,
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 !
 
Okey, just wanted to know what is contained within the .nut files
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.
 
@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
 

Attachments

  • Screenshot_6.png
    Screenshot_6.png
    211 KB · Views: 973
  • Screenshot_7.png
    Screenshot_7.png
    118.6 KB · Views: 917
Last edited by Dead_MK,
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)
 
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)

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
 
  • Like
Reactions: Dead_MK
Yes, or SDCafiine. Faster and doesn't require a server
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).
 
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.
 
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.
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
 
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
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?
 

Site & Scene News

Popular threads in this forum