Homebrew RELEASE NSPatch - Patch NSP Files to their actual needed FW version

Status
Not open for further replies.
D

Deleted User

Guest
Oh, another thing, I'm not sure if this is my understanding of the Keyblobs, but I think your list of keys and firmwares is (slightly) wrong?

Example, *insert game here*, when installed unpatched, complains about needing to be updated from 4.1.0 to latest.

However, I run it through the patcher, it states it can be now played on 4.0.0.

Am I misunderstanding them?

__
EDIT: Can I do the same thing with updates as I can with games aswell? Or is there a risk of brick/corruption/etc?
 
Last edited by ,

puppydg68

Well-Known Member
Newcomer
Joined
Apr 4, 2006
Messages
51
Trophies
0
XP
378
Country
Canada
So today I am presenting you: NSPatch

What does this do?
It extracts NSP containers using hactool, patches them to require the minimum needed FW version of the corresponding minimum needed Masterkey Revision required for crypto and then repacks the NSP container using a modified build of @rkk 's nspBuild.

View attachment 137613

This is a handy tool - could you have it read the input name and output the filename characters then-p.nsp as the filename. ie mynspfile.nsp becomes mynspfile-p.nsp, also having a checkbox to trim the resulting filename to less than 20 characters for devmenu users (not sure if 20 char is the limit).
 
D

Deleted User

Guest
Tried with Octopath and Shining Resonance, both which report that 4.0.0 is the minimum they'll work on. Have 4.1.0. Still getting system update required.
 

adrifcastr

Well-Known Member
OP
Member
Joined
Sep 12, 2016
Messages
2,038
Trophies
0
XP
1,947
Country
Germany
This is a handy tool - could you have it read the input name and output the filename characters then-p.nsp as the filename. ie mynspfile.nsp becomes mynspfile-p.nsp, also having a checkbox to trim the resulting filename to less than 20 characters for devmenu users (not sure if 20 char is the limit).
Yeah that'd be possible but I'd need to reinplement nspbuild in C# and I'm currently working on the update stuff, but if anyone is willing to, open a pr with a reimpl of nspbuild
 
D

Deleted User

Guest
Tried with Octopath and Shining Resonance, both which report that 4.0.0 is the minimum they'll work on. Have 4.1.0. Still getting system update required.

Installed with DevMenu.
 

adrifcastr

Well-Known Member
OP
Member
Joined
Sep 12, 2016
Messages
2,038
Trophies
0
XP
1,947
Country
Germany
Tried with Octopath and Shining Resonance, both which report that 4.0.0 is the minimum they'll work on. Have 4.1.0. Still getting system update required.

Installed with DevMenu.
I think they should work on 4.0.0 but reports are also saying 4.1.0
 
D

Deleted User

Guest
I think they should work on 4.0.0 but reports are also saying 4.1.0
That's real weird then. Does your program require admin privledges or something?

It goes through the whole process without issue. Except, well, doesn't seem like it's patching it at all.
 
D

Deleted User

Guest
Tried shortening the names down to just a few characters, no go.
Tried admin privileges, no go.
Tried patching after already patching, no go.
Tried installing with Tinfoil, no go.
Tried installing with LayeredFS DevMenu, no go.

I carefully watched the program, and double check to see what firmware ends up being minimum, always 4.0.0 for the ones I'm trying to patch.

I don't understand ?_? Strange.
 
Last edited by ,

Scarecrow B

ScrapTown
Member
Joined
Dec 29, 2015
Messages
397
Trophies
0
XP
2,458
Country
Mexico
Tried shortening the names down to just a few characters, no go.
Tried admin privileges, no go.
Tried patching after already patching, no go.
Tried installing with Tinfoil, no go.
Tried installing with LayeredFS DevMenu, no go.

I carefully watched the program, and double check to see what firmware ends up being minimum, always 4.0.0 for the ones I'm trying to patch.

I don't understand ?_? Strange.

I had a similar issue, where the app said it was sucessful but the new file (patched.nsp) was 0 kb. I had to change the way the app called the python script for repacking, intead of directly calling it I had to call cmd.exe and then pass the script + arguments as a whole argument, and then it worked.

To be sure if your file is really edited check manually its RequiredSystemVersion
 
Last edited by Scarecrow B,

Kobigov

Well-Known Member
Member
Joined
Jan 10, 2018
Messages
129
Trophies
0
Age
44
XP
300
Country
United States
Tried with Octopath and Shining Resonance, both which report that 4.0.0 is the minimum they'll work on. Have 4.1.0. Still getting system update required.

Installed with DevMenu.
Octopath definitely works on 4.1. Try zeroing out the required systemversion manually in a hex editor. Install with tinfoil too.
 
D

Deleted User

Guest
I had a similar issue, where the app said it was sucessful but the new file (patched.nsp) was 0 kb. I had to change the way the app called the python script for repacking, intead of directly calling it I had to call cmd.exe and then pass the script + arguments as a whole argument, and then it worked.

To be sure if your file is really edited check manually its RequiredSystemVersion
Oh. Well shit. I didn't see that it made a new NSP, I figured it was just straight up patching the one I selected.
Infact, I checked the folder that the app was in, and you're right, it was simply a 0kb file called Patched.nsp.

I don't know a lick of Python, so I guess I'm shit out of luck until this is fixed properly. Shall be waiting!
 

Kobigov

Well-Known Member
Member
Joined
Jan 10, 2018
Messages
129
Trophies
0
Age
44
XP
300
Country
United States
Oh. Well shit. I didn't see that it made a new NSP, I figured it was just straight up patching the one I selected.
Infact, I checked the folder that the app was in, and you're right, it was simply a 0kb file called Patched.nsp.

I don't know a lick of Python, so I guess I'm shit out of luck until this is fixed properly. Shall be waiting!
Just edit the nsp in a hex editor. It takes like two seconds.
 
  • Like
Reactions: Deleted User
D

Deleted User

Guest
Just edit the nsp in a hex editor. It takes like two seconds.
Giving it a try now.
Hopefully Ikaruga don't need that update I have for it.

--------------------- MERGED ---------------------------

Just edit the nsp in a hex editor. It takes like two seconds.
Worked straight away. Thanks for the tip!

--------------------- MERGED ---------------------------

Just edit the nsp in a hex editor. It takes like two seconds.
Worked straight away. Thanks for the tip!
 
  • Like
Reactions: Kobigov

Migz

Well-Known Member
Newcomer
Joined
Feb 3, 2008
Messages
75
Trophies
1
XP
1,225
Country
So if i'm reading this right there no way of patching 3.01 or above to work on a 3.0.0 firmware or below?
 

adrifcastr

Well-Known Member
OP
Member
Joined
Sep 12, 2016
Messages
2,038
Trophies
0
XP
1,947
Country
Germany
major update in the works. fixes the update problem and the mkey detection.
should be out later today.
NSPatch.png
 
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Bidenomics
  • BigOnYa @ BigOnYa:
    True, everything almost double nowadays
  • K3Nv2 @ K3Nv2:
    But I could go to Aldis and get a cookie pie for like $4
  • BigOnYa @ BigOnYa:
    Or use your new cooking pan and make some, don't mind the Old leftover foods mixed in.
  • K3Nv2 @ K3Nv2:
    Just eat plain flour around cops
  • BigOnYa @ BigOnYa:
    thats Gluten abuse, they would shoot you
  • K3Nv2 @ K3Nv2:
    Depends on the color chart
  • K3Nv2 @ K3Nv2:
    Wheat flour has a lower chance at survival
  • Veho @ Veho:
    Isn't wheat flour the whitest of the white?
  • Veho @ Veho:
    Rye would get shot at sight.
    +1
  • K3Nv2 @ K3Nv2:
    Depends
    img_5941-1.jpeg
    everyone mixing their flour now days
  • Veho @ Veho:
    That's whole wheat, right? Because all purpose flour is also made from wheat.
  • K3Nv2 @ K3Nv2:
    I'm not a flour expert I just snort it
  • BigOnYa @ BigOnYa:
    There also is black rice flour, and its really black colored
  • Veho @ Veho:
    Bruh that's gray.
  • K3Nv2 @ K3Nv2:
    That's ancientboi color
    +1
  • Veho @ Veho:
    You need to add some activated charcoal.
    +1
  • BigOnYa @ BigOnYa:
    I've seen some that are dark dark, my wifey uses it sometimes in her bs recipes
  • Veho @ Veho:
    Cool.
  • SylverReZ @ SylverReZ:
    @BigOnYa, Seems like your wifey likes hers black. :creep:
  • Veho @ Veho:
    "BS" stands for "Bowel Scraping" because that's what whole grain does.
    +1
  • K3Nv2 @ K3Nv2:
    I've been eating honey wheat bread scrumptious
    K3Nv2 @ K3Nv2: I've been eating honey wheat bread scrumptious