Advertisement
Guest User

Untitled

a guest
May 27th, 2016
12,193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. HOW TO USE AND MAKE TEXTURE HACKS (Windows only)
  2.  
  3. PREREQUISITES
  4. Already followed the previous tutorial on getting mods set up
  5. This pack of files - https://mega.nz/#!nlsGnKQI!BVIjeLDL24ZA9FRXmvtcBK75ILvAgyjSo08v615QfVw
  6. Python 2.7 installed - https://www.python.org/downloads/release/python-2711/
  7.  
  8. DUMPING THE GAME (PC STEPS)
  9. 1) Unzip the pack of files you just downloaded
  10. 2) Put the two folders in the "extra htdocs files" inside C:/xampp/htdocs, like you did with two other folders in the first tutorial
  11. 3) In the "sd card files", take the "wiiu" folder, and place it on the root of your SD card
  12. 4) Inside the titledumper folder, Shift + Right-click and select "open command window here"
  13. 5) Type "titledumper /vol \Smash" (without the quotes) into this window
  14. 6) Titledumper should say "Waiting for WiiU connection"
  15. 7) Make sure XAMPP is running and that you know your internal IP, and put your SD card in your Wii U
  16.  
  17. DUMPING THE GAME (WII U STEPS)
  18. 1) Open the Wii U internet browser
  19. 2) Edit one of the bookmarks (don't edit the other mod bookmarks) to look like this:
  20. Name: DDDKernel
  21. Address: http://<your internal ip from earlier>/dddkernel/blarg.php
  22. 3) Edit one of the other bookmarks to look like this:
  23. Name: DDD
  24. Address: http://<your internal ip from earlier>/ddd/blarg.php
  25. 4) Tap on the DDDKernel bookmark. The screen will go green like when you run the regular kernel
  26. 5) Wait for the console to kick you to the home menu, and go back into the internet browser
  27. 6) Tap on the DDD bookmark
  28. 7) On the screen that pops up, enter your own internal IP and press X
  29. 8) Boot Smash. The game will hang on the booting splash screen
  30. 9) Check your computer. Within a minute of booting Smash, titledumper should have some activity
  31.  
  32. Smash is a very big game (around 16GB) so it'll take a while to fully dump. I'd recommend doing this overnight. Once Smash is fully dumped, you're ready to move on to the next step.
  33.  
  34. You can download individual mods from http://ssbu.gamebanana.com, or you can make your own later in the tutorial.
  35.  
  36. PREPARING MODS TO BE BUILT
  37. 1) If you downloaded a moveset or sound mod, you don't need this section
  38. 2) If you donwloaded a texture / model hack that came in a folder called "c" and then two numbers, skip to step 7
  39. 3) If you downloaded a texture / model hack that came in a folder called "cXX", you can skip to step 6
  40. 4) If you downloaded a texture hack that was just a "model.nut" or just "model.nud", it should have a slot listed on the download page
  41. (if there is no slot listed, message the creator of the mod, as you need to know the slot to use the mod)
  42. Take the slot number they give you
  43. Put the model.nut in a folder called "cYY", where YY is the slot minus one
  44. If the slot minus one is only one digit, add a zero before it
  45. Skip to step 7
  46. 5) If you downloaded a texture / model hack that was both "model.nut" and "model.nud", put it in a folder called "cXX"
  47. (if there's more than just those two files that's okay, put those files in the cXX folder too)
  48. 6) Replace the "XX" at the end of your folder's name with the slot you'd like to replace minus one
  49. (if, for example, I want to replace Mario's default texture, slot 1, I'd call the folder "c00")
  50. (if, for example, I want to replace Mario's black and white texture, slot 5, I'd call the folder "c04")
  51. 7) If your model / texture hack came with CSP portraits, they should be have the slot number at the end of the file name
  52. (if, for example, I want to replace Mario's default CSP, slot 1, the files should end with a 1)
  53. (if, for example, I want to replace Mario's black and white CSP, slot 5, the files should end with a 5)
  54. (I'm aware this means the texture itself and the CSP have different numbers, I'm annoyed too)
  55. ADVANCED - SKIP THIS IF YOU'RE NOT SURE WHAT'S GOING ON
  56. 7) If, when you play with two different textures, they both show up as the texture in the lower port, you have texture ID problems
  57. 8) If, when you try to use a texture, it's all red with patches of white, you have texture ID problems
  58. 9) To fix texture ID problems, copy the model.nud and the model.nut into the texidfix folder
  59. 10) Shift + Right-click in this folder and click "open command window here"
  60. 11) Type "TexIDfix2.py model.nud model.nut <texID>" into the command window
  61. (if, for example, I wanted to set the texID to 14, I'd type "TexIDfix2.py model.nud model.nut 14")
  62. (Nintendo set the texture ID to 4 x (slot - 1) so avoid using any of those numbers, and don't go over 255)
  63.  
  64. BUILDING MODS
  65. 1) Open Sm4shFileExplorer in the pack you downloaded
  66. 2) When it asks you to select the latest version of the game, go to "Computer" -> "C:/" -> "Smash" -> "vol"
  67. 3) Wait while Sm4shExplorer loads all the files (this can take a long time on the european version)
  68. 4) Open the "data" dropdown, then open the "fighter" dropdown
  69. 5) Open the dropdown of the fighter you've downloaded / created a mod for
  70. 6) Open the dropdown in that fighter of the kind of mod you've downloaded
  71. If it's a texture / model hack, you want the model -> body dropdown
  72. If it's a voice hack, you want the sound dropdown
  73. If it's a moveset hack, you want the script -> animcmd dropdown
  74. 7) Drag and drop the mod file into the appropriate folder, they'll go green to indicate that a mod is being loaded
  75. (for example, drop any mod folders called "c" then two numbers onto the body folder, not the folder with the same name)
  76. (to remove a mod, right click and select "remove mod files")
  77. 8) If you have CSP mods, navigate to ui -> replace -> chr, and add them there
  78. (CSP mods go in the folder that matches the start of their name)
  79. (for example, if I have a CSP mod called "chr_13_Captain_05", it goes in the "chr_13" folder)
  80. (DLC character CSPs are located in ui - replace -> append -> chr)
  81. 8) Once you've added all of your mods, click "Project -> Build the mod" at the top of Sm4shExplorer
  82. 9) Wait for the mod to be built, and then close Sm4shexplorer
  83. 10) In Sm4shexplorer's folder, there should be a folder called "export"
  84. 11) Inside the "export" folder, there should be a folder called "release"
  85. 12) Rename the "release" folder to "patch", and move it to the number folder on your SD card
  86. (if there's already a patch folder in there you don't want to delete, rename it to something else and it will have no effect)
  87.  
  88. That's all you need to know if you just want to compile other people's mods together. If you want to make your own, read on!
  89.  
  90. EXTRACTING TEXTURES
  91. 1) Open Sm4shexplorer, and navigate through to the fighter that you want to texture hack
  92. 2) Pick the skin that you want to modify
  93. 3) Right-click on it and select "Extract"
  94. 4) In Sm4shexplorer's folder, the should be a folder called "extract"
  95. 5) Navigate through the extract folder until you find your extracted skin's folder
  96. 6) Copy the "model.nut" from this folder into the "InjectPack" folder in the pack you downloaded
  97. 7) Shift + Right-click inside the InjectPack folder, and select "open command window here".
  98. 8) In the command window, type "nut_check.py model.nut"
  99. (if you're extracting from another nut file, you have to put the name of that file in)
  100. 9) Then run the GTX2DDS bat file
  101. 10) You now have a large amount of DDS files in the OutDDS folder
  102.  
  103. Editing the texture files isn't the easiest thing to do, as they're saved as DDS files. I'd recommend getting Windows Texture Viewer (http://www.nvidia.co.uk/object/windows_texture_viewer.html) first, but it's not needed. You need a program that can open DDS files to do anything. I used paint.net, but there are also plugins for photoshop, and some AMD command line tools you can use.
  104.  
  105. EDITING THE TEXTURES
  106. 1) Open the texture files with your program of choice until you find the one you want to edit
  107. (some texture files contain a strange blue/purpleish version of a regular texture, these are the mapping files)
  108. (as far as I know, RGB are the normals and the alpha channel is the specular mapping, but I'm not 100% sure)
  109. 2) Make whatever changes to the textures that you want, apart from resizing the texture
  110. 3) When saving them / converting them back to DDS, make sure you save them in the correct DDS format
  111. (DXT1, DXT3, DXT5, A8B8G8R8 are the only ones I've seen)
  112. (you can check which format a DDS file is by opening it with Windows Texture Viewer, the format will be on the bottom left)
  113. 4) You also have to make sure you generate new mipmaps when saving / converting, or the texture will only work up close
  114.  
  115. IMPORTING THE TEXTURES
  116. 1) Copy all the modified .dds files into the same folder as the model.nut
  117. (make sure all of the .dds files have the same name as they did originally)
  118. 2) Run the "EasyInject" bat file
  119. 3) Copy the model.nut back into the original skin folder it came from
  120. 4) Add the edited skin folder into Sm4shexplorer using the instructions for downloaded mods
  121.  
  122. You're now done, you've made a texture edit! If you want to also edit the CSPs, they're located in ui -> replace -> chr (with DLC character CSPs located in ui - replace -> append -> chr), and they're all .nut files so they can be edited in mostly the same way. The folders are named as such:
  123. chr_00 - Battle Portrait
  124. chr_10 - CSS Icon
  125. chr_11 - Results Screen Portrait
  126. chr_12 - CSS Portrait (blurred version that zooms in from the right)
  127. chr_13 - CSS Portrait
  128. stock_90 - Stock Icon
  129. Have fun modding!
  130.  
  131. Tutorial made by TS4M
  132. https://twitter.com/thatsmash4moddr
  133. https://www.youtube.com/ts4mvideos
  134.  
  135. InjectPack and TexIDFixer made by SMB123W64GB
  136. https://twitter.com/smb123w64gb
  137. https://www.youtube.com/channel/UCQSYtNWiHSZFEHacWnRgkjQ
  138.  
  139. Sm4shExplorer made by Deihnyx
  140. https://twitter.com/deinonychus71
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement