RELEASE [OFFICIAL] 4NXCI - A tool for converting XCI to NSP

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

  1. isoisoiso

    isoisoiso GBAtemp Regular

    Member
    4
    Jun 16, 2018
    Niger
    Can 4nxci convert custom xcis (base+updates+dlc) to a single NSP like nxc_builder does?
     
  2. The-4n
    OP

    The-4n GBAtemp Regular

    Member
    7
    Aug 3, 2018
    United States
    In theory, you can have single nsp, but there's no title manager that supports single nsp even devmenu
     
    mdmachine likes this.
  3. mdmachine

    mdmachine GBAtemp Regular

    Member
    3
    Jun 15, 2009
    United States
    I found that out a while back, if you try to install a merged nsp, it'll just try and install the appended chunk. An update for example.

    Any clue if future installers would be able to handle a merged nsp?
     
  4. isoisoiso

    isoisoiso GBAtemp Regular

    Member
    4
    Jun 16, 2018
    Niger
    What does this mean
    I installed a custom smash nsp with updates and dlc and it worked fine
    Using SX OS
     
  5. cdcrossy

    cdcrossy Newbie

    Newcomer
    1
    Nov 25, 2018
    United Kingdom
    must of put all the files into one somehow
     
  6. drvipej

    drvipej GBAtemp Regular

    Member
    2
    Mar 25, 2010
    United States
    Considering I convert everything correctly.
    As I am on 6.2.0, the converted nsp will not work? Is that correct?
     
  7. The-4n
    OP

    The-4n GBAtemp Regular

    Member
    7
    Aug 3, 2018
    United States
    Wrong
    It works

    I didn't look at custom smash nsp, idk what it contains
    Maybe sx os installer supports nsps with more than one cnmt
     
    Last edited by The-4n, Dec 15, 2018
  8. drvipej

    drvipej GBAtemp Regular

    Member
    2
    Mar 25, 2010
    United States
    — Posts automatically merged - Please don't double post! —

    It must be this step then...
    I make copies of product.keys as keys.ini, dat and txt.
    I drag the xci across over the exe, and it extracts.
    It istalls but when it is run it says it is corrupt.
    help:(
     
  9. 18Phoenix

    18Phoenix GBAtemp Regular

    Member
    4
    Nov 21, 2005
    Germany
    Hi.
    I'm made a start.bat for your 4NXCI, it has to be in the same folder.
    First it checks for the keys-file.

    There're 3 methodes to use:
    - Start it and a XCI-file in the same folder will be recognized.
    - Start it and it will ask to drag&drop a xci-file.
    - Just drag&drop a XCI-file at the start.bat.

    Use it if you like it, but sadly it's only for single files, not for folders. Perhaps later.

    I uploaded it zipped here:
    https://www77.zippyshare.com/v/QcOAu5gw/file.html

    Just have a look first, it's simple code, nothing to fear, I'm a tool fan :D
     
    Last edited by 18Phoenix, Dec 29, 2018
    imRickJamess and The-4n like this.
  10. d4nielr

    d4nielr GBAtemp Regular

    Member
    2
    Dec 2, 2014
    UK
    cant get this to work used lockpick to get keys and all i get is a error saying failed to match keys then only 2 ncas help please
     
  11. 18Phoenix

    18Phoenix GBAtemp Regular

    Member
    4
    Nov 21, 2005
    Germany
    @The-4n
    Hi. Since now I use my own keys from my 6.2.0 Switch dumped with Lockpick some minutes ago including 120 keys.
    Suddenly I get so many warnings:

    4NXCI v2.10 by The-4n
    [WARN]: Failed to match key "bis_kek_source", (value "*")
    [WARN]: Failed to match key "bis_key_source_00", (value "*")
    [WARN]: Failed to match key "bis_key_source_01", (value "*")
    [WARN]: Failed to match key "bis_key_source_02", (value "*")
    [WARN]: Failed to match key "bis_key_00", (value "*")
    [WARN]: Failed to match key "bis_key_01", (value "*")
    [WARN]: Failed to match key "bis_key_02", (value "*")
    [WARN]: Failed to match key "bis_key_03", (value "*")
    [WARN]: Failed to match key "device_key", (value "*")
    [WARN]: Failed to match key "eticket_rsa_kek", (value "*")
    [WARN]: Failed to match key "eticket_rsa_kek_source", (value "*")
    [WARN]: Failed to match key "eticket_rsa_kekek_source", (value "*")
    [WARN]: Failed to match key "per_console_key_source", (value "*")
    [WARN]: Failed to match key "retail_specific_aes_key_source", (value "*")
    [WARN]: Failed to match key "rsa_oaep_kek_generation_source", (value "*")
    [WARN]: Failed to match key "rsa_private_kek_generation_source", (value "*")
    [WARN]: Failed to match key "save_mac_key", (value "*")
    [WARN]: Failed to match key "ssl_rsa_kek", (value "*")
    [WARN]: Failed to match key "ssl_rsa_kek_source_x", (value "*")
    [WARN]: Failed to match key "ssl_rsa_kek_source_y", (value "*")

    Saving Secure Partition...

    Sure, I replaced the values with a *.



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



    How many keys have you got? With which hekate version have you dumped tsec_keys und fuses ?
     
    Last edited by 18Phoenix, Dec 17, 2018
  12. The-4n
    OP

    The-4n GBAtemp Regular

    Member
    7
    Aug 3, 2018
    United States
    Post full 4nxci log here

    They are not important, if they are bothering you, just open keys file with some text editor and remove them
     
  13. 18Phoenix

    18Phoenix GBAtemp Regular

    Member
    4
    Nov 21, 2005
    Germany
    Ok, thanks.
    Do you plan to skip these keys to avoid unnecessary warnings in the next release?
     
  14. The-4n
    OP

    The-4n GBAtemp Regular

    Member
    7
    Aug 3, 2018
    United States
    4NXCI is based on hactool, they are basically hactool warnings and hactool is the reference for keys template
    But I'll do some changes in for keys verification in future releases
     
    Last edited by The-4n, Dec 17, 2018
    18Phoenix likes this.
  15. mccorkled

    mccorkled Member

    Newcomer
    2
    Dec 7, 2015
    United States
    Thank you for this. Curious what would make the program immediately close upon opening.

    Thank you.
     
    Last edited by mccorkled, Dec 17, 2018
  16. Mad_Murdock

    Mad_Murdock Newbie

    Newcomer
    1
    Dec 17, 2018
    United States
    I successfully converted Diablo 3 XCI to an NSP, but when I attempted to install it through SX OS it failed with a generic error.

    C:\Users\MadMurdock\Desktop\hactool>4nxci.exe -k keys.dat Diablo3.xci
    4NXCI v2.10 by The-4n

    Saving Secure Partition...
    Saving 99a8e2c711520b5c5378be8d5009e43c.nca to 4nxci_extracted_xci\99a8e2c711520b5c5378be8d5009e43c.nca
    Saving 8f587fcdd026b74babdebd0d67b8da1a.nca to 4nxci_extracted_xci\8f587fcdd026b74babdebd0d67b8da1a.nca
    Saving 0b01a707ac53ab475ba5547cb8f84fd3.nca to 4nxci_extracted_xci\0b01a707ac53ab475ba5547cb8f84fd3.nca
    Saving c7e06f503105220c3a01a675b34bd9a4.nca to 4nxci_extracted_xci\c7e06f503105220c3a01a675b34bd9a4.nca
    Saving a5edb1e064bfcec98ad9d37fb8c88323.cnmt.nca to 4nxci_extracted_xci\a5edb1e064bfcec98ad9d37fb8c88323.cnmt.nca

    ===> Processing 1 Application(s):
    ===> Processing Application 1 Metadata:
    Patching 4nxci_extracted_xci\99a8e2c711520b5c5378be8d5009e43c.nca
    Patching 4nxci_extracted_xci\8f587fcdd026b74babdebd0d67b8da1a.nca
    Patching 4nxci_extracted_xci\0b01a707ac53ab475ba5547cb8f84fd3.nca
    Patching 4nxci_extracted_xci\c7e06f503105220c3a01a675b34bd9a4.nca
    Patching 4nxci_extracted_xci\a5edb1e064bfcec98ad9d37fb8c88323.cnmt.nca

    Creating xml metadata 4nxci_extracted_xci\a5edb1e064bfcec98ad9d37fb8c88323.cnmt.xml

    Creating nsp 01001b300b9be000.nsp
    Packing 4nxci_extracted_xci\a5edb1e064bfcec98ad9d37fb8c88323.cnmt.xml into 01001b300b9be000.nsp
    Packing 4nxci_extracted_xci\99a8e2c711520b5c5378be8d5009e43c.nca into 01001b300b9be000.nsp
    Packing 4nxci_extracted_xci\8f587fcdd026b74babdebd0d67b8da1a.nca into 01001b300b9be000.nsp
    Packing 4nxci_extracted_xci\0b01a707ac53ab475ba5547cb8f84fd3.nca into 01001b300b9be000.nsp
    Packing 4nxci_extracted_xci\c7e06f503105220c3a01a675b34bd9a4.nca into 01001b300b9be000.nsp
    Packing 4nxci_extracted_xci\a5edb1e064bfcec98ad9d37fb8c88323.cnmt.nca into 01001b300b9be000.nsp


    Summary:
    Game NSP 1: 01001b300b9be000.nsp

    Done!
     
  17. The-4n
    OP

    The-4n GBAtemp Regular

    Member
    7
    Aug 3, 2018
    United States
    Maybe it's corrupted in your sd card or there's a very low chance that xci is broken

    It's usually keys file
    Launch it via command prompt to find the error
     
  18. DoctorBagPhD

    DoctorBagPhD Member

    Newcomer
    3
    Oct 16, 2008
    Hi guys, I tried converting Rocket League Ultimate but it creates 15 separate NSPs, do I install all of these separately or is there some sort of merging process I have to do first? I'd like to install via USB is all and I'm not sure if there's an install order or what.
     
    Last edited by DoctorBagPhD, Dec 20, 2018
  19. The-4n
    OP

    The-4n GBAtemp Regular

    Member
    7
    Aug 3, 2018
    United States
    Install all of them, It contains multiple DLCs

    The correct installation order is Game (TitleID), Update (TitleID + 0x800), DLC(TitleID + 0x1000+01-FF)
    But the order is not important in most of the times
     
    DoctorBagPhD likes this.
  20. DoctorBagPhD

    DoctorBagPhD Member

    Newcomer
    3
    Oct 16, 2008
    Grand, thanks!
     
Loading...