1. mpham

    OP mpham Member
    Newcomer

    Joined:
    Aug 30, 2020
    Messages:
    10
    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
     

    Attached Files:

    Last edited by mpham, May 2, 2021
    Mister_X, SL4Y3R, Conan179 and 13 others like this.
  2. Meliodas2255

    Meliodas2255 It makes sense
    Member

    Joined:
    Jan 4, 2017
    Messages:
    235
    Country:
    United States
    I confirm your tool works. thank you for the tool.
     
    mpham likes this.
  3. rfenix15

    rfenix15 Member
    Newcomer

    Joined:
    Sep 20, 2020
    Messages:
    11
    Country:
    Peru
    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
     
  4. mpham

    OP mpham Member
    Newcomer

    Joined:
    Aug 30, 2020
    Messages:
    10
    Country:
    Italy
    Hi, could you try to optimize your JPG file here? https://tinyjpg.com/
     
  5. rfenix15

    rfenix15 Member
    Newcomer

    Joined:
    Sep 20, 2020
    Messages:
    11
    Country:
    Peru
    same, what could be the problem?
    the nsp works perfect but it comes out without an icon and when I do the build at the end the error of (modifier is not valid "icon_AmericanEnglish.dat")
     
  6. mathew77

    mathew77 Lovin' life.
    Member

    Joined:
    Jan 19, 2019
    Messages:
    673
    Country:
    Kazakhstan
    @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, May 3, 2021
  7. BulletExodus

    BulletExodus Member
    Newcomer

    Joined:
    Jul 13, 2018
    Messages:
    13
    Country:
    United States
    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.
     
  8. Meliodas2255

    Meliodas2255 It makes sense
    Member

    Joined:
    Jan 4, 2017
    Messages:
    235
    Country:
    United States
    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.
     
    mpham likes this.
  9. mathew77

    mathew77 Lovin' life.
    Member

    Joined:
    Jan 19, 2019
    Messages:
    673
    Country:
    Kazakhstan
    Please explain a little bit more if you'd wish.
     
  10. rfenix15

    rfenix15 Member
    Newcomer

    Joined:
    Sep 20, 2020
    Messages:
    11
    Country:
    Peru
    It really worked, I didn't think so, but it did. It's very rare. Thank you so much
     
    BulletExodus likes this.
  11. BulletExodus

    BulletExodus Member
    Newcomer

    Joined:
    Jul 13, 2018
    Messages:
    13
    Country:
    United States
    This is a crappy method but for ones that don't work, just copy one that does, and paste the desired image on top of it. Save, and drag in again. Worked for me.
     
  12. mathew77

    mathew77 Lovin' life.
    Member

    Joined:
    Jan 19, 2019
    Messages:
    673
    Country:
    Kazakhstan
    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 
    
     
  13. yyoossk

    yyoossk GBAtemp Regular
    Member

    Joined:
    Oct 18, 2017
    Messages:
    138
    Country:
    Japan
    can you make nro2nsp mod?
    I want use with gui
     
  14. mathew77

    mathew77 Lovin' life.
    Member

    Joined:
    Jan 19, 2019
    Messages:
    673
    Country:
    Kazakhstan
    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, May 3, 2021
    lordelan likes this.
  15. duckbill007

    duckbill007 GBAtemp Fan
    Member

    Joined:
    May 5, 2011
    Messages:
    317
    Country:
    Russia
    Video capturing and save both controlled by nacp.
     
    mathew77 likes this.
  16. mpham

    OP mpham Member
    Newcomer

    Joined:
    Aug 30, 2020
    Messages:
    10
    Country:
    Italy
    I think there are some problems with some JPGs file, I'm trying to make a simple GUI, which also includes a JPG tool, TitleID and Author config, and the NACP problem
     
    lordelan, mathew77 and C7XL like this.
  17. rfenix15

    rfenix15 Member
    Newcomer

    Joined:
    Sep 20, 2020
    Messages:
    11
    Country:
    Peru
    what are the exact specs for the JPGs, does anyone know?
     
  18. mathew77

    mathew77 Lovin' life.
    Member

    Joined:
    Jan 19, 2019
    Messages:
    673
    Country:
    Kazakhstan
    Example:
     

    Attached Files:

  19. Meliodas2255

    Meliodas2255 It makes sense
    Member

    Joined:
    Jan 4, 2017
    Messages:
    235
    Country:
    United States
    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"
     

    Attached Files:

    w350922439, mathew77 and hippy dave like this.
  20. rfenix15

    rfenix15 Member
    Newcomer

    Joined:
    Sep 20, 2020
    Messages:
    11
    Country:
    Peru
    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
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - Forwarder,