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

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

18Phoenix

Well-Known Member
Member
Joined
Nov 21, 2005
Messages
766
Trophies
1
XP
2,298
Country
Germany
@JRoad
Hi :)
I still like to check generated files with the XCI-Explorer.
Sometimes I've a small XCI which I want to convert to NSP (even knowing that I could install XCI files with SXOS).
What I still miss is that I get no icon or datas using XCI-Explorer with NSCB converted files.
I don't have that problem with 4NXCI.
Could you please fix that ?
Wasn't a missing XML file the problem? Why is it missing?
 

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
@JRoad
Hi :)
I still like to check generated files with the XCI-Explorer.
Sometimes I've a small XCI which I want to convert to NSP (even knowing that I could install XCI files with SXOS).
What I still miss is that I get no icon or datas using XCI-Explorer with NSCB converted files.
I don't have that problem with 4NXCI.
Could you please fix that ?
Wasn't a missing XML file the problem? Why is it missing?
I just checked with my latest master and individual mode is generating the xml, same with multicontent mode, it seems i forgot to add that to the new splitter function though, i don't know if you're referring to that, the beta changed many things and rebuilt completely the splitter and individual modes and well I keep finding little errors like this in things that worked before XD, i'll correct it and upload a new master. But yeah is due to xci explorer parsing the xml file to know which nca is each type or so it seems.

--------------------- MERGED ---------------------------

I just checked with my latest master and individual mode is generating the xml, same with multicontent mode, it seems i forgot to add that to the new splitter function though, i don't know if you're referring to that, the beta changed many things and rebuilt completely the splitter and individual modes and well I keep finding little errors like this in things that worked before XD, i'll correct it and upload a new master. But yeah is due to xci explorer parsing the xml file to know which nca is each type or so it seems.
I took a look at my code and it was intentional, the splitter just splits content unmodified so you'll encounter that when splitting from xci, i just didn't thought about xci explorer, well i'suppose i'll add the code to support it either way.
Edit: It seems it isn't implement in update mode neither currently, i'll implement it in both modes and get back to you when it's done.
 
Last edited by JRoad,

eddy9900

New Member
Newbie
Joined
Oct 21, 2018
Messages
1
Trophies
0
Age
26
XP
56
Country
United States
Hey, guys, I'm having an issue with installing an update to Super Mario Party, it always fails as soon as it is about to create the XCI. But I'm also having the same issue with Super Bomberman R in were the update won't install. I got the latest version of NSC Builder and I also tried to uninstalled anything like DLC and updates but those games didn't have anything in them.

(This is the code that shows up and I checked if I had the master key 6 and I do have it)

Generating XCI:
- Writing XCI header...
- Writing XCI game info...
- Generating padding...
- Writing XCI certificate...
- Writing ROOT HFS0 header...
- Writing UPDATE partition header...
Calculated multiplier: 1
- Writing NORMAL partition header...
Calculated multiplier: 1
- Writing SECURE partition header...
Calculated multiplier: 2
> Appending 01140444cb7430e81630b29c198599c8.nca
0%| | 64.0k/3.01G [00:00<40:33, 1.24MB/s]Traceback (most recent call last):
File "squirrel.py", line 2083, in <module>
File "Fs\Xci.py", line 2079, in pack
File "lib\aes128.py", line 312, in __init__
TypeError: object of type 'NoneType' has no len()
[5572] Failed to execute script squirrel
 
Last edited by eddy9900,

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
Hey, guys, I'm having an issue with installing an update to Super Mario Party, it always fails as soon as it is about to create the XCI. But I'm also having the same issue with Super Bomberman R in were the update won't install. I got the latest version of NSC Builder and I also tried to uninstalled anything like DLC and updates but those games didn't have anything in them.

(This is the code that shows up and I checked if I had the master key 6 and I do have it)

