Hacking [QUESTION] Change the title ID of a game

lordelan

Well-Known Member
OP
Member
Joined
Jan 4, 2015
Messages
5,785
Trophies
1
Age
44
XP
6,510
Country
Germany
I want to install multiple copies of Mario Kart 8 Deluxe and BOTW simultaneously on my Switch, as I wanna have separate games for different mod (packs).
I'm well aware of LayeredFS and that I don't have to but want it anyway. Also want different save games on each so I'd say it's a legit request.
I've dumped main game, update and DLC of my MK8D and ended up with three NSPs.

So my questions are:
  1. Which tool do I need to "unpack" the NSP in order to alter files? Is it HacTool?
  2. Which file(s?) would I need to edit in order to change the title ID?
  3. Is there any reason why I wouldn't be able to copy mod files directly into the unpacked NSP before repacking it so the installed game comes already shipped with the mod included (without the need of LayeredFS)?
  4. Which tool do I need to repack my altered files to NSP again? Also HacTool?
  5. Important question: How would I edit the update and DLC file to belong to my newly created base game NSP with an altered title ID?
    Or can I just unpack those two and include it into the base game files as well before repacking to have one single "All-in-One-NSP" that I install?
  6. Bonus question: Is there any convention or pattern I should rely on when giving my games new title IDs?
 

binkinator

Garfield’s Fitness Coach
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
6,511
Trophies
2
XP
6,155
Country
United States
I’m curious about this too. A useful idea if there’s a way to pull it off.

My hunch would be that the titleID will be sprinkled throughout the game so it may or may not function at all under a made up title ID.
source: my pink nether regions.

I’ll shutup now to allow someone with actual knowledge to chime it.
 
  • Haha
Reactions: BigOnYa

lordelan

Well-Known Member
OP
Member
Joined
Jan 4, 2015
Messages
5,785
Trophies
1
Age
44
XP
6,510
Country
Germany
We need to figure it out.
Pretty sure people like @SciresM know it.
I'll gladly provide a well written tutorial here on gbatemp for both (title ID changing and including mods/update+dlc directly into NSP) once my question got answered and I got that running.
 
  • Like
Reactions: AinzOoalGown

masagrator

The patches guy
Developer
Joined
Oct 14, 2018
Messages
6,264
Trophies
3
XP
12,024
Country
Poland
SciresM won't provide solution, for NSP this requires repacking game, and repacking game makes validation checks invalid, thus game like that is considered as pirated content.

It would be easier to implement mod separation for different profiles to Atmosphere, but I doubt SciresM will want to implement such niche feature as already has doubts in implementing mod separation for emummc and sysmmc which I guess is more valid request.
 
  • Like
Reactions: BigOnYa

lordelan

Well-Known Member
OP
Member
Joined
Jan 4, 2015
Messages
5,785
Trophies
1
Age
44
XP
6,510
Country
Germany
SciresM won't provide solution, for NSP this requires repacking game, and repacking game makes validation checks invalid, thus game like that is considered as pirated content.
While I don't care for that (as what I'm planning to do is legit anyway as long as I bring my own MK8D game to the party) and should be fine with signature patches, I wonder if it's even possible to repack NCAs or romFS back into NSP/XCI. I looked at HacTool, HacToolGUI (abandoned) and HACGUI and it appears that it's "only" possible to extract Switch games but not repack them. :huh:

The official gbatemp thread of HacTool claims it can repack NSPs but there's literally zero documentation about this tool and I can't seem to find it among all possible CLI arguments within the GitHub readme.
 
Last edited by lordelan,

binkinator

Garfield’s Fitness Coach
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
6,511
Trophies
2
XP
6,155
Country
United States
While I don't care for that (as what I'm planning to do is legit anyway as long as I bring my own MK8D game to the party) and should be fine with signature patches, I wonder if it's even possible to repack NCAs or romFS back into NSP/XCI. I looked at HacTool, HacToolGUI (abandoned) and HACGUI and it appears that it's "only" possible to extract Switch games but not repack them. :huh:

