Users browsing this thread: 1 Guest(s)
Poll: Would you like to see a Super Mario 3D World guide next?
You do not have permission to vote in this poll.
Yes
100.00%
4 100.00%
No
0%
0 0%
Total 4 vote(s) 100%
* You voted for this item. [Show Results]

[TUTORIAL] Ripping Mario + Rabbids Sparks of Hope
#1
Star 
[Image: banner.png]
A tutorial all about ripping models from Mario + Rabbids Sparks of Hope!

*You will need to source a usable NSP/XCI of the game yourself!
*This tutorial will not contain instructions of installing/setting up Ryujinx and Yuzu, it is assumed you already know/have.
*Big thanks to JawSFM for the initial guide.
  • How to extract the base game
  • Importing and converting the ripped models
  • Converting textures to get roughness, metallic, normal etc.
  • Preparing the models for upload.
You will need:
  • A NSP/XCI of the game (NSP: Nintendo Submission Package. XCI: Game Cartridge Image)
  • Yuzu/Ryujinx (Extracts the base game)
  • Noesis (Converts the model files)
  • Plugin for Noesis (Allows Noesis to read the .MMB models with rigging support. Thanks to PotatoMuffin and Petrgold)
  • Switch Toolbox (Extracts assets)
  • Texture Remix (Converts textures to be get roughness, metallic, emission, normal etc. Created by the great, Peardian)
  • Java (Requiered for TextureRemix to run)
  • Blender, or any modelling software of choice (Testing/viewing the model)



Extracting the Game
For Yuzu
  1. Make sure Mario + Rabbids Sparks of Hope appears in the game list.
  2. Right-click the game and click Dump RomFS > Dump RomFS.
  3. A new window should appear, asking how you would like the game dumped. Selected "Full". Wait for the extraction to be complete.
  4. A window should appear in File Explorer for the dumped game. Navigate to sdf > nx > data to see a long list of .SDFDATA files. For this game, we only require the SDF.SDFDATA file.
For Ryujinx
  1. Make sure Mario + Rabbids Kingdom Battle appears in the game list.
  2. Right-click the game and select Extract Data > RomFS, then choose a location for the dump. Keep note of this directory.
Extracting SDF.SDFDATA (Switch Toolbox)
  1. Extract the downloaded .ZIP called "Toolbox-Latest.zip" This is used to extract all of the data from the game.
  2. In the Toolbox-Latest folder, open Toolbox.exe.
  3. Go to File > Open in the top menu bar, navigate back to the dump of the game, and select "sdf.sdftoc". It will take some time to open.
  4. Once the file opens, click on the little plus icon to open the file. This will also take some time. By opening the little folders, go to the following directory: moria > baked > mixed > art.
  5. Right-click the art folder and extract it to your desired location. This will take some time to fully export; it's a lot of files.
Converting the Models (Noesis)
  1. Extract the downloaded .ZIP called "noesis[version].zip.
  2. Inside that open folder, go to the following directory: plugins > python.
  3. Keep that folder open, and drag and drop the downloaded Noesis script into it. It will be called "fmt_SOH_mmb.py".
  4. Open up Noesis64.exe.
  5. On the left-hand side, you will see a directory of your PC. Navigate the explorer panel to where you extracted SDF.SDFTOC.
  6. You will then see the "art" folder you extracted earlier. Dig around the sub-folders of it and find any model you would like to export.
  7. Here's a little guide for how the folder structure should look for the assets once in the folder of the model you chose:
    modeling = Most likely models for testing or otherwise unused models.
    rigging = The main model; this is what you want to export.
    textures = A folder that contains all of the textures for said model.
  8. Once you've found a model you like, it should open in the Noesis viewer.
  9. Export the chosen model by right-clicking it and clicking "Export".
  10. A new window will open to export the model. Click browse and find a suitable spot for it. E.g., your Desktop.
  11. Make sure in the export window that "Main output type" is set to .FBX. Then click "Export".
Converting the Textures (Switch Toolbox)
  1. Navigate back to the extracted folder of SDF.SDFTOC in File Explorer.
  2. Locate the folder that corresponds with the model you extracted. For instance, if you exported Princess Peach's model, her
  3. Copy all the .DDS textures to the same folder where the model was exported.
  4. Extract the downloaded .ZIP called "Toolbox-Latest.zip". This is the software used to convert the .DDS textures to .PNG.
  5. In the Toolbox-Latest folder, open Toolbox.exe.
  6. Go to File > Open (Folder) in the top menu bar, then select the folder where your extracted model and textures of choice are.
  7. A file browser, similar to Noesis, should be visible in the left pane.
  8. Double-click on all the .DDS file to make them viewable. Then right-click each one and click "Export".
  9. Save the exported texture as a .PNG and export it into the folder of your chosen model and textures. Do this for all textures.