Generating XCI:
- Writing XCI header...
- Writing XCI game info...
- Generating padding...
- Writing XCI certificate...
- Writing ROOT HFS0 header...
- Writing UPDATE partition header...
Calculated multiplier: 1
- Writing NORMAL partition header...
Calculated multiplier: 1
- Writing SECURE partition header...
Calculated multiplier: 2
> Appending 01140444cb7430e81630b29c198599c8.nca
0%| | 64.0k/3.01G [00:00<40:33, 1.24MB/s]Traceback (most recent call last):
File "squirrel.py", line 2083, in <module>
File "Fs\Xci.py", line 2079, in pack
File "lib\aes128.py", line 312, in __init__
TypeError: object of type 'NoneType' has no len()
[5572] Failed to execute script squirrel
Try with latest master, since i corrected things:
https://github.com/julesontheroad/NSC_BUILDER/archive/Beta.zip
Or with:
https://github.com/julesontheroad/NSC_BUILDER/releases/tag/v0.80-c

--------------------- MERGED ---------------------------

Hey, guys, I'm having an issue with installing an update to Super Mario Party, it always fails as soon as it is about to create the XCI. But I'm also having the same issue with Super Bomberman R in were the update won't install. I got the latest version of NSC Builder and I also tried to uninstalled anything like DLC and updates but those games didn't have anything in them.

(This is the code that shows up and I checked if I had the master key 6 and I do have it)

[5572] Failed to execute script squirrel
Sorry, scratch what i said, i just remembered that one is recent, it requires Masterkey7 (keygeneration8) you need masterkey7 to be able to lower keygeneration or pull it's data.
MARIO PARTY.PNG
 

drydarkbowser

Member
Newcomer
Joined
Mar 18, 2019
Messages
12
Trophies
0
Age
39
XP
130
Country
United States
__ _ __ __
____ _____ ____ / /_ __ __(_) /___/ /__ _____
/ __ \/ ___/ ___/ / __ \/ / / / / / __ / _ \/ ___/
/ / / (__ ) /__ / /_/ / /_/ / / / /_/ / __/ /
/_/ /_/____/\___/____/_.___/\__,_/_/_/\__,_/\___/_/
/_____/
-------------------------------------------------------------------------------------
NINTENDO SWITCH CLEANER AND BUILDER
(THE XCI MULTI CONTENT BUILDER AND MORE)
-------------------------------------------------------------------------------------
============================= BY JULESONTHEROAD =============================
-------------------------------------------------------------------------------------
" POWERED BY SQUIRREL "
" BASED IN THE WORK OF BLAWAR AND LUCA FRAGA "
VERSION 0.81 (BETA2)
-------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
,;:;;,
;;;;;
.=', ;:;;:,
/_', "=. ';:;:;
@=:__, \,;:;:'
_(\.= ;:;;'
`"_( _/="`
`"'
Processing: C:\Users\Matt\Desktop\Power_Rangers_Battle_for_the_Grid\v-power_rangers_battle_for_the_grid.nsp
Exception: object of type 'NoneType' has no len()
DONE

/@
\ \
___\ \
(__O) \
(____@) \
(____@) \
(__o)_ \
\ \

HOPE YOU HAVE A FUN TIME

Too many arguments in command line.
...................................................
STILL 0 FILES TO PROCESS
...................................................
---------------------------------------------------
*********** ALL FILES WERE PROCESSED! *************
---------------------------------------------------

Input "0" to go back to the mode selection
Input "1" to exit the program

Enter your choice:

What is the issue here? I can't get this NSP to convert to XCI?
 

Firemanx

Member
Newcomer
Joined
Nov 4, 2018
Messages
15
Trophies
0
Age
34
XP
835
Country
United States
Try taking the underscores out of the file name before running it. I have had similar problems if the file name has special charecters. You might also try shortening the name, sometimes windows has a problem with too many charectors all in one line (including directory)

@drydarkbowser
 
Last edited by Firemanx,

drydarkbowser

Member
Newcomer
Joined
Mar 18, 2019
Messages
12
Trophies
0
Age
39
XP
130
Country
United States
Try taking the underscores out of the file name before running it. I have had similar problems if the file name has special charecters. @drydarkbowser

I will give that a try, Thanks!

--------------------- MERGED ---------------------------

still getting the Exception: object of type 'NoneType' has no len() error

--------------------- MERGED ---------------------------

Repacking as xci
-------------------------------
Generating XCI:

- Writing XCI header...
- Writing XCI game info...
- Generating padding...
- Writing XCI certificate...
- Writing ROOT HFS0 header...
- Writing UPDATE partition header...
Calculated multiplier: 1
- Writing NORMAL partition header...
Calculated multiplier: 1
- Writing SECURE partition header...
Calculated multiplier: 1
> Appending 0
> Appending 27ffcc71968a593169bd2e87c64a6ca9.cnmt.nca
> Appending 78e68a263bb4f49258d7616b5f6f4aad.nca

Closing file. Please wait
---------------------------------------------------
*********** ALL FILES WERE PROCESSED! *************
---------------------------------------------------

Input "0" to go back to the mode selection
Input "1" to exit the program

Enter your choice:

just stops, anyone have any ideas?
 

JBMario

Well-Known Member
Newcomer
Joined
Jan 17, 2019
Messages
76
Trophies
0
Age
34
XP
687
Country
France
Hi @JRoad

Was wondering: is it useful to "convert" an NSP downloaded online to a new NSP with NSC_Builder so it uses my own keys?

I ask this because I download games in XCI and updates (of course) in NSP. Then I throw everything in NSC_Builder to "convert" them in NSP. Maybe it’s useless to do this?

Thank you for your tool either way!
 

MasterJ360

Well-Known Member
Member
Joined
Jan 10, 2016
Messages
2,802
Trophies
1
Age
35
XP
3,463
Country
United States
I will give that a try, Thanks!

--------------------- MERGED ---------------------------

still getting the Exception: object of type 'NoneType' has no len() error

--------------------- MERGED ---------------------------

Repacking as xci
-------------------------------
Generating XCI:

- Writing XCI header...
- Writing XCI game info...
- Generating padding...
- Writing XCI certificate...
- Writing ROOT HFS0 header...
- Writing UPDATE partition header...
Calculated multiplier: 1
- Writing NORMAL partition header...
Calculated multiplier: 1
- Writing SECURE partition header...
Calculated multiplier: 1
> Appending 0
> Appending 27ffcc71968a593169bd2e87c64a6ca9.cnmt.nca
> Appending 78e68a263bb4f49258d7616b5f6f4aad.nca

Closing file. Please wait
---------------------------------------------------
*********** ALL FILES WERE PROCESSED! *************
---------------------------------------------------

Input "0" to go back to the mode selection
Input "1" to exit the program

Enter your choice:

just stops, anyone have any ideas?
What game are you trying to convert? My guess is that the game requires a specific key in order to go through if your trying to convert a 7.0 game that is.
I tried to convert a 7.0 update to 6.2 but ran into the same issue here. It would stop at 18%
 
  • Like
Reactions: drydarkbowser

drydarkbowser

Member
Newcomer
Joined
Mar 18, 2019
Messages
12
Trophies
0
Age
39
XP
130
Country
United States
What game are you trying to convert? My guess is that the game requires a specific key in order to go through if your trying to convert a 7.0 game that is.
I tried to convert a 7.0 update to 6.2 but ran into the same issue here. It would stop at 18%

Power Rangers: Battle for the Grid

--------------------- MERGED ---------------------------

Okay, tried NSC_Builder v0.80-c. Got it to get a little further into the process but then it did this.

Repacking as xci
-------------------------------
Generating XCI:

- Writing XCI header...
- Writing XCI game info...
- Generating padding...
- Writing XCI certificate...
- Writing ROOT HFS0 header...
- Writing UPDATE partition header...
Calculated multiplier: 1
- Writing NORMAL partition header...
Calculated multiplier: 1
- Writing SECURE partition header...
Calculated multiplier: 4
> Appending 05cf7ae509445da9c222f06be2a58ac3.cnmt.nca
> Appending 0e8830ebc21221f7d0c78a4e82e86f2b.nca
> Appending 27ffcc71968a593169bd2e87c64a6ca9.cnmt.nca
> Appending 42989d1e4a4486d4aaac9ead26bd5d80.cnmt.nca
0%| | 206k/873M [00:00<32:39, 446kB/s]Traceback (most recent call last):
File "squirrel.py", line 2083, in <module>
File "Fs\Xci.py", line 2079, in pack
File "lib\aes128.py", line 312, in __init__
TypeError: object of type 'NoneType' has no len()
[1752] Failed to execute script squirrel
---------------------------------------------------
*********** ALL FILES WERE PROCESSED! *************
---------------------------------------------------

Input "0" to go back to the mode selection
Input "1" to exit the program

Enter your choice:
 

MasterJ360

Well-Known Member
Member
Joined
Jan 10, 2016
Messages
2,802
Trophies
1
Age
35
XP
3,463
Country
United States
Power Rangers: Battle for the Grid
Yeah the 7.0 keys is what you need judging by that game's release date.
Your going to get the same error: object of type 'NoneType' has no len() on any build of the nscbuilder until you provide 7.0 keys for it.
Did you try the select patch mode? press num key 7 for 6.2
 

drydarkbowser

Member
Newcomer
Joined
Mar 18, 2019
Messages
12
Trophies
0
Age
39
XP
130
Country
United States
Yeah the 7.0 keys is what you need judging by that game's release date.
Your going to get the same error: object of type 'NoneType' has no len() on any build of the nscbuilder until you provide 7.0 keys for it.
Did you try the select patch mode? press num key 7 for 6.2

Same outcome. I've dumped my keys and I'm updated to 7.0.1. Didn't see any master key 7.
 

MasterJ360

Well-Known Member
Member
Joined
Jan 10, 2016
Messages
2,802
Trophies
1
Age
35
XP
3,463
Country
United States
Same outcome. I've dumped my keys and I'm updated to 7.0.1. Didn't see any master key 7.
hmm not sure what to tell ya if no master key is present then it wont work. I did convert FF7 nsp to xci just now and patched it with 6.2 since the game is 7.0. Im on 6.2 btw
 
Last edited by MasterJ360, , Reason: can't spell

Cava

Well-Known Member
Member
Joined
Jan 26, 2016
Messages
741
Trophies
0
XP
1,347
Country
Hungary
Same here. Can't convert Power Rangers nsp -> XCI

raceback (most recent call last):
File "squirrel.py", line 2083, in <module>
File "Fs\Xci.py", line 2079, in pack
File "lib\aes128.py", line 312, in __init__
TypeError: object of type 'NoneType' has no len()
[2184] Failed to execute script squirrel
DONE
 
  • Like
Reactions: drydarkbowser

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
@drydarkbowser @Cava
Keygeneration 8, you need masterkey7. I need to add checks per function. It's on my list.
Same outcome. I've dumped my keys and I'm updated to 7.0.1. Didn't see any master key 7.
You need to use lockpick RCM
https://gbatemp.net/threads/switch-7-0-key-derivation-lockpick_rcm-payload.532916/

--------------------- MERGED ---------------------------

Yes I did FF7 last night as well. Sadly PR is the first NSP I'm having this issue with.
It's the first basegame with keygeneration8, though there were some updates before.
BTW it works fine i did one with the update and can be lowered till keygeneration6 (FW6.0) without issues.

The name of the needed masterkey is master_key_07
 
Last edited by JRoad,
  • Like
Reactions: drydarkbowser

Cava

Well-Known Member
Member
Joined
Jan 26, 2016
Messages
741
Trophies
0
XP
1,347
Country
Hungary
@drydarkbowser @Cava
Keygeneration 8, you need masterkey7. I need to add checks per function. It's on my list.

You need to use lockpick RCM
https://gbatemp.net/threads/switch-7-0-key-derivation-lockpick_rcm-payload.532916/

--------------------- MERGED ---------------------------


It's the first basegame with keygeneration8, though there were some updates before.
BTW it works fine i did one with the update and can be lowered till keygeneration6 (FW6.0) without issues.

The name of the needed masterkey is master_key_07

Ok i got it and worked. Power Rangers is in xci format now. Thank you.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: Oh wow people buy food never would've thought