Hacking Sm4sh Injector Pack

mariosonicds

Well-Known Member
OP
Member
Joined
Oct 9, 2009
Messages
143
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

  • Inject_Pack.zip
    11.7 KB · Views: 9,026
Last edited by mariosonicds,

Atross

Well-Known Member
Newcomer
Joined
Feb 6, 2015
Messages
94
Trophies
0
XP
375
Country
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 !
 

mariosonicds

Well-Known Member
OP
Member
Joined
Oct 9, 2009
Messages
143
Trophies
1
XP
466
Country
United States
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.
 

Dead_MK

Well-Known Member
Newcomer
Joined
Aug 21, 2015
Messages
70
Trophies
0
Age
27
Location
Smashville
XP
153
Country
Canada
@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: 931
  • Screenshot_7.png
    Screenshot_7.png
    118.6 KB · Views: 884
Last edited by Dead_MK,

Dead_MK

Well-Known Member
Newcomer
Joined
Aug 21, 2015
Messages
70
Trophies
0
Age
27
Location
Smashville
XP
153
Country
Canada
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)
 

mariosonicds

Well-Known Member
OP
Member
Joined
Oct 9, 2009
Messages
143
Trophies
1
XP
466
Country
United States
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

Logan Pockrus

Knawledge is key.
Member
Joined
Jan 1, 2016
Messages
1,338
Trophies
0
XP
1,062
Country
United States
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).
 

Sn10jg

Well-Known Member
Member
Joined
Mar 31, 2016
Messages
101
Trophies
0
Age
32
XP
161
Country
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.
 

NWPlayer123

Well-Known Member
Member
Joined
Feb 17, 2012
Messages
2,642
Trophies
0
Location
The Everfree Forest
XP
6,693
Country
United States
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
 

Sn10jg

Well-Known Member
Member
Joined
Mar 31, 2016
Messages
101
Trophies
0
Age
32
XP
161
Country
Canada
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

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: Nope. Not into gaming.