The official gbatemp thread of HacTool claims it can repack NSPs but there's literally zero documentation about this tool and I can't seem to find it among all possible CLI arguments within the GitHub readme.
I‘m pretty sure hacBrewPack will put NSPs back together again. Might be just for homebrew though. :-(
 

binkinator

Garfield’s Fitness Coach
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
6,511
Trophies
2
XP
6,155
Country
United States
Same person also made hacPack which is more geared towards repacking Nintendo Switch games. Maybe this is what you guys are looking for?
Good call! Seems @DarkMatterCore ’s rendition is most up to date.

https://github.com/DarkMatterCore/hacPack

Going to see if it builds w/ latest from DevKitPro.

e: closing the loop here. Not only does it build w/ latest, the 2019 releases from @The-4n still run on Windows just fine.

I’ve not mucked with anything end-to-end and I don’t know if there will be any issues w/ keys or anything. It shouldn’t matter but don’t know for sure, yet. Going to look for a good tut and see if I can make a custom SMO or something basic as a test.
 
Last edited by binkinator,

Unity150_magickavoxel

Well-Known Member
Member
Joined
Jan 6, 2018
Messages
120
Trophies
0
Age
23
XP
853
Country
Canada
hactool to unpack nsp and extract program nca that will give exefs and romfs and also extract control nca if you want to change the icon. Also need to change the titleid in main.npdm. Repack the nca using hacpack and also need to make a meta nca
then make nsp using those nca's using hacpack. As for titleid you should just use titleids from other games that you won't ever play.
 
  • Like
Reactions: lordelan

masagrator

The patches guy
Developer
Joined
Oct 14, 2018
Messages
6,264
Trophies
3
XP
12,024
Country
Poland
Bonus question: Is there any convention or pattern I should rely on when giving my games new title IDs?
game titleid must be higher than 0100000000010000 and lower than 01FFFFFFFFFFE000
it must be divisible by 0x2000

update must have: titleid of base game titleid + 0x800
DLC titleid must have: titleid of base game + 0x1000 + DLC ID (1 or 2 or 3, etc)
 

lordelan

Well-Known Member
OP
Member
Joined
Jan 4, 2015
Messages
5,785
Trophies
1
Age
44
XP
6,510
Country
Germany
hactool to unpack nsp and extract program nca that will give exefs and romfs and also extract control nca if you want to change the icon. Also need to change the titleid in main.npdm. Repack the nca using hacpack and also need to make a meta nca
then make nsp using those nca's using hacpack. As for titleid you should just use titleids from other games that you won't ever play.
Thanks! :) I'm about to try this probably this evening. And good point, I also want to change the icon.
game titleid must be higher than 0100000000010000 and lower than 01FFFFFFFFFFE000
it must be divisible by 0x2000

update must have: titleid of base game titleid + 0x800
DLC titleid must have: titleid of base game + 0x1000 + DLC ID (1 or 2 or 3, etc)
That's very helpful, thanks.
I should probably be fine using any Title ID that (e.g.) nro2nsp generates randomly I guess. And I'm about to try to bundle update and DLCs into the base game before repacking it so I only need that one Title ID.
 

Clutz450

Well-Known Member
Member
Joined
Jul 20, 2013
Messages
778
Trophies
1
Age
41
XP
1,180
Country
United States
@lordelan , Did you ever figure this out? The small community that I am a part of that is keeping Super Mario Bros. 35 alive is working on a mod to change all the levels to those from The Lost Levels (the Japanese version of Super Mario Bros. 2). From what I understand right now, it's a pain to have to rename mod folders to turn on and off the mod (unless there a homebrew app that can easily do it). So I was thinking that we could install the game twice (one modded and one not modded) to have both versions of the game installed at once and we can select the one we want. What are your thoughts? Thank you.
 

lordelan

Well-Known Member
OP
Member
Joined
Jan 4, 2015
Messages
5,785
Trophies
1
Age
44
XP
6,510
Country
Germany
Did you ever figure this out?
Hey buddy. Unfortunately not. And I dare to say I tried literally everything possible. Part of that has to do with the fact, that a few tools that could have helped with that, are super outdated at this point and won't work any with any firmwares and/or games from the recent 3 or 4 years.
(unless there a homebrew app that can easily do it)
There is: https://github.com/nadrino/SimpleModManager
Might be enough for your needs.
So I was thinking that we could install the game twice (one modded and one not modded) to have both versions of the game installed at once and we can select the one we want.
That was exactly what I was trying to do with BotW and MK8D. For the latter I wanted to have one MK8D there for SitBar's Mod pack while keeping the vanilla game to go with CTGP-Deluxe (whenever that comes out).
Having to rely on switching between mods (even with the rather comfortable homebrew app) is not satisfying at all. It's not elegant.
The same bugs me to death on the Wii U. At least I can install the US version next to the EU version for most of the games there but I still wonder, why no skilled dev takes on the task to provide a homebrew (or any other way) to easily alter a game's TID.
This was way better on the (v)Wii where I could have hundreds of MKWii and NSMBW versions next to each other.
The small community that I am a part of that is keeping Super Mario Bros. 35 alive
Wait, are you telling me you can still play this online? Is there a hack to enable it for Switch LAN Play or how do u guys do it?
Also love the Lost Levels. :) Feel free to invite me if you have a Discord or something like that.
 

TheStonedModder