Converting the Textures (TextureRemix - Roughness and Metallic Maps)
  1. Now that all the textures are exported as .PNG's, you will notice that there are weird coloured textures. The weirdly coloured textures are roughness and metallic textures, all grouped together in one image through channel packing. The ones that need to be converted will have an "m" at the end of the file name. E.g. "her_peach_01_body_m.png"
  2. Extract the downloaded ZIP called "Texture Remix 1.2.0.zip". In that folder, open TextureRemix.jar.
  3. Once the app is open, drag and drop the "m" textures we need into the box, or click "Load Images(s)" to select them manually. Only four images can be imported in a single open window.
  4. Specify a place for the output folder. Make it the same directory as the rest of the files you've extracted or exported.
  5. Once the textures have been imported, click the three orange bars to extract each colour channel from the image.
  6. In the folder where the exported textures are. You should see four new images that were created: texture_r.png, texture_g.png, texture_b.png, and texture_a.png. The only split channels that we need are the Roughness "r", and the Metallic "b" textures. The other two can be deleted.
  7. Rename the new textures to their respective texture map abbreviations, for example:
    texture_r.png > her_peach_01_body_r.dds
    texture_b.png > her_peach_01_cloth_m.dds
Converting the Textures (TextureRemix - Normal Maps)
  1. You will also notice the weird-looking grey textures. These grey textures are the normal maps. You'll know this because they will have an "n" at the end of the file name. E.g. "her_peach_01_body_n.png"
  2. Open up TextureRemix again, and just like before, simply drag and drop the normal maps into the open box or select them manually via the "Load Image(s)" button.
  3. Now that your image has loaded, you will see four boxes: red, green, blue, and grey (alpha). You'll want to click on the green box and then click on the other green box directly below it to link them together.
  4. Do the same for the grey alpha box, but instead of clicking on the other grey box, click the red one. So now the alpha channel is swapped with the red channel.
  5. Lastly, simply select the checkbox below the blue box; this will make the blue channel completely white.
  6. Once everything has been setup, click "Save Images" to save the fixed normal map to your desired location.
  7. In case you get lost, I have attached an image of what the layout should look like.
[Image: textureremix-layout.png]

Importing the Model (Blender)
  1. Once you have installed and opened Blender, go to the top menu bar and go to: File > Import > fbx (.FBX). In the newly opened window, choose the .FBX model you exported from Noesis earlier.
  2. Once your model imports, you'll notice that it is very small. Select the Armature objects in the "Outliner" pane on the right and scale it up to 1.
  3. Depending on the model you may the see the imported model may look weird or stretched. Just select all of the bones in "Pose Mode" and right-click to "Clear User Transforms".
  4. For some strange reason any model exported from Mario + Rabbids series will have the models horozontially flipped. Go back to "Object Mode", select the armature and scale it on the X-Axis by -1. This will flip it back to normal.
  5. Next, head over to the "Shading" workspace. All exported textures will be assigned here.
  6. You will also notice the model is very purple and shiny. The material properties for Noesis models will default to max roughness and max metallic. The purple is the color Blender assigns to objects that has missing textures.
  7. Click the open texture button and select the texture associated with the selected object. Make sure to select the image with a "d" in it. This means "Diffuse".
  8. After that, add a new "Image Texture" node and select the grey texture, this is the roughness texture. Plug the "Colour" output from the roughness texture into the "Roughness" value of the "Principled BSDF" node. Make sure to switch the "Colour Space" of the textures to "Non-Colour" for roughness and metallic textures.
  9. If metallic and emission textures are present, repeat the previous step, but keep the "Color Space" of the emission textures to "sRGB".
  10. Add or duplicate another "Image Texture" node and select the purple normal map.
  11. Get a node called "Normal Map" and plug the "Colour" of the normal map into the "Colour" of the normal map node. Then plug the "Normal Output" of the "Normal Map" node into the normal value on the "Principled BSDF".
  12. If you are exporting the model for a tMR submission, only add the diffuse textures.
  13. Select all of the models objects and go File > Export > Collada (.dae). And save it with the textures.



FAQ

Q. My model doesn't have a textures folder or textures are missing. Where are they?
A. A fair few of models will use textures that are used in another model. The main thing to do is to just search for the texture name or just try to find it manually.

Q. Some textures never stop loading when previewing in Switch Toolbox. How do I fix it?
A. These file are not actually textures, they are more placeholder textures. This is only present with the "m" textures and normal maps as values for those proporties can be set in-game.

Q. Rayman's model doesn't load in Noesis, how do I fix this?
A. Due to an unknown error, Noesis will refuse to load Rayman's model. Thankfully, there is a patch of the Noesis script that can support Rayman's model. It can be found here. Thanks to PotatoMuffin and Petrgold again. Be sure to use this version of the plugin specifically for Rayman's model. There are some issues when using the patched plugin with other models.


Final Words
There you have it! A full in-depth guide to extracting models from Mario + Rabbids Sparks of Hope! If you have any questions reply to the post and I'll try my best to help!

