Homebrew RELEASE NSP Forwarder tool for 12+

  • Thread starter Thread starter mpham
  • Start date Start date
  • Views Views 130,921
  • Replies Replies 95
  • Likes Likes 27

mpham

Member
Newcomer
Joined
Aug 30, 2020
Messages
10
Reaction score
36
Trophies
0
Age
51
Website
www.martinpham.com
XP
224
Country
Italy
Because the Nro2Nsp is not working with 12+, so I tried to make a tool to do it by myself, based on hacBrewPack, for Windows

Step by step
1) Download https://gitlab.com/martinpham/NSP-Forwarder/-/archive/master/NSP-Forwarder-master.zip
2) Extract to a folder on your Desktop, eg: NSP-Forwarder. Then copy your prod.keys file into it.
3) Press [Window]+R, then type cmd, press Enter to open Command Prompt
4) Type cd, [Space], then drag the NSP-Forwarder folder into the Command Prompt windows, press Enter
5) Type build APP_NAME ICON_PATH NRO_PATH then press Enter
- APP_NAME = Display name of the your app
- ICON_PATH = Path of icon file
- NRO_PATH = Path to the nro file
- You can drag the icon file into the Command Prompt instead of typing the path

Example
build DBI C:\Users\ZZZ\Desktop\icon.jpg /switch/DBI.nro

It will build the NSP file and places it into the NSP folder


EDIT: If you have problem with DLL file, try to install MSYS2 - https://www.msys2.org/
EDIT2: I've attached some NSPs I built for myself
 

Attachments

Last edited by mpham,
Hello I get this error when doing the build (modifier is not valid "icon_AmericanEnglish.dat"), the nsp works but it has no icon, which may be? I am using jpg 256x256
 
@mpham
Can you please add an option to specify TitleID manually instead of random generating it?

PS: I've got "icon_AmericanEnglish.dat" error, too.
 
Last edited by mathew77,
I think I figured it out. After I placed my .jpg files on the desktop, and dragged them into the CMD from there, they show up on the switch. Even though I also get that "icon_AmericanEnglish.dat" error as well. Hope this works for someone else, since I was waiting for an answer too.
 
Some images work others don't. I think 256x256 72 resolution should work.

Also further experimenting with the bat file I was able to create a direct nsp forwarder to an specific rom. Like the one nsp2nro creates.
Your tool is awesome.
 
  • Like
Reactions: mpham
I think I figured it out. After I placed my .jpg files on the desktop, and dragged them into the CMD from there, they show up on the switch. Even though I also get that "icon_AmericanEnglish.dat" error as well. Hope this works for someone else, since I was waiting for an answer too.
It really worked, I didn't think so, but it did. It's very rare. Thank you so much
 
  • Like
Reactions: BulletExodus
PS: I've got "icon_AmericanEnglish.dat" error, too.
To remove this message, I did this:
Code:
rmdir /S/Q hacbrewpack_backup
cd control
del icon_AmericanEnglish.dat

And to manual specify the TitleID and Publisher (instead of ZZZ), edit these lines in build.bat file:
Code:
set id=0537618340BE0000
set tpub=yourpublishername
echo Publisher: %tpub%
hacbrewpack.exe --titleid %id% --titlename %name% --titlepublisher %tpub% --nspdir NSP -k ./prod.keys
 
Because the Nro2Nsp is not working with 12+, so I tried to make a tool to do it by myself, based on hacBrewPack, for Windows

Step by step
1) Download https://gitlab.com/martinpham/NSP-Forwarder/-/archive/master/NSP-Forwarder-master.zip
2) Extract to a folder on your Desktop, eg: NSP-Forwarder. Then copy your prod.keys file into it.
3) Press [Window]+R, then type cmd, press Enter to open Command Prompt
4) Type cd, [Space], then drag the NSP-Forwarder folder into the Command Prompt windows, press Enter
5) Type build APP_NAME ICON_PATH NRO_PATH then press Enter
- APP_NAME = Display name of the your app
- ICON_PATH = Path of icon file
- NRO_PATH = Path to the nro file
- You can drag the icon file into the Command Prompt instead of typing the path

Example
build DBI C:\Users\ZZZ\Desktop\icon.jpg /switch/DBI.nro

It will build the NSP file and places it into the NSP folder


EDIT: If you have problem with DLL file, try to install MSYS2 - https://www.msys2.org/
EDIT2: I've attached some NSPs I built for myself
can you make nro2nsp mod?
I want use with gui
 
  • Like
Reactions: Blaze Uchiha
Great script btw, I've only two problems with it:
  • NRO2NSP doesn't produce nsp with 64 MB savefile (system savedata allocation for every forwarder that just is a waste of date, imagine while having 20 forwarders you'll get 1.3 GB of a waste date). It was fixed in nro2nsp build 3.3.5: https://github.com/Root-MtX/Nro2Nsp/releases/tag/3.3.5 prior versions also have this bug. This utility have it, too.

  • Video recording capability. Looking at NACP produced by this script, it's
    • Screenshots: Allowed
    • VideoCapture: Disabled
Maybe there's a method to allow generated NSP forwarders to enable the video capture and remove unnecessary 64 MB savedata that is useless for nros homebrew anyway?
 
Last edited by mathew77,
  • Like
Reactions: lordelan

Attachments

  • test_icon.jpg
    test_icon.jpg
    11.4 KB · Views: 671
Great script btw, I've only two problems with it:
  • NRO2NSP doesn't produce nsp with 64 MB savefile (system savedata allocation for every forwarder that just is a waste of date, imagine while having 20 forwarders you'll get 1.3 GB of a waste date). It was fixed in nro2nsp build 3.3.5: https://github.com/Root-MtX/Nro2Nsp/releases/tag/3.3.5 prior versions also have this bug. This utility have it, too.

  • Video recording capability. Looking at NACP produced by this script, it's
    • Screenshots: Allowed
    • VideoCapture: Disabled
Maybe there's a method to allow generated NSP forwarders to enable the video capture and remove unnecessary 64 MB savedata that is useless for nros homebrew anyway?

I fixed the issue with the creation of the 64MB savefile by taking the NACP created by the latest tool NRO2NSP. this also has the videoCaptured enabled to MANUAL. I tested on retroarch and it did not create a savefile. Here is the NACP i used.

To create a NSP that directly boots to a rom. you need to have the retroarch core as the NRO path. In the nextARG file in the romfs folder must have the path to the rom as well. Attached is my slightly tweaked bat file to create a nsp forwarder to an specific rom.

so it would look something like this

build APP_NAME ICON_PATH RETROARCH_CORE_NRO_PATH ROM_PATH then press Enter

An example would be build "Legend of Zelda - Oracle of Seasons" C:\Users\ZZZ\Desktop\icon.jpg /retroarch/cores/mgba_libretro_libnx.nro "/retroarch/roms/Nintendo - Game Boy Color/Legend of Zelda - Oracle of Seasons.gbc"
 

Attachments

Well after looking closely at the build.bat I realized that "del control/icon_AmericanEnglish.dat"
the "/" was wrong, just edit the "/" for "\" so that it was like this "del control\icon_AmericanEnglish.dat", ready works perfect without message and deletes the temporary icon
 
  • Like
Reactions: MAN-biker

Site & Scene News

Popular threads in this forum