Well-Known Member
Member
Joined
Dec 25, 2022
Messages
788
Trophies
0
Age
27
XP
1,582
Country
United States
Hey buddy. Unfortunately not. And I dare to say I tried literally everything possible. Part of that has to do with the fact, that a few tools that could have helped with that, are super outdated at this point and won't work any with any firmwares and/or games from the recent 3 or 4 years.

There is: https://github.com/nadrino/SimpleModManager
Might be enough for your needs.

That was exactly what I was trying to do with BotW and MK8D. For the latter I wanted to have one MK8D there for SitBar's Mod pack while keeping the vanilla game to go with CTGP-Deluxe (whenever that comes out).
Having to rely on switching between mods (even with the rather comfortable homebrew app) is not satisfying at all. It's not elegant.
The same bugs me to death on the Wii U. At least I can install the US version next to the EU version for most of the games there but I still wonder, why no skilled dev takes on the task to provide a homebrew (or any other way) to easily alter a game's TID.
This was way better on the (v)Wii where I could have hundreds of MKWii and NSMBW versions next to each other.

Wait, are you telling me you can still play this online? Is there a hack to enable it for Switch LAN Play or how do u guys do it?
Also love the Lost Levels. :) Feel free to invite me if you have a Discord or something like that.
Wow the tools being old is a good point I didn’t consider

Maybe that’s also why I couldn’t get hacbuild or anything to actually build an XCI correctly
 
  • Like
Reactions: lordelan

lordelan

Well-Known Member
OP
Member
Joined
Jan 4, 2015
Messages
5,785
Trophies
1
Age
44
XP
6,510
Country
Germany
Wait, are you telling me you can still play this online? Is there a hack to enable it for Switch LAN Play or how do u guys do it?
To answer myself: https://smb35server.com/
Nothing to do with Switch LAN Play. It just patches the server url directly in the game files via LayeredFS (aka a game mod that can be used in Atmosphère or any emulator) and they re-built the server on their own basically.

@Clutz450 I'd still love to get in touch with that Lost Levels community for that so feel free to pull me into your Discord server if it exists (and you're accepting new faces).
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • SylverReZ @ SylverReZ:
    Had a ton of bugs and often crashed. It even didn't support DOS compatibility with older games. :feelsbadman:
  • SylverReZ @ SylverReZ:
    I only grew up with Windows XP because I was lucky.
  • RedColoredStars @ RedColoredStars:
    I downloaded XP on dialup when it came out. Overnights for like a week. cuz I couldn't tie up the phone line during the day. It was so awesome and worked so great going from ME to XP.
  • K3Nv2 @ K3Nv2:
    Vga pins were a dick
  • K3Nv2 @ K3Nv2:
    I kind of want down a large pizza at 10am then crash out
  • ZeroT21 @ ZeroT21:
    Having pizza all day? done it
  • K3Nv2 @ K3Nv2:
    Nah pizza hut open at 10:30
  • ZeroT21 @ ZeroT21:
    just buy a stack of pizza and keep the rest you don't need yet frozen
  • K3Nv2 @ K3Nv2:
    Or buy frozen pizza
  • ZeroT21 @ ZeroT21:
    I buy the regular kind, not the frozen stuff
  • ZeroT21 @ ZeroT21:
    supermarket pizza is ass
  • K3Nv2 @ K3Nv2:
    x65 would just yell at me
  • ZeroT21 @ ZeroT21:
    sounds ok, he didn't pull a gun out ,so...
  • K3Nv2 @ K3Nv2:
    $12 large any style pizza deal
  • K3Nv2 @ K3Nv2:
    Each bite is a $1 well spent
  • SylverReZ @ SylverReZ:
    @ZeroT21, Agreed. I hate oven pizza, only from pizza place.
    +1
  • K3Nv2 @ K3Nv2:
    Nah I can still go for totinos
  • RedColoredStars @ RedColoredStars:
    i like totinos party pizzas. lol.
  • RedColoredStars @ RedColoredStars:
    the cracker-like crust is great on those
  • RedColoredStars @ RedColoredStars:
    My neighbor and I are going to make this next month....
  • SylverReZ @ SylverReZ:
    Tiger crust is great.
  • K3Nv2 @ K3Nv2:
    I'm beefing with a neighbor currently each time I ask him for help with something he makes bs excuses then ignores my calls text but seems to randomly speak when I'm done with the project after doing things to help him
  • RedColoredStars @ RedColoredStars:
    DiGiorno Crispy Pan Pizza tasted pretty dang close to Pizza hut pan pizza, but Im not sure if theyve been discontinued or not. Havent seen them locally for a couple of months now.
  • RedColoredStars @ RedColoredStars:
    The croissant crust is still available though, but not quite as good imo.
    RedColoredStars @ RedColoredStars: The croissant crust is still available though, but not quite as good imo.