ROM Hack RELEASE NSC_Builder. Nintendo Switch Cleaner and Builder. (Game+updates+dlc in a single xci)

  • Thread starter JRoad
  • Start date
  • Views 735,529
  • Replies 2,827
  • Likes 74

FinConis

New Member
Newbie
Joined
Mar 10, 2019
Messages
1
Trophies
0
Age
44
XP
57
Country
United Kingdom
Thanks for making this great tool!

Would it be possible to make it so that you can supply multiple input files and preferably the output name from command line? Was looking for a more automated process to merge game+dlcs+update into single nsp/xci by parsing one of the db's we can create now from the program. Drag/drop folders isn't working too well when content is stored in separate folders (i.e. base/dlc/updates). If it's possible making the tool automate this process by giving the title id as an argument (filenames stored in the extended db, either absolute or relative where you can supply GAME/DLC/UPD folder arguments) that would be even better, but would be more than grateful being able to do the former.

As an aside, noticed a small bug with 0.81-d on certain files. The log below is from a file where the file name had invalid/unsupported characters. In case you have it, Lapis x Labyrinth 深淵狂獵 (010068200C798800) (first update: 65536) is an example of this. Renaming the file removes some of the issues caused by trying to write the file name to the error log. The nsp extracts fine so it doesn't seem to be corrupted. Control only has one title entry at 0x2700.

Code:
Exception: 'utf-8' codec can't decode byte 0xd9 in position 0: invalid continuation byte
Traceback (most recent call last):
  File "NSCB_081d_py\ztools\squirrel.py", line 2830, in <module>
    f.addtodb(outfile,outdb)
  File "NSCB_081d_py\ztools\Fs\Nsp.py", line 3345, in addtodb
    tit_name,editor,ediver,SupLg,regionstr,isdemo = self.inf_get_title(target,offset,content_entries,original_ID)
  File "NSCB_081d_py\ztools\Fs\Nsp.py", line 2553, in inf_get_title
    title,editor,ediver,SupLg,regionstr,isdemo=nca.get_langueblock(title)
  File "NSCB_081d_py\ztools\Fs\Nca.py", line 1186, in get_langueblock
    ediver = ediver.split(b'\0', 1)[0].decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd9 in position 0: invalid continuation byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "NSCB_081d_py\ztools\squirrel.py", line 2839, in <module>
    errfile.write("Route "+str(filename)+'\n')
  File "C:\Users\x\AppData\Local\Programs\Python\Python37\lib\encodings\cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 70-73: character maps to <undefined>

Cheers
 
Last edited by FinConis,
  • Like
Reactions: lordelan

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
@FinConis Yeah, my idea is to automate multi-mode to do more files but i want it to first build files directly. My idea is basically for the program to detect the base+update and dlc by id, then is base is multicontent check if the other files are more recent. One of the reason i moved list processing to python was to be able to use naming filters.

About the db I need to check that one, i'm not sure if it's due to the offset detection or the character's since it seems to process fine asian names for most titles. What i realized is in the titles that only have japanese naming is finding the offset wrong but I think i have a fix for that.

About the input automation squirrel could give you that once the xci is built in one go with the same function.
 
  • Like
Reactions: lordelan

_silencer_

Active Member
Newcomer
Joined
Jan 10, 2015
Messages
41
Trophies
0
Age
44
XP
193
Country
anyone able to confirm whether Q.U.B.E 2 + Update v1.0.1 works? I've tried builds NSCB_080c and NSCB_v079nk with the updated keys and it will simply not combine/include the update into the final xci
 

lordelan

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
5,803
Trophies
1
Age
44
XP
6,573
Country
Germany
@FinConis Yeah, my idea is to automate multi-mode to do more files but i want it to first build files directly. My idea is basically for the program to detect the base+update and dlc by id, then is base is multicontent check if the other files are more recent. One of the reason i moved list processing to python was to be able to use naming filters.

