IntroductionHave you considered modding Super Mario Maker 2? Don't know where to start? Here's a guide to help you get started.
Important Note: This tutorial assumes that you have a hacked Nintendo Switch, CFW for your Switch, and a copy of Super Mario Maker 2. This does not cover loading mods using emulators. If you need assistance with loading homebrew on your Nintendo Switch, follow this guide.
Things You Will Need
- NXDumpTool - For Dumping the ROMFS Folder
- Switch Toolbox - For Editing the Game Files
- Texture File Editor - Program that can edit PNG files (Paint.net, Photoshop etc)
- Model Editor - For Editing Game Models (3DSMax, Blender etc)
- Animation Editor - For Editing Game Animations (Maya, Blender etc)
- SD Card with at least 4 GB of space
Part 0: Dumping Your Game [Nintendo Switch Side]Start the Homebrew Launcher, and run the NXDumpTool app. Select either "Dump gamecard content" or "Dump SD card/emmc (NANDUSER) content" depending on if you have the physical or digital version of SMM2.
Next, go to RomFS options, and select RomFS section data dump. Make sure you have at least 4GB of open space on your SD card (The RomFS is about 2.72 GB, but it's always good practice to have extra space).
The app will output the RomFS folder as shown: [sd:/nxdumptool/RomFS/SUPER MARIO MAKER 2 v0 (TITLEID). Remove your SD card and place it into your PC. You are now ready for all types of modding.
Part 1: Texture Modding [PC Side]Open Switch Toolbox (You'll be needing it open pretty much the entire time) and search through the RomFS folder you placed onto your PC for what you want to edit. (For this tutorial, we are going to edit the sprite for Super Mario Bros. Mario. The file we need is located in RomFS/Pack/M1_Model.pack)
Open the M1_Model.pack file in Switch Toolbox. Expand the folder, and you'll see a bunch of files with the extension .zs . We are going to need Model/M1_Player_MarioMdl.Nin_NX_nvn.zs. Right Click it and select export raw data. Save it to your PC somewhere safe. Note that you can't save it with the foward slash, this will not affect the file itself, you can name it whatever you want.
Now drag that file back into Switch Toolbox and expand it's folders. You'll see the output.bfres file. Double-click that to expand it until you see the textures folder. You can right click this folder and select export all textures and save them somewhere on your PC for modding.
While in Switch Toolbox, select a texture and then view the Image Info window to the right, and take note of the format of the texture. Right click the texture, then export it as PNG. Now you can open the textures in your editor of choice (I recommend paint.net) and edit them. The edited texture MUST BE SAVED AS A PNG OR IT WILL NOT LOOK RIGHT!
Key Texture Editing Points
- Try to stay within the dimensions given.
- If the game crashes after editing, you more than likely did not save the texture correctly. Make sure the format matches the original, and check to see if the original has mipmaps or not.
Finally, open the .pack file you originally had opened in Switch Toolbox, right click the original .zs file you edited, select replace, and choose the new .zs file you saved. Now right click the .pack file and save that. THIS MUST HAVE THE SAME NAME AS THE ORIGINAL. Now you are ready to test your edit in game.
Final Part [PC and Switch Side]Inside your CFW folder of choice, create a folder named with the title id of your version of SMM2 (this was found earlier when you dumped the RomFS with NXDumpTool) and place it in the titles folder. Inside that folder, create a "romfs" folder. Within that folder, create the folder that your edited file goes into, and lastly put your edited file. The structure should similar to this.
Now if everything is done correctly, you should be able to remove the SD card from your PC and place it back into your Switch. Load up your CFW with layeredfs enabled, load your game, and view your mod in action. Example Below
Information about this tutorial.
- Other parts, such as Model Editing, Animation Editing, Code editing etc will come as I myself make mods using those, or if others send me information to use in this tutorial.
- This tutorial will be updated periodically as new information and new tools are created and shared.
- Please leave feedback about improvements for the tutorial in the comments section.