Homebrew RELEASE hacBrewPack - Make NSPs/NCAs from homebrews

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
46
Location
Engine room, learning
XP
15,662
Country
France
I thought using switchbrew was more logical because not everyone is following gbatemp (and even less wikitemp), but I can create a wikitemp page to keep track of current titleID until a proper switchbrew page is created.

alternatively, we could maintain the list on the first post of this thread too.

edit:
I created this page :
https://wiki.gbatemp.net/wiki/List_of_Switch_homebrew_titleID

Please, review and report any error !! I probably made some errors as I never tried that tool yet.
I put the link to the first post too.

I added switch category to Wikitemp main page to make them visible to everyone. they are still missing a lot of data.
 
Last edited by Cyan,

Bigjokker

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
98
Trophies
0
Age
47
XP
356
Country
United States
That is a BIG number. I don't think we will be running into the same random titleid. Unless of course you have a Quadrillion games.:lol:
 
Last edited by Bigjokker,

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
46
Location
Engine room, learning
XP
15,662
Country
France
conflict might not happen, and (I thought it was a problem but apparently not) at worse it won't overwrite the existing title when trying to install it. but just to prevent people from using simple numbers 0100000000015000 for example
maybe it could be useful to someone to get a list of existing TitleID. for example, making launchers ? maybe not, I don't know.

I added a link to the python3 TitleID generator.
 
Last edited by Cyan,

Bigjokker

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
98
Trophies
0
Age
47
XP
356
Country
United States
Also if we can find the error code a conflicting titleid would cause would be helpful.

As the OP said the new one will not install and it won't conflict with your current game.

@Cyan Here is a bat TitleID maker for people who don't use python.

Code:
@ECHO OFF
setlocal enabledelayedexpansion
set n=0
:loop
set rand=
set /A rand=%RANDOM%%%16+1
set /A n=n+1
if %rand%==1 set rand!n!=a
if %rand%==2 set rand!n!=b
if %rand%==3 set rand!n!=c
if %rand%==4 set rand!n!=d
if %rand%==5 set rand!n!=e
if %rand%==6 set rand!n!=f
if %rand%==7 set rand!n!=1
if %rand%==8 set rand!n!=2
if %rand%==9 set rand!n!=3
if %rand%==10 set rand!n!=4
if %rand%==11 set rand!n!=5
if %rand%==12 set rand!n!=6
if %rand%==13 set rand!n!=7
if %rand%==14 set rand!n!=8
if %rand%==15 set rand!n!=9
if %rand%==16 set rand!n!=0
if !n!==11 goto end
if !n! LSS 11 goto loop
:end
echo.
echo Random TitleID : 01%rand1%%rand2%%rand3%%rand4%%rand5%%rand6%%rand7%%rand8%%rand9%%rand10%%rand11%000
echo.
pause
exit
 
Last edited by Bigjokker,

delete12345

Well-Known Member
Member
Joined
Feb 27, 2010
Messages
695
Trophies
1
Age
32
Location
Taipei, Taiwan
XP
1,290
Country
United States
I thought using switchbrew was more logical because not everyone is following gbatemp (and even less wikitemp), but I can create a wikitemp page to keep track of current titleID until a proper switchbrew page is created.

If I recalled, WinterMute and others have expressed desires to keep switchbrew wiki to be only a technical wiki, and would prefer others to make their own solutions to maintain databases keeping track of everything outside of the technical info wiki. So, they won't put a page full of homebrew title IDs there, because it's not really a technical article.

I could be wrong.
 

The-4n

Well-Known Member
OP
Newcomer
Joined
Aug 3, 2018
Messages
46
Trophies
0
Age
44
XP
2,768
Country
United States
I think gbatemp wiki is a better option for homebrew titleids, switchbrew is not suitable for this
There are lots of nsps floating around, some of them are made with hacBrewPack, others with sdk, but i'm not sure if devs or nsp creators post their tids
 

DocKlokMan