About the db I need to check that one, i'm not sure if it's due to the offset detection or the character's since it seems to process fine asian names for most titles. What i realized is in the titles that only have japanese naming is finding the offset wrong but I think i have a fix for that.

About the input automation squirrel could give you that once the xci is built in one go with the same function.
That would be an outstanding update! Sounds superb!
 

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
hey ya

some games won't convert to XCI

Exception: object of type 'NoneType' has no len ()

what's my problem ?
You're missing some of the keys. Do the verify from here.
verify2.PNG

anyone able to confirm whether Q.U.B.E 2 + Update v1.0.1 works? I've tried builds NSCB_080c and NSCB_v079nk with the updated keys and it will simply not combine/include the update into the final xci
Mind sending me a copy of the full log by PM?
 

Elliander

Well-Known Member
Member
Joined
Sep 16, 2011
Messages
634
Trophies
1
Location
Illinois
Website
elliander.etherealspheres.com
XP
1,459
Country
United States
Initially, this did not work and I was confused because of the message I was given:

"keys.txt missing
Generating XCI: "

Whereas I had that file in the correct folder which worked with XCI_Builder. However, it turns out that I just needed to add more keys. I added Master_Key_06 and every other key I could find. I couldn't find Master_Key_07, but the keys I had were sufficient. Afterwards, it worked. So, as feedback, the error message given should be more meaningful. Rather than use the same method for a missing file, it should recognize what keys it's missing in the file and inform the user of this fact.

I'm a little confused as to why it rebuilds the NSP file prior to building the XCI, but unlike XCI_Builder it doesn't seem like I have to install any NSP for the XCI to work in SXOS, so it's a major improvement regardless.

I also had no trouble using XCI-cutter after the fact for a FAT32 SD card. Everything works perfectly, so now I can buy games on my online Switch to then convert to XCI to play on my offline Switch without having to worry about anything!
 

_silencer_

Active Member
Newcomer
Joined
Jan 10, 2015
Messages
41
Trophies
0
Age
44
XP
193
Country
Mind sending me a copy of the full log by PM?

where is the log file saved to?

*edit* previous games which ive successfully combined updates or DLC are no longer working either. It's a Windows 7 VM and the only changes I ever make to it are installing the security updates each month.

It's possible the updates have broken something and will need to remove them one by one to see which one is the culprit, and if that doesn't fix it then i have nfi. I'll just have to spin up a Windows 10 VM and start from there.
 
Last edited by _silencer_,

satel

Luigi's Big Brother
Member
Joined
Nov 3, 2004
Messages
2,190
Trophies
1
XP
2,048
Country
Laos
@JRoad any idea why when i create a multi xci file i always get an error & the file is smaller than it should be !! this only happens when using your latest release if i use NSCB_080c it's fine !!
 

satel

Luigi's Big Brother
Member
Joined
Nov 3, 2004
Messages
2,190
Trophies
1
XP
2,048
Country
Laos
It's possible the updates have broken something and will need to remove them one by one to see which one is the culprit, and if that doesn't fix it then i have nfi. I'll just have to spin up a Windows 10 VM and start from there.

i believe so yes,new update is the problem as old NSCB_080c still working fine. the strange thing is @JRoad is still ignoring this issue,maybe he is not able to do much about it ??
 

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
i believe so yes,new update is the problem as old NSCB_080c still working fine. the strange thing is @JRoad is still ignoring this issue,maybe he is not able to do much about it ??
I'm not ignoring it, I have a personal life, didn't touch the program last weekend and I have a busy work week.
I promoted 0.80-c to stable and you still didn't tell me the error you're getting because if it's not correct size you're getting an error for sure.
Either way the only thing I did in multi-mode was to pass directly the list to it. I'm in no hurry to fix it since you have previous version which I promoted to stable and the plan is to make a new function to create the files directly in multi-mode.
I'm mostly interested in errors in single and splitter mode since those should be in a more definitive state.
BTW are you satleman too?

where is the log file saved to?

*edit* previous games which ive successfully combined updates or DLC are no longer working either. It's a Windows 7 VM and the only changes I ever make to it are installing the security updates each month.

It's possible the updates have broken something and will need to remove them one by one to see which one is the culprit, and if that doesn't fix it then i have nfi. I'll just have to spin up a Windows 10 VM and start from there.
You need to copy the text from the batch window. Ctrl+A should give you the whole text.
 
  • Like
Reactions: satel and lordelan

satel

Luigi's Big Brother
Member
Joined
Nov 3, 2004
Messages
2,190
Trophies
1
XP
2,048
Country
Laos
I just skip any update for now.... 80-C is working just fine with everything right now xD

yes this is the one i'm using
I'm not ignoring it, I have a personal life, didn't touch the program last weekend and I have a busy work week.
I promoted 0.80-c to stable and you still didn't tell me the error you're getting because if it's not correct size you're getting an error for sure.
Either way the only thing I did in multi-mode was to pass directly the list to it. I'm in no hurry to fix it since you have previous version which I promoted to stable and the plan is to make a new function to create the files directly in multi-mode.
I'm mostly interested in errors in single and splitter mode since those should be in a more definitive state.
BTW are you satleman too?


You need to copy the text from the batch window. Ctrl+A should give you the whole text.

ok many thanks for the reply & for making & supporting this great app,sadly the app doesn't give error codes but multi mode is definitely broken in latest release but as i said earlier 80-C works fine in multi mode so will continue using this version & look forward to your future updates. :)
no i'm not satleman !!
 

Soso76

Member
Newcomer
Joined
Mar 12, 2019
Messages
10
Trophies
0
Age
36
XP
106
Country
France
@Elliander
I can give you masterkey 7.0 that I find in some websites, pm me if needed, but I can't help you much more, I'm not qualified yet with this awesome tools

can you give me the master key 7.0 please ? (in PM) i can't PM you i don't know why i just created this account because i can't found the master key 7 i have the same problem "Exception: object of type 'NoneType' has no len ()"
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • BigOnYa @ BigOnYa:
    Did you pay your power bill? Or give all yo money to my wife, again.
  • K3Nv2 @ K3Nv2:
    Oh good the estimated time is the same exact time they just said
    +1
  • BigOnYa @ BigOnYa:
    Load up your pc and monitor, and head to a McDonalds dining room, they have free WiFi
  • K3Nv2 @ K3Nv2:
    Sir please watch your porn in the bathroom
    +2
  • BigOnYa @ BigOnYa:
    No sir we can not sell you anymore apple pies, after what you did with the last one.
  • K3Nv2 @ K3Nv2:
    We ran out
  • HiradeGirl @ HiradeGirl:
    for your life
    +1
  • K3Nv2 @ K3Nv2:
    My life has no value my fat ass is staying right here
  • K3Nv2 @ K3Nv2:
    Nearly 4 hours without power :(
  • Veho @ Veho:
    SO POWERLESS
  • K3Nv2 @ K3Nv2:
    Tell Kanye I need power
  • DinohScene @ DinohScene:
    Better start running in your hamster wheel
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Meth addicts on a treadmill connected to a generator "Unlimited POWER!!!'
  • Veho @ Veho:
    Before or after a hit?
  • Veho @ Veho:
    Do you dangle a baggie in front of them, like a carrot?
  • The Real Jdbye @ The Real Jdbye:
    they're the same thing
  • The Real Jdbye @ The Real Jdbye:
    i like that idea
  • Veho @ Veho:
    What's the same thing?
  • The Real Jdbye @ The Real Jdbye:
    before or after a hit
  • Veho @ Veho:
    Nah, a hit gives them mad meth powers, but makes them more difficult to control.
  • Veho @ Veho:
    Before a hit they're like zombies, persistent but slow.
  • Veho @ Veho:
    It's a tradeoff.
    Veho @ Veho: It's a tradeoff.