nton icon indicating copy to clipboard operation
nton copied to clipboard

Incorrect command error from hacbrewpack when building nro forwarder

Open linusrg1 opened this issue 2 years ago • 1 comments

Describe the bug A clear and concise description of what the bug is. hacbrewpack exits with /usr/bin/hacbrewpack: unrecognized option '--titleid' Usage: hackbrewpack [options...]

To Reproduce Steps to reproduce the behavior: Simply attempt to build an NRO with nton build blank.nro Expected behavior A clear and concise description of what you expected to happen. For nton to use hacbrewpack correctly when building the nro. Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

linusrg1 avatar Apr 25 '23 00:04 linusrg1

Hi,

It looks like you're trying to run NTON on Linux, which is currently not really supported, though you have seemed to gotten the furthest out of others who have made Issues. I'm not sure why it's complaining that --titleid doesnt exist, because it does. If you manually run hacbrewpack and do hacbrewpack --help, does it show it? This is what it should show:

$ .\hacbrewpack.exe --help                                                                                    00:39 AM
hacBrewPack v3.05 by The-4n

Usage: hacbrewpack.exe [options...]

Options:
-k, --keyset             Set keyset filepath, default filepath is .\keys.dat
-h, --help               Display usage
--nspdir                 Set output nsp directory path, default path is .\hacbrewpack_nsp\
--ncadir                 Set output nca directory path, default path is .\hacbrewpack_nca\
--tempdir                Set temp directory filepath, default filepath is .\hacbrewpack_temp\
--backupdir              Set backup directory path, default path is .\hacbrewpack_backup\
--exefsdir               Set program exefs directory path, default path is .\exefs\
--romfsdir               Set program romfs directory path, default path is .\romfs\
--logodir                Set program logo directory path, default path is .\logo\
--controldir             Set control romfs directory path, default path is .\control\
--htmldocdir             Set HtmlDocument romfs directory path
--legalinfodir           Set LegalInformation romfs directory path
--noromfs                Skip creating program romfs section
--nologo                 Skip creating program logo section
--keygeneration          Set keygeneration for encrypting key area, default keygeneration is 1
--keyareakey             Set key area key 2 in hex with 16 bytes lenght
--sdkversion             Set SDK version in hex, default SDK version is 000C1100
--plaintext              Skip encrypting sections and set section header block crypto type to plaintext
--keepncadir             Keep NCA directory
--nosignncasig2          Skip patching acid public key in npdm and signing nca header with acid public key
Overriding options:
--titleid                Use specified titleid for creating ncas and patch titleid in npdm and nacp
--titlename              Change title name in nacp for all languages, max size is 512 bytes
--titlepublisher         Change title publisher in nacp for all languages, max size is 256 bytes
--nopatchnacplogo        Skip changing logo handeling to auto in NACP

rlaphoenix avatar Aug 06 '23 01:08 rlaphoenix