Plugin Dev
Member
Joined
Apr 20, 2007
Messages
3,009
Trophies
2
Age
36
XP
4,571
Country
United States
conflict might not happen, and (I thought it was a problem but apparently not) at worse it won't overwrite the existing title when trying to install it. but just to prevent people from using simple numbers 0100000000015000 for example
maybe it could be useful to someone to get a list of existing TitleID. for example, making launchers ? maybe not, I don't know.

I added a link to the python3 TitleID generator.
Why thank you, I hope someone finds it useful.
 
Last edited by DocKlokMan,

Bigjokker

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
98
Trophies
0
Age
47
XP
356
Country
United States
I repacked a retail backup with hacbrewpack and it loaded fine on my switch.

My question is does this remove the games firmware requirements or is that in the games files (i.e main)
 

The-4n

Well-Known Member
OP
Newcomer
Joined
Aug 3, 2018
Messages
46
Trophies
0
Age
44
XP
2,768
Country
United States
I repacked a retail backup with hacbrewpack and it loaded fine on my switch.

My question is does this remove the games firmware requirements or is that in the games files (i.e main)

there's no minimum firmware requirement in main.
it's just in cnmt, and hacBrewPack fills it with 0
 
  • Like
Reactions: Bigjokker

jimmyj

Official founder of altariaism. Copyright jimmyj
Member
Joined
May 26, 2017
Messages
1,485
Trophies
1
Location
Hyrule
XP
1,632
Country
United Kingdom
what title ids can I use that won't interfere with other title ids? like I don't want to accidentally overwrite a system title just because they had the same title id
 

The-4n

Well-Known Member
OP
Newcomer
Joined
Aug 3, 2018
Messages
46
Trophies
0
Age
44
XP
2,768
Country
United States
what title ids can I use that won't interfere with other title ids? like I don't want to accidentally overwrite a system title just because they had the same title id

you cant override system titles with hacbrewpack
if you choose a title id which is already exists in switch, your nsp doesn't install

here's the list of known system titles:
https://switchbrew.org/wiki/Title_list
 
  • Like
Reactions: jimmyj

The-4n

Well-Known Member
OP
Newcomer
Joined
Aug 3, 2018
Messages
46
Trophies
0
Age
44
XP
2,768
Country
United States
new version is out, v1.16
https://github.com/The-4n/hacBrewPack/releases/tag/v1.16

Changelog:
Fixed a bug cause failure of control.nacp validation in titles without AmericanEnglish title name and title author

--------------------- MERGED ---------------------------

so uh I want to rebuild a game with modified files to nsp,can I do that with this?

you can, but hacBrewPack is just limited to program and control ncas and it just make application cnmts
you can use hacPack for this purpose
https://gbatemp.net/threads/hacpack-build-and-repack-ncas-and-nsps.519815/
 
  • Like
Reactions: hippy dave

ShadowOne333

QVID PRO QVO
Editorial Team
Joined
Jan 17, 2013
Messages
12,248
Trophies
2
XP
34,953
Country
Mexico
new version is out, v1.16
https://github.com/The-4n/hacBrewPack/releases/tag/v1.16

Changelog:
Fixed a bug cause failure of control.nacp validation in titles without AmericanEnglish title name and title author

--------------------- MERGED ---------------------------



you can, but hacBrewPack is just limited to program and control ncas and it just make application cnmts
you can use hacPack for this purpose
https://gbatemp.net/threads/hacpack-build-and-repack-ncas-and-nsps.519815/
Do you think it would be possible to implement this into the made NSPs?
https://gbatemp.net/threads/how-to-...crypto-equivalent-ban-risk-mitigation.518312/

Maybe not for the homebrew NSPs, but perhaps for the NCAs to NSPs conversions could help.
 

The-4n

Well-Known Member
OP
Newcomer
Joined
Aug 3, 2018
Messages
46
Trophies
0
Age
44
XP
2,768
Country
United States
  • Like
Reactions: ShadowOne333

m00k00

Well-Known Member
Member
Joined
Sep 16, 2015
Messages
128
Trophies
0
Age
52
XP
1,228
Country
Gambia, The
I like how it went like: "look my friends, I've got legal NSP for you" and everyone was like "bla bla bla, show source, provide proof, gtfo d00d!" ... and then out of the sudden: BOOM! Next Milestone in Switch Haxxing achieved ... everyone praise T3h-4n! Haha, you really kicked them balls there ... great job and thanks for all your efforts and sharing with the scene, ofc!
 

hippy dave

BBMB
Member
Joined
Apr 30, 2012
Messages
9,944
Trophies
2
XP
30,283
Country
United Kingdom

The-4n

Well-Known Member
OP
Newcomer
Joined
Aug 3, 2018
Messages
46
Trophies
0
Age
44
XP
2,768
Country
United States
new version is out, v1.20
https://github.com/The-4n/hacBrewPack/releases/tag/v1.20

Changelog:
hacBrewPack now reads titleid from NPDM
Added nonacplogopatch option
Fixed a bug cause invalid IVFC level 6 when romfs section is big
Fixed a bug in writing padding
Fixed sdkversion valid range
Changed hash block size for better compatibility
Increased NCA section encryption buffer size
Changed valid titleid range
 

The-4n

Well-Known Member
OP
Newcomer
Joined
Aug 3, 2018
Messages
46
Trophies
0
Age
44
XP
2,768
Country
United States
What cannot hacPack do that this one can if I may ask?

hacBrewPack is just easier than hacPack, hacPack has more capabilities
By using hacPack, You must make program nca, then control nca and after that metadata nca, then pack them into nsp, for every step you need to pass arguments
With hacBrewPack, you can just easily place your files in exefs,romfs,logo and control directories, run hacBrewPack with no argument and you'll get an nsp
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • AngryCinnabon @ AngryCinnabon:
    Just be careful, if trump ends up winning and using project 2025 America might really change...for the worse.
  • AngryCinnabon @ AngryCinnabon:
    I'm not american and even that sends shivers down my spine.
  • AngryCinnabon @ AngryCinnabon:
    anything that offers trump an opportunity to become an actual dictator
    is bad in my book, i could care less if it wasn't for that...
  • K3Nv2 @ K3Nv2:
    Canada: America's Russia
  • NinStar @ NinStar:
    people are so dramatic that I can't even tell if they are being serious
  • Psionic Roshambo @ Psionic Roshambo:
    Why so serious!
  • Psionic Roshambo @ Psionic Roshambo:
    @BakerMan, yeah that's about the only reason I would vote for Trump over Biden.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    In my opinion on all other factors they are pretty much the same.
    +1
  • Veho @ Veho:
    Economy was better under Trump, according to Fox News.
    +1
  • Veho @ Veho:
    I don't give a fuck about what happens to America but I would like it if your shit didn't spill out on the rest of the world, thank you.
    +3
  • AncientBoi @ AncientBoi:
    A Far Right news service company
  • AncientBoi @ AncientBoi:
    I give a fuck about what happens to America but I would like it if our shit didn't spill out on the rest of the world, thank you.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    @Veho, didn't need any news. Just going to the store and buying groceries is a constant reminder.
  • Veho @ Veho:
    A reminder that all corporations reported record profits these last few years?
  • Veho @ Veho:
    Reminded that every single price gouging law was blocked by republicans because "muh gubmint overreach"?
  • Veho @ Veho:
    Won't somebody please think of the corporations?!?!
  • Psionic Roshambo @ Psionic Roshambo:
    The problem with X party blocked X bill that would have prevented X is that yes the bill probably would have worked great, buuuttt they put XYZDCBG in said bill as an attempt to sneak things in that tend to be completely unrelated to the original bills intent. It sucks because if they would just do a single thing they could probably get something done...
  • Psionic Roshambo @ Psionic Roshambo:
    But congressman X needs to have government funding for his cousins unicycle business
  • Psionic Roshambo @ Psionic Roshambo:
    It's a sad state of affairs
  • Psionic Roshambo @ Psionic Roshambo:
    Mom I don't want to do homework!!!
    Psionic Roshambo @ Psionic Roshambo: Mom I don't want to do homework!!!