-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with converting .npdm to .json #128
Comments
Same here. And later I can't recompile it with npdmtool of switch-tools. |
Their error comes from the fact that they mindlessly copy pasted stuff from readme without understanding that they are supposed to replace those brackets with proper names.
It doesn't extract all informations. |
if your referring the the [Name] and [Output Folder] what I typed out isn't literally that, I just put that there so I wouldn't have to type the entire full names of my folders and user profile. Also showing an example of how to properly type out the command would be nice. |
|
any other option to decompress, edit and compress npdm? Concretly I need to modify a main.npdm and I haven't found anything on the internet. I'm really desperate, and editing with HxD is not an option. |
Dunno what you want to achieve, but you can basically use my template I am using and it should work as long as you properly fill name, title_id, main_thread_stack_size and system_resource_size. The last one is not extracted by hactool, it's stored at 0x14 offset (in some games it's 0) https://github.com/masagrator/SleepLoggerEx/blob/main/config.json |
another "issue" related to npdm functionality, it cannot properly read the .npdm of compiled binaries with the latest version of switch-tools. It'll read the following with }, {
"type": "debug_flags",
"value": {
"allow_debug": false,
"force_debug": false
}
}] instead of {
"type": "debug_flags",
"value": {
"allow_debug": false,
"force_debug_prod": false,
"force_debug": true
}
}, when compiling https://github.com/borntohonk/nx-hbloader/blob/master/hbl.json#L245-L252 side note: if https://github.com/Atmosphere-NX/hac2l was ready to compile / had binaries that'd probably(?) solve this? (It didn't compile when i tried recently) |
HBL is not a game. /* 19.0.0+ disallows more than one flag set; we are always DebugMode for kernel, so ForceDebug is the most powerful/flexible flag to set. */
kac[i] = CapabilityDebugFlags::Encode(false, false, true); |
as for hac2l, which is supposed to be a replacement to this version of hactool;
changing instead progresses it to another error, which by changing
will make it compile further, but ultimately error |
fix for that: https://github.com/borntohonk/hactuah/commit/54ba34e94b09a5043a60f24c5880a2a69a1fe272 |
I can compile it fine on windows, I cloned the git into Atmosphere tests folder. Don't edit tool.mk, go to the makefile and change the second line from: Then you can compile with mingw64.exe The built exe ends up at around about 40mb so I used upx packer to compress it down to about 10mb. I've uploaded the built exe here - https://github.com/mrdude2478/New-Binaries |
Why pack it and not strip it? A stripped hac2l is like 600kb. |
Similarly it does compile on linux_x64 with dependencies (such as libjpeg-dev, binutils-dev) on debian unstable, which also when stripped is ~600kb |
I stripped it and it makes it small. I forgot to do that when I compiled it :-), I'm an idiot. |
Currently have a main.nmpd from a game and have placed the file into the same folder as hactool.exe, and only using a PC with no switch directory. I downloaded last hactool.exe release and used this command:
C:\Users\ [Name] \OneDrive\Desktop\hactool\hactool.exe -k C:\Users\ [Name] \AppData\Roaming\keys\prod.keys -t npdm --json=file C:\Users\ [Name] \OneDrive\Desktop\ [Output Folder]
And recieve the following error:
I wouldn't be surprised if I made an error somewhere, or if this isn't a option with my current setup.
The text was updated successfully, but these errors were encountered: