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

  • Thread starter JRoad
  • Start date
  • Views 730,702
  • Replies 2,826
  • Likes 74

Varo

Member
Newcomer
Joined
Jun 1, 2020
Messages
13
Trophies
0
Age
64
XP
109
Country
India
I have a Mariko switch and I am using the SX Core to run CFW. Right now, Lockpick isn't completely working for it and so I am missing all the master_key_xx and optional key xci_header_key. All of my other keys are valid. When I try to merge main game XCI and updates of game into one XCI, I get an UNKNOWN.xci which is just 62kb in size. I am guessing it is becauese of the missing master_keys. What should I do ?

Edit1 : I copied the master key's and xci_header_key from YUZU's NAND and they worked! I got a proper final XCI.

Edit 2: It did make a final xci file but when I put it on my switch and tried to run it, I got an error saying that the game card could not be read. I tried to run it using the Album on SX OS.

Edit 3: I spotted a difference. The original XCI has Other files called ticket and certificate but after merging DLC and updates, those other files go away. Could be the reason it won't load?
 
Last edited by Varo,

Bayart

Member
Newcomer
Joined
Oct 24, 2020
Messages
7
Trophies
0
Age
33
XP
46
Country
France
I've got an Errno 2 (files can't be read) when using the file info menu (option 4, where files have to be dragged and dropped onto the windows or have their path inputted manually), but it works fine in the individual file sub-menu (option 1) where files can added through the Windows explorer file selector. It might be related to having to install Python (3.9 x64) to use the file info GUI. In any case the file info part of NSCB should have the same file selection options as the other parts of the program.

Anyway, any XCI I make of Dragon Quest XI and Smash Ultimate (both with all updates and DLCs) is broken in SX OS (white album thumbnail, can't be mounted). I've tried mixing up sources (different NSPs, NSZ etc. in case one is broken), patching the games to lower FW versions, checking MD5 sums everywhere but nothing works. The XCIs I've made pass verification, but SX OS just wont accept them.
I can't say if it comes from SX OS or NSCB, I'm not familiar enough with the file formats to give useful feedback (sorry).
 
Last edited by Bayart,

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
I have a Mariko switch and I am using the SX Core to run CFW. Right now, Lockpick isn't completely working for it and so I am missing all the master_key_xx and optional key xci_header_key. All of my other keys are valid. When I try to merge main game XCI and updates of game into one XCI, I get an UNKNOWN.xci which is just 62kb in size. I am guessing it is becauese of the missing master_keys. What should I do ?

Edit1 : I copied the master key's and xci_header_key from YUZU's NAND and they worked! I got a proper final XCI.

Edit 2: It did make a final xci file but when I put it on my switch and tried to run it, I got an error saying that the game card could not be read. I tried to run it using the Album on SX OS.

Edit 3: I spotted a difference. The original XCI has Other files called ticket and certificate but after merging DLC and updates, those other files go away. Could be the reason it won't load?
Can you run the verification on that file? It will let you know if it got messed up.
Also run the keys verification from option.
The ticket and cert is because you original xci has an update which normally uses the ticket. NSCB removes titlerights to all files on xci, there's several reasons for it, one is to allow to lower rsv or keygeneration if needed, other is because according to my experience when i made the program it can end creating errors on sx os depending on your xci setup, so it was better to make them with all nca without titlerights.

I've got an Errno 2 (files can't be read) when using the file info menu (option 4, where files have to be dragged and dropped onto the windows or have their path inputted manually), but it works fine in the individual file sub-menu (option 1) where files can added through the Windows explorer file selector. It might be related to having to install Python (3.9 x64) to use the file info GUI. In any case the file info part of NSCB should have the same file selection options as the other parts of the program.

