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

Status
Not open for further replies.

rrocha

Developer
Developer
Joined
Nov 21, 2016
Messages
137
Trophies
0
XP
1,812
Country
Portugal
Or better yet, look for the xml in the header, and directly jump to its offset in the filedata.

Good suggestion. Went back to hactool, stole some of their code (as I don't need to the full blow app) and used the offset to speed things up. It's almost instant now.
Source code includes a note stating where hactool code starts and ends, so credits are due.
 

pausuri

Well-Known Member
Member
Joined
Jul 15, 2018
Messages
116
Trophies
0
Age
41
XP
770
Country
United Kingdom
@adrifcastr I've created a c++ patcher (no need to unpack and repack). You can either compile it and distribute it together with your app or port the code to your favorite language.
Further optimizations would be to do a reverse search (as the XMLs appear to be packed towards the end) but it's fast enough form me as it is. Furthermore, it's open-source so people can grab it and improve it if they want.

Enjoy: https://gist.github.com/rdmrocha/6c74d8c238751f3e5a0aac3119dfc586

Anyway to get your patcher already compiled? I haven’t got a clue how to do it...thanks!
 

rrocha

Developer
Developer
Joined
Nov 21, 2016
Messages
137
Trophies
0
XP
1,812
Country
Portugal

vdragonv

Member
Newcomer
Joined
Nov 21, 2015
Messages
10
Trophies
0
Age
34
XP
61
Country
United States
Does anyone know if this patch method works for updates and DLC requiring an update when I'm on 4.1? I get that tinfoil may not install updates or DLC, but I'm using Devmenu which works with any NSP file.
 
  • Like
Reactions: tatundria

adrifcastr

Well-Known Member
OP
Member
Joined
Sep 12, 2016
Messages
2,038
Trophies
0
XP
1,947
Country
Germany
Does anyone know if this patch method works for updates and DLC requiring an update when I'm on 4.1? I get that tinfoil may not install updates or DLC, but I'm using Devmenu which works with any NSP file.
Read op. NSPatch can merge base games and Updates using hactool
 

WiiFoundLove

Well-Known Member
Member
Joined
Jan 18, 2015
Messages
280
Trophies
0
Age
54
XP
367
Country
Afghanistan
I don't understand this tool. I tried this with Donkey Kong and Captain Toad, which both require afaik FW4. Than, after using this tool, it tells me, they are now playable on firmware 5.0.0? So does the games require FW5? Or how can i patch them to work with FW4?
 

veddermandan

Well-Known Member
Member
Joined
Mar 4, 2010
Messages
93
Trophies
0
Website
youtu.be
XP
207
Country
Australia
I don't understand this tool. I tried this with Donkey Kong and Captain Toad, which both require afaik FW4. Than, after using this tool, it tells me, they are now playable on firmware 5.0.0? So does the games require FW5? Or how can i patch them to work with FW4?

I just used this as well and it increases the playable fw instead of reducing the playable fw
How do we make it reduce the fw exactly
 

GyTe

Active Member
Newcomer
Joined
May 2, 2018
Messages
25
Trophies
0
Age
48
XP
288
Country
Italy
Guys I'm on 4.0.1 and even if tell that's playable on 5.0 work on my firmware. I've tried Crash Bandicoot... Don't worry about the message... it works... just to be sure to be in the same page I'm using an old version of tinfoil that seem to be good... With the newer version, at least for me, wasn't working fine...
 

adrifcastr

Well-Known Member
OP
Member
Joined
Sep 12, 2016
Messages
2,038
Trophies
0
XP
1,947
Country
Germany
Guys I'm on 4.0.1 and even if tell that's playable on 5.0 work on my firmware. I've tried Crash Bandicoot... Don't worry about the message... it works... just to be sure to be in the same page I'm using an old version of tinfoil that seem to be good... With the newer version, at least for me, wasn't working fine...
actually the keygen detection on 2.0 is fine as it is so it should work fine and accurate. also patching would be 90% faster if I wasn't to dumb to arbitrary read and write to binary files, but I'm working on it.
 

adrifcastr

Well-Known Member
OP
Member
Joined
Sep 12, 2016
Messages
2,038
Trophies
0
XP
1,947
Country
Germany
edit: don't use 2.1 myself being a dumbass forgot that I commented out the line that starts the patching. will be fixed, the next major release won't require extracting/repacking either
 
Last edited by adrifcastr,

adrifcastr

Well-Known Member
OP
Member
Joined
Sep 12, 2016
Messages
2,038
Trophies
0
XP
1,947
Country
Germany
Tinfoil now supports ignoring the reqsysver so I'll get this locked up, Thanks though to those who used NSPatch!
 
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum

Recent Content

General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: https://www.youtube.com/watch?v=A0FyqCEfD0E