RELEASE hacBrewPack - Make NSPs/NCAs from homebrews

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by The-4n, Sep 19, 2018.

  1. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    22
    Oct 27, 2002
    France
    Engine room, learning
    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, Sep 29, 2018
    Owenge, The-4n, daxtsu and 1 other person like this.
  2. Bigjokker

    Bigjokker GBAtemp Regular

    Member
    3
    Jan 4, 2015
    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, Sep 29, 2018
  3. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    22
    Oct 27, 2002
    France
    Engine room, learning
    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, Sep 29, 2018
  4. Bigjokker

    Bigjokker GBAtemp Regular

    Member
    3
    Jan 4, 2015
    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, Sep 29, 2018
    DarkUnixOs likes this.
  5. delete12345

    delete12345 GBAtemp Advanced Fan

    Member
    6
    Feb 27, 2010
    United States
    Taipei, Taiwan
    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.
     
  6. The-4n
    OP

    The-4n GBAtemp Fan

    Member
    9
    Aug 3, 2018
    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
     
  7. AnalogMan

    AnalogMan ultraSuMoFramework Dev

    Member
    11
    Apr 20, 2007
    United States
    Why thank you, I hope someone finds it useful.
     
    Last edited by AnalogMan, Sep 29, 2018
  8. Bigjokker

    Bigjokker GBAtemp Regular

    Member
    3
    Jan 4, 2015
    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)
     
  9. The-4n
    OP

    The-4n GBAtemp Fan

    Member
    9
    Aug 3, 2018
    United States
    there's no minimum firmware requirement in main.
    it's just in cnmt, and hacBrewPack fills it with 0
     
    Bigjokker likes this.
  10. Bigjokker

    Bigjokker GBAtemp Regular

    Member
    3
    Jan 4, 2015
    United States
    So if I repack a 6.0 firmware required backup I will be able to play it on my 5.1.0 system?
     
  11. The-4n
    OP

    The-4n GBAtemp Fan

    Member
    9
    Aug 3, 2018
    United States
    it may not work
    if the game uses some functions that are only in firmware 6.0.0, it may crash
     
    Last edited by The-4n, Sep 30, 2018
    Bigjokker likes this.
  12. jimmyj

    jimmyj Official founder of altariaism. Copyright jimmyj

    Member
    7
    May 26, 2017
    Italy
    Hyrule
    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
     
  13. The-4n
    OP

    The-4n GBAtemp Fan

    Member
    9
    Aug 3, 2018
    United States
    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
     
    jimmyj likes this.
  14. jimmyj

    jimmyj Official founder of altariaism. Copyright jimmyj

    Member
    7
    May 26, 2017
    Italy
    Hyrule
    so uh I want to rebuild a game with modified files to nsp,can I do that with this?
     
  15. The-4n
    OP

    The-4n GBAtemp Fan

    Member
    9
    Aug 3, 2018
    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

    — Posts automatically merged - Please don't double post! —

    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/
     
    hippy dave likes this.
  16. ShadowOne333

    ShadowOne333 GBAtemp Guru

    Member
    18
    Jan 17, 2013
    Mexico
    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.
     
  17. The-4n
    OP

    The-4n GBAtemp Fan

    Member
    9
    Aug 3, 2018
    United States
    ShadowOne333 likes this.
  18. m00k00

    m00k00 Advanced Member

    Newcomer
    3
    Sep 16, 2015
    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!
     
  19. The-4n
    OP

    The-4n GBAtemp Fan

    Member
    9
    Aug 3, 2018
    United States
    Odb718 and hippy dave like this.
  20. The-4n
    This message by The-4n has been removed from public view by x65943, Oct 10, 2018, Reason: dupe.
    Oct 10, 2018
  21. The-4n
    This message by The-4n has been removed from public view by x65943, Oct 10, 2018, Reason: dupe.
    Oct 10, 2018
  22. The-4n
    This message by The-4n has been removed from public view by x65943, Oct 10, 2018, Reason: Dupe.
    Oct 10, 2018
  23. hippy dave

    hippy dave BBMB

    Member
    14
    Apr 30, 2012
    United Kingdom
    Hey @Cyan I just made this forwarder for uae4all2, please could you add it to the wiki and/or make me a wiki account? TY!

    Thanks op for the cool tool also, I used it via Nro2Nsp for extra laziness.
     
  24. The-4n
    OP

    The-4n GBAtemp Fan

    Member
    9
    Aug 3, 2018
    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
     
    8BitWonder, hippy dave and XorTroll like this.
  25. Psychdelic

    Psychdelic GBAtemp Regular

    Member
    3
    Nov 25, 2013
    United States
    What cannot hacPack do that this one can if I may ask?
     
  26. The-4n
    OP

    The-4n GBAtemp Fan

    Member
    9
    Aug 3, 2018
    United States
    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
     
    Psychdelic likes this.
Loading...