Anyway, any XCI I make of Dragon Quest XI and Smash Ultimate (both with all updates and DLCs) is broken in SX OS (white album thumbnail, can't be mounted). I've tried mixing up sources (different NSPs, NSZ etc. in case one is broken), patching the games to lower FW versions, checking MD5 sums everywhere but nothing works. The XCIs I've made pass verification, but SX OS just wont accept them.
I can't say if it comes from SX OS or NSCB, I'm not familiar enough with the file formats to give useful feedback (sorry).
You can use the exe builds if you don't want to update python. NSCB is built under 3.8 I think it should now support 3.9 since gevent was supposed to update on the 15th but for windows-curses you need a custom built of it from the repo in their code, i plan to incorporate all that next time i update the tool but i've been busy lately, specially these last 2 weeks.
In file info that error can be due to file namings since that menu is pure batch, it isn't parsing them with python so bad characters for windows will give you issues.
Same happens with sx os, when a file has bad characters for the switch file system, which includes asian characters, it will give you white icons and make the xci unloadable.
So either rename the file manually or use the Romaji or Sanitize option in the renamer from NSCB.
- Dragon Quest XI is for sure an example of that case, the XI is a character from the latin alphabet that represents the number 11 instead of "X"+"I", the sanitize or romaji option should correct that.
 

Bayart

Member
Newcomer
Joined
Oct 24, 2020
Messages
7
Trophies
0
Age
33
XP
46
Country
France
So either rename the file manually or use the Romaji or Sanitize option in the renamer from NSCB.
- Dragon Quest XI is for sure an example of that case, the XI is a character from the latin alphabet that represents the number 11 instead of "X"+"I", the sanitize or romaji option should correct that.

Renaming manually worked, thanks for the tip. The sanitizing option didn't do anything. The bad character in the string was . I somehow didn't notice it.
 

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
Renaming manually worked, thanks for the tip. The sanitizing option didn't do anything. The bad character in the string was . I somehow didn't notice it.
I see i added the ones i noticed to it so i can miss some. I could add only alphanumeric but there's some characters the switch supports that would be removed and i try to replace them instead of removing them.
I could try to make some config file to add more bad characters i guess.
 

Varo

Member
Newcomer
Joined
Jun 1, 2020
Messages
13
Trophies
0
Age
64
XP
109
Country
India
Can you run the verification on that file? It will let you know if it got messed up.
Also run the keys verification from option.
The ticket and cert is because you original xci has an update which normally uses the ticket. NSCB removes titlerights to all files on xci, there's several reasons for it, one is to allow to lower rsv or keygeneration if needed, other is because according to my experience when i made the program it can end creating errors on sx os depending on your xci setup, so it was better to make them with all nca without titlerights.


You can use the exe builds if you don't want to update python. NSCB is built under 3.8 I think it should now support 3.9 since gevent was supposed to update on the 15th but for windows-curses you need a custom built of it from the repo in their code, i plan to incorporate all that next time i update the tool but i've been busy lately, specially these last 2 weeks.
In file info that error can be due to file namings since that menu is pure batch, it isn't parsing them with python so bad characters for windows will give you issues.
Same happens with sx os, when a file has bad characters for the switch file system, which includes asian characters, it will give you white icons and make the xci unloadable.
So either rename the file manually or use the Romaji or Sanitize option in the renamer from NSCB.
- Dragon Quest XI is for sure an example of that case, the XI is a character from the latin alphabet that represents the number 11 instead of "X"+"I", the sanitize or romaji option should correct that.
The problem turned out to be entirely different! I was using tinfoil usb to copy the XCI to my SDcard and it wasn't doing it properly. I copied the XCI using a sdcard reader and it worked just fine. xD
 

fatherjack

Well-Known Member
Member
Joined
Jul 3, 2007
Messages
644
Trophies
1
Location
Still Here
XP
1,264
Country
United Kingdom
I'm tryin to patch the Age of Calamity demo to run on 10.1 but keeps coming back with:

Required Firmware:
- Included Firmware: Deleted
- RequiredSystemVersion: 673185792 -> (10.2.0)
- Encryption (keygeneration): 11 -> (9.1.0 - >10.2.0)
- Patchable to: 606076928 -> (9.2.0)

is this demo not able to be patched down?
 

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
I'm tryin to patch the Age of Calamity demo to run on 10.1 but keeps coming back with:

Required Firmware:
- Included Firmware: Deleted
- RequiredSystemVersion: 673185792 -> (10.2.0)
- Encryption (keygeneration): 11 -> (9.1.0 - >10.2.0)
- Patchable to: 606076928 -> (9.2.0)

is this demo not able to be patched down?

If you plan to install it there's no need to patch it for 10.1.0 since the installers patches except rommenu the RequiredSystemVersion. and there's no need to patch the keygeneration here.
For xci you need to patch it though. I checked and i can patch it using both:
- Patch RSV + keygeneration 11
- Patch RSV + not change the keygeneration (f)

This is the result:

patch.PNG
 
  • Like
Reactions: fatherjack

WillowPaden

New Member
Newbie
Joined
Nov 1, 2020
Messages
2
Trophies
0
Age
39
XP
35
Country
Brazil
To be honest, my problem is this. But i'll try the x86 build.

Edit: Tried the x86 version and got another problem.
 

Attachments

  • problem_ncsbuilder.jpg
    problem_ncsbuilder.jpg
    423.2 KB · Views: 284
  • problem_ncsbuilderx86.jpg
    problem_ncsbuilderx86.jpg
    416.5 KB · Views: 229
Last edited by WillowPaden,

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
To be honest, my problem is this. But i'll try the x86 build.

Edit: Tried the x86 version and got another problem.
Error 1. python version without running install_dependencies.bat, it was also tested till python 3.8. That dependency is specifically pycriptodome.

Error2. Missing aes_kek_generation_source key or not detected properly on your keys file. You need to fill all keys in the keys_template.txt with the exception of xci_header_key, if you don't know that one delete that line. After filling all keys rename keys_template.txt to keys.txt
 

0x3000027E

Well-Known Member
Member
Joined
Mar 14, 2018
Messages
341
Trophies
0
Age
43
XP
1,374
Country
United States
Anyone know why I am getting "mlist.txt" error when trying to load a file in NSCB?
"Exception: [Errno 13] Permission denied: ...\\mlist.txt"
This occurs trying to load any file into NSCB (v1.00d). I had used the program successfully a few weeks ago, so keys.txt entries have been verified.
I'm hoping it is just something on NUT server side.
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,138
Country
United States
Anyone know why I am getting "mlist.txt" error when trying to load a file in NSCB?
"Exception: [Errno 13] Permission denied: ...\\mlist.txt"
This occurs trying to load any file into NSCB (v1.00d). I had used the program successfully a few weeks ago, so keys.txt entries have been verified.
I'm hoping it is just something on NUT server side.
I used this a few hours ago. No errors. That doesn't sound like a keys problem.
 
  • Like
Reactions: 0x3000027E

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Bunjolio @ Bunjolio: a