DJ~
Reply
#2
The plugin might be broken for me. I am using noesis and have the .mmb files, as well as the plug-in installed in the plugins/python directory, but when i right click to export model i get the error "the file type could not be determined." the models themselves aren't showing in the noesis viewer either.
Reply
Thanked by:
#3
(10-23-2023, 01:22 PM)rosalyne Wrote: The plugin might be broken for me.  I am using noesis and have the .mmb files, as well as the plug-in installed in the plugins/python directory, but when i right click to export model i get the error "the file type could not be determined."  the models themselves aren't showing in the noesis viewer either.

Hmm, that's an odd error I've never encountered. I would've suggested checking if the plugin is in the correct directory, but you have said that it is. The only thing I can really think of is that maybe the model files are corrupted. It could be worth extracting the SDF.SDFDATA file again and letting me know how it goes. I hope you find a fix!

DJ~
Reply
Thanked by:
#4
(10-23-2023, 05:35 PM)DJ_Fox11 Wrote:
(10-23-2023, 01:22 PM)rosalyne Wrote: The plugin might be broken for me.  I am using noesis and have the .mmb files, as well as the plug-in installed in the plugins/python directory, but when i right click to export model i get the error "the file type could not be determined."  the models themselves aren't showing in the noesis viewer either.

Hmm, that's an odd error I've never encountered. I would've suggested checking if the plugin is in the correct directory, but you have said that it is. The only thing I can really think of is that maybe the model files are corrupted. It could be worth extracting the SDF.SDFDATA file again and letting me know how it goes. I hope you find a fix!

DJ~

I have the same problem. I've even tried extracting the files again but I keep getting the error message. I am able to view some mmb files tho.
Reply
Thanked by:
#5
(11-24-2023, 11:23 AM)TheeHoneyMon Wrote: I have the same problem. I've even tried extracting the files again but I keep getting the error message. I am able to view some mmb files tho.
As I said above, I’m really not sure how to fix this issue. The only thing that I can think is causing this is the plug-in used. Unless you’re extracting Rayman, only use the Noesis plug-in linked in the tutorial above. If you aren't, that could be the reason why you're receiving these errors. If you are still continuing to receive the same errors, then I’m not sure I could help any further.

DJ~
Reply
Thanked by:
#6
Hello, I'm desperately searching for help about the .dds and .mmb files of Starlink B4A since I can't find any awnser of my troubles on internet.
So everything went just right for me but I can't extract the textures (.dds) and models (.mmb) haven't skeletons in Noesis.
I hope this resquest for help isn't out of place here...

Can someone please help me?
Reply
Thanked by:
#7
(02-25-2024, 03:28 PM)Zabuton Wrote: I can't extract the textures (.dds) and models (.mmb) haven't skeletons in Noesis.

In order to assist you, I'm going to need a bit more explanation. Why can't you extract the textures? Are you using Switch Toolbox? A possible reason for the models not having their rigs could be because of the game. While Starlink: Battle for Atlas might use the same engine as the Mario + Rabbids series, being a game outside of that series could have a significant impact on the models. For example, in M+R KB and M+R SOH, the SOH model script converts the models with their rigs. However, using the same script on KB just doesn't work the same way, and vice versa.

DJ~
Reply
Thanked by:
#8
(02-25-2024, 08:33 PM)DJ_Fox11 Wrote:
(02-25-2024, 03:28 PM)Zabuton Wrote: I can't extract the textures (.dds) and models (.mmb) haven't skeletons in Noesis.

In order to assist you, I'm going to need a bit more explanation. Why can't you extract the textures? Are you using Switch Toolbox? A possible reason for the models not having their rigs could be because of the game. While Starlink: Battle for Atlas might use the same engine as the Mario + Rabbids series, being a game outside of that series could have a significant impact on the models. For example, in M+R KB and M+R SOH, the SOH model script converts the models with their rigs. However, using the same script on KB just doesn't work the same way, and vice versa.

DJ~

Thanks for the reply Smile 
For the texture, I tried with Switch Toolbox but it won't open files and shows an error message. I tried to find a solution on internet but results where disapointing...
For the models it's strange, I use the M+R SOH script and for all of the models it shows the mesh but nor the rig EXCEPT for the CPU Arwing... Maybe I'll just have to wait for someone who'll make a script for Starlink... It's not the same Ubisoft who made M+R and Starlink after all  Thinking
Reply
Thanked by:
#9
(02-25-2024, 03:28 PM)Zabuton Wrote: Maybe I'll just have to wait for someone who'll make a script for Starlink... It's not the same Ubisoft who made M+R and Starlink after all  Thinking

Yeah, being made by a different Ubisoft branch and also coming from a completely different series could contribute to the issues you're facing. Best of luck with converting these files!

DJ~
Reply
Thanked by:


Forum Jump: