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,818
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,818
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

General chit-chat
Help Users
  • No one is chatting at the moment.
  • SylverReZ @ SylverReZ:
    @mthrnite, Cheetah Girls, the sequel to Action 52's Cheetah Men.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    Pokemon Black I played that one a lot
  • K3Nv2 @ K3Nv2:
    Honestly never messed with Pokémon on ds much
  • mthrnite @ mthrnite:
    I played pokemon once, was bored, never tried again
  • Psionic Roshambo @ Psionic Roshambo:
    Oh Dragon Quest IX
  • K3Nv2 @ K3Nv2:
    Spent like 5 hours on switch one never touched it again
  • Psionic Roshambo @ Psionic Roshambo:
    Sentinel of the stary skies
  • K3Nv2 @ K3Nv2:
    Ds is 20 years old this year
  • Psionic Roshambo @ Psionic Roshambo:
    So MJ no longer wants to play with it?
  • K3Nv2 @ K3Nv2:
    He put it down when the 3ds came out
  • SylverReZ @ SylverReZ:
    @K3Nv2, RIP Felix does great videos on the PS3 yellow-light-of-death.
  • Jayro @ Jayro:
    Eventhough the New 3DS XL is more powerful, I still feel like the DS Lite was a more polished system. It's a real shame that it never got an XL variant keeping the GBA slot. You'd have to go on AliExpress and buy an ML shell to give a DS phat the unofficial "DS Lite" treatment, and that's the best we'll ever get I'm afraid.
    +1
  • Jayro @ Jayro:
    The phat model had amazingly loud speakers tho.
    +1
  • SylverReZ @ SylverReZ:
    @Jayro, I don't see whats so special about the DS ML, its just a DS lite in a phat shell. At least the phat model had louder speakers, whereas the lite has a much better screen.
    +1
  • SylverReZ @ SylverReZ:
    They probably said "Hey, why not we combine the two together and make a 'new' DS to sell".
  • Veho @ Veho:
    It's a DS Lite in a slightly bigger DS Lite shell.
    +1
  • Veho @ Veho:
    It's not a Nintendo / iQue official product, it's a 3rd party custom.
    +1
  • Veho @ Veho:
    Nothing special about it other than it's more comfortable than the Lite
    for people with beefy hands.
    +1
  • Jayro @ Jayro:
    I have yaoi anime hands, very lorge but slender.
  • Jayro @ Jayro:
    I'm Slenderman.
  • Veho @ Veho:
    I have hands.
    Veho @ Veho: +1