Tutorial  Updated

How to use Sonic Mania PC mods on Switch (revised)

A year ago, a thread was made on how to mod Sonic Mania with LayeredFS by @Knucklesfan: https://gbatemp.net/threads/how-to-run-sonic-mania-mods-for-pc-on-switch.507925/

The program attached to the thread was very useful for the base version of the game, but now since Plus has released, it's a bit more confusing and outdated. So, I wanted to make a revised tutorial on how you can mod Sonic Mania with updated tools. LayeredFS already comes pre-packaged with the latest versions of SXOS and Atmosphere, so if you have any of those two, you're good! I'll be showing how to do it on Atmosphere, but I'm sure SX has the same kind of file structure for LayeredFS. ReiNX users will have to use this tutorial with the latest version.

Requirements:

Make sure you've updated to the latest version of Sonic Mania (1.0.4). It's best to also have the Plus DLC because most mods now replace certain files only accessed by having the Plus DLC. You also need to obtain access to "Data.rsdk." It's a compressed file for Retro Engine (the engine Sonic Mania runs on) which contains all media data for Sonic Mania. I'll explain what to do with it further down.

Note: I expect you've got custom firmware on your Switch and you know how to inject a payload and launch hbmenu. If you're new to the scene, use this guide or the helpful guides from many members of GBATemp.

FYI:
Mods with DLL files will not work. DLL files need an external program/dependency to function, otherwise you'll end up with a black screen. Only use mods that overlay existing files in the Data.rsdk folder. If you want to use add-ons, use the PC version.


Alright, let's get started :D

Dumping your RomFS:

First, you'll want to dump your RomFS from a legally owned copy of Sonic Mania, either installed internally or externally on your Switch, or from your cartridge. This is because the file we want to use, "Data.rsdk," is located in RomFS folder when dumped. I wouldn't recommend using the rsdk file from a Steam bought version of Sonic Mania, but you can try since it has essentially the same data files as the Switch version, but to make it easy and safe, use the one from your Switch. You'll need the latest version of the homebrew app nxdumptool.
If you have Kosmos 14.2, this is already pre-packaged with the latest version. If you don't have it, get the latest release and place the .nro in the /switch folder on the root of your microSD.

Once done, launch hbmenu and locate nxdumptool. On the main menu, you'll see "Dump gamecart content" and "Dump SD card / eMMC content." Choose the one you want for what you have, and make sure you've located Sonic Mania if it's installed on your Switch. Both of these have "RomFS options." This is the one you want to go to. Once in RomFS options, make sure you use your installed update file and not the installed DLC file. The update file has the updated Data.rdsk file that's used for the latest version of Sonic Mania, and the DLC file only has the DLC key; used to authenticate the DLC access. Your "Use update/DLC" option should have the update file with the title ID of Sonic Mania Plus (01109AA000FAA800), a version number, and "(UPD)" at the end. Once your update file is selected, hit "RomFS section data dump" and let it dump until it's finished. Once it's done, you can exit out by pressing + on your controller.

Locating your Data.rsdk:

Take out your microSD, insert it into your computer, and locate your switch folder. You should see a folder called "NXDumpTool." Click it, inside is the RomFS folder with a folder called "Sonic Mania [VERSION NUMBER] (01109AA000FAA800) (UPD)," and it has the Data.rsdk file you need to continue on. Ignore the shaders folder, it's not needed. Now that you have the Data.rsdk, copy it into a new folder onto your desktop or where ever you want, but keep the original .rsdk in your microSD.

Unpacking your Data.rsdk:

There are many great rdsk decrypting programs out there, but for this you should be using RetroED.
This is because it can unpack and repack rsdk files easily, and it works with rsdkv5 (the version of your rsdk file). Download the latest release, extract the zip, and run the RetroED exe file in located in the unzipped folder. You should see a GUI with tabs on the top. Click on "Engine," then "RSDK Unpacker" or press Ctrl + Shift + U. Once you're on the unpacker settings menu, click on "Select data file" and locate which folder you placed your Data.rsdk file, and make sure you go to the bottom right and choose "RSDKv5 Data Files (* .rsdk)." Find your Data.rsdk, double click it, and it'll load all the files stored on the left side window on the unpacker menu (can take a few seconds). Once they're visible in that window, press "Extract data file" and locate it in the same folder where your Data.rsdk file is, and name it "Data." Wait, and you'll get a Data folder located in the folder you made with Data.rsdk. You'll also get a folder named "Unknown Files." Don't worry about this folder, it just stores an unused sound effect that doesn't support unpacking.

Getting your mod:

You've extracted the rsdk file and got a data folder, great! Now it's time for mods. Find a good mod that's pretty light and is guaranteed working fine by the modding community. You can find mods on Gamebanana, YouTube, or anywhere that hosts mods for Sonic Mania. Getting it from the original creator's page is the best way. Once you find and download your mod, extract it, and you'll see a Data folder inside of the mod folder you have. All you need to do is overwrite your extracted Data folder with the Data folder from your mod. Confirm the mod has overwritten your extracted Data folder, and that's it. Any other files in the mod folder that are placed with the mod Data folder you can ignore.

Packing your Data folder:


Make sure you have your mod in your extracted Data folder, you're going to want to open RetroED again. Go back to the extract menu with Ctrl + Shift + U and go down to where it says "Compress data file." Click on "Select folder," find your Data folder, click it, make sure it's selected, and then click open. The media files should show up in the window once again. Now press "Build data file." A GUI should pop up asking which version of RSDK you want, select "RSDKv5." You'll get taken to your file explorer once again, go to the bottom and select "RSDKv5 (* .rsdk)" and name it "Data." Don't overwrite your pre-existing Data.rsdk, locate this new one somewhere else, maybe in a new folder or your desktop. Once you find your location, click okay, and you'll see a new Data.rsdk. Close out of RetroED. It's now usable for your LayeredFS.

Setting up your mod:

Take your new Data.rsdk with the mod inside, and go into your atmosphere folder, then click titles, and find or create a file with Sonic Mania's title ID, "01109AA000FAA000" or the Plus title ID if you have a cartridge. Make a folder called "romfs" in the folder with the title ID. In the romFS folder, place your modded Data.rsdk. You can also use Simple Mod Manager to toggle the Sonic Mania mod on or off.

Boot up your Switch, open Sonic Mania, and you should see your mod has worked and is playable on your Switch!!!

Hopefully this helped you out, and thanks for reading!

ʰᵒʷ ᵐᵃⁿʸ ᵗᶦᵐᵉˢ ᵈᶦᵈ ᶦ ˢᵃʸ ᵈᵃᵗᵃ ᵃⁿᵈ ʳˢᵈᵏ ˡᵒˡ
 
Last edited by ,

Shadic12

New Member
Newbie
Joined
Jul 2, 2016
Messages
4
Trophies
0
Age
32
XP
58
Country
United States
I just wanted to know how do you run a preexisting mod with add-ons? For example I have the Modern Sonic mod but I want him to have his boost and homing attack ability which are dll files. how do I go about applying them on the Switch? Here is the video of what I am talking about:
 
D

Deleted User

Guest
OP
I just wanted to know how do you run a preexisting mod with add-ons? For example I have the Modern Sonic mod but I want him to have his boost and homing attack ability which are dll files. how do I go about applying them on the Switch? Here is the video of what I am talking about:


I don't know, but DLL files are usually just used just for executables and are separate from the data of the main game. Better off just using them with the PC version.
 

Shadic12

New Member
Newbie
Joined
Jul 2, 2016
Messages
4
Trophies
0
Age
32
XP
58
Country
United States
I don't know, but DLL files are usually just used just for executables and are separate from the data of the main game. Better off just using them with the PC version.
Alright I will use it on the PC version thanks for the response.
 

UNREALWINS

Active Member
Newcomer
Joined
Aug 26, 2016
Messages
28
Trophies
0
Age
42
XP
158
Country
Brazil
I tried all day to make some mod work but nothing worked. It only gave black screen. I tested with version 1.04 installed, uninstalled, reinstalled and nothing worked.
 

ristar

Member
Newcomer
Joined
Jul 29, 2012
Messages
19
Trophies
0
Age
30
XP
156
Country
United States
I’m having trouble getting this working - I put all the requisite files and directories into /atmosphere/contents because of the revised ah Atmosphere handles mods, but Sonic Mania still doesn’t load the repacked Data file when starting up.
 
D

Deleted User

Guest
OP
I tried all day to make some mod work but nothing worked. It only gave black screen. I tested with version 1.04 installed, uninstalled, reinstalled and nothing worked.

Which mod are you using? If it has a DLL file, a black screen will show up because the DLL file needs a external program to function. Since such a thing doesn't exist yet on Switch, you'll have to use mods that only replace existing files.

I’m having trouble getting this working - I put all the requisite files and directories into /atmosphere/contents because of the revised ah Atmosphere handles mods, but Sonic Mania still doesn’t load the repacked Data file when starting up.

Hm, I only know of /atmosphere/titles/[title ID] as the directory for layeredfs to recognize mods. I don't remember that directory being used. Then again, I haven't been active in the Switch homebrew community for about a month now. Did you try the directory in the tutorial, or tell the revised directory the title id?
 
Last edited by ,

ristar

Member
Newcomer
Joined
Jul 29, 2012
Messages
19
Trophies
0
Age
30
XP
156
Country
United States
Which mod are you using? If it has a DLL file, a black screen will show up because the DLL file needs a external program to function. Since such a thing doesn't exist yet on Switch, you'll have to use mods that only replace existing files.

Hm, I only know of /atmosphere/titles/[title ID] as the directory for layeredfs to recognize mods. I don't remember that directory being used. Then again, I haven't been active in the Switch homebrew community for about a month now. Did you try the directory in the tutorial, or tell the revised directory the title id?

I tried the titles folder first, yeah - that didn’t seem to work, either. Also what’s this about a revised title id? Nxdumptool gave the same ID as was listed in the initial post, so that’s what I used for the folder name.
 
D

Deleted User

Guest
OP
I tried the titles folder first, yeah - that didn’t seem to work, either. Also what’s this about a revised title id? Nxdumptool gave the same ID as was listed in the initial post, so that’s what I used for the folder name.
I think I got confused when you said revised in your first post, sorry. Did you use the Plus ID or the Base ID (Plus: 01109AA000FAA800) (Mania: 01109AA000FAA000).
I only have the digital version, so I used 01109AA000FAA000. The cartridge version might use 01109AA000FAA800 or 01109AA000FAA000 but I don't know since I don't have it. Sorry if this is confusing.

Just try 01109AA000FAA000 instead of the ID that I said that was tied to the cartridge which might just be the ID of the update. Tell me if it works and I'll update the post.
 

lisalover1

Active Member
Newcomer
Joined
Oct 3, 2008
Messages
36
Trophies
0
XP
245
Country
United States
I think I got confused when you said revised in your first post, sorry. Did you use the Plus ID or the Base ID (Plus: 01109AA000FAA800) (Mania: 01109AA000FAA000).
I only have the digital version, so I used 01109AA000FAA000. The cartridge version might use 01109AA000FAA800 or 01109AA000FAA000 but I don't know since I don't have it. Sorry if this is confusing.

Just try 01109AA000FAA000 instead of the ID that I said that was tied to the cartridge which might just be the ID of the update. Tell me if it works and I'll update the post.
No such luck - I've tried both my cartridge and download versions with both Title IDs, in both the /titles and /content folders, and the mods still don't load...
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • BakerMan @ BakerMan:
    fuck ubisoft, and fuck activision
    +1
  • realtimesave @ realtimesave:
    Nintendo needs to release a new console, switch is getting such shitty little games lately lol it's pathetic
  • Purple_Heart @ Purple_Heart:
    Lmao a new flashcart... The Unlock Switch... I knew it's not fake xD
    +1
  • NinStar @ NinStar:
    A new consoles won't solve that problem
  • NinStar @ NinStar:
    It will actually make it worse
  • The Real Jdbye @ The Real Jdbye:
    well actually
    a new console won't do anything right now, because the games are still in development, that's why there are few games being released
  • The Real Jdbye @ The Real Jdbye:
    it won't make the games finish any faster
  • Veho @ Veho:
    2/3rds of launch titles for the Switch 2 will just be lazy ports of Switch games anyway.
  • The Real Jdbye @ The Real Jdbye:
    probably
  • The Real Jdbye @ The Real Jdbye:
    maybe mario kart 9 will be a launch title
  • The Real Jdbye @ The Real Jdbye:
    i really want a new mario kart
  • Veho @ Veho:
    What, you mean the endless stream of DLCs doesn't count?
  • Veho @ Veho:
    Why develop a new game when you can just sell season passes forever?
  • Veho @ Veho:
    I'm still on MKDS so I'm not bothered :tpi:
  • The Real Jdbye @ The Real Jdbye:
    i like the dlc tbh, i'd like a new game more
  • ZeroT21 @ ZeroT21:
    but the current version is still selling fine at full price
  • SylverReZ @ SylverReZ:
    Hello
  • ZeroT21 @ ZeroT21:
    sup
    +1
  • SylverReZ @ SylverReZ:
    @realtimesave, You seen the Unlock Switch flashcart yet?
  • K3Nv2 @ K3Nv2:
    I'll see the 19.0 update that blocks use ability to it
    +1
  • K3Nv2 @ K3Nv2:
    Lol newegg+
    Screenshot-20240423-053504-Gmail.jpg
  • S @ salazarcosplay:
    does update 19 really block it
  • SylverReZ @ SylverReZ:
    Update 19 never came out yet. Just the 18.1.
    SylverReZ @ SylverReZ: Update 19 never came out yet. Just the 18.1.