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,816
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,816
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.
  • Materia_tofu @ Materia_tofu:
    im not a very bright individual, but we live and we learn
  • SylverReZ @ SylverReZ:
    @Materia_tofu, We do learn a lot from plenty of talented individuals.
  • Materia_tofu @ Materia_tofu:
    this is true! i learned how to make soundfont remixes from a friend back in 2021
    +1
  • BakerMan @ BakerMan:
    Update on my brother: He's home now, tired and hungry, obviously, but other than that, seems to be doing fine.
    +2
  • Veho @ Veho:
    That's a relief to hear. Do you know what happened?
  • SylverReZ @ SylverReZ:
    @BakerMan, Any idea what happened? I hope that your brother's doing good.
  • BakerMan @ BakerMan:
    Well, from what I've heard from my parents, he had a seizure last night, perhaps an epileptic episode, fucking died, had a near death experience, my dad called the paramedics, they showed up, took him to the hospital, and he woke up covered in tubes, and started complaining.
  • BakerMan @ BakerMan:
    He couldn't eat until after his MRI, when he had a bomb pop.
  • BakerMan @ BakerMan:
    What matters now is that he's doing alright.
  • Veho @ Veho:
    But you still don't know what it was?
  • Veho @ Veho:
    Has he had seizures before?
  • The Real Jdbye @ The Real Jdbye:
    apparently stress can cause seizures, my brother had one during a test once
  • The Real Jdbye @ The Real Jdbye:
    never had one before that, and never had one since
  • Redleviboy123 @ Redleviboy123:
    Question about game texture chanching Do i need an own game id?
  • The Real Jdbye @ The Real Jdbye:
    @Veho for those that want to
    experience being sonic the hedgehog
  • Veho @ Veho:
    Ah, you mean
    furries.
  • The Real Jdbye @ The Real Jdbye:
    well, sonic fans are a whole separate thing from furries
  • The Real Jdbye @ The Real Jdbye:
    like bronys
  • The Real Jdbye @ The Real Jdbye:
    sonic porn is too weird even for me
  • Dumpflam @ Dumpflam:
    bruh
  • Dumpflam @ Dumpflam:
    guys how do i delete a post
  • The Real Jdbye @ The Real Jdbye:
    you don't
  • The Real Jdbye @ The Real Jdbye:
    you can report it and request deletion
    The Real Jdbye @ The Real Jdbye: you can report it and request deletion