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

  • Thread starter JRoad
  • Start date
  • Views 731,299
  • Replies 2,826
  • Likes 74

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
SX AUTOLOADER OPTIONS
******************************************

1. GENERATE SX AUTOLOADER FILES FOR SD GAMES
2. GENERATE SX AUTOLOADER FILES FOR HDD GAMES
3. PUSH SX AUTOLOADER FILES TO CONSOLE
4. CHECK AND CLEAN AUTOLOADER FILES (MEANT TO AVOID COLLISION BETWEEN SD AND HDD)

******************************************
Or Input "0" to return to the list options
******************************************

Enter your choice: 4
Getting NUTDB json
* Parsing games in device. Please Wait...
* Retriving autoloader files in device. Please Wait...
Success
Exception: invalid literal for int() with base 10: 'D'

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

hi i would like to regenerate autoloader file, is working or not (on bold sentence)?
i use your nscn v1.00c mtp function
Need to check but I don't have time this weekend. I know it was working on 0.99 if you are in a hurry.
Are all your xci files with [titleid] in the name? Seems like a parsing error in the tags I think that would happen if it thinks the tag is the titleid and since it doesn't end by 000 it'll think is a dlc. In this case the last 3 digits aren't making a valid hex number or int,16 so it gives an error. The fix is probably to add a exception that ignores the file and keeps popping through the rest of files.

Other things to fix that are fixed in the master:
- Selector to list isn't adding files to the list.txt
- The autoupdate doesn't show messages due to curses. Is system dependent but I fix it, I realized you need to isolate the pickle library for some reason.

This isn't fixed but acknowledged:
- Remote installation shows xci, I already have a working concept for xci,xci installs from Google Drive so if it's ready for next release it'll be included if not I'll filter them.
 

kickmeh

Well-Known Member
Newcomer
Joined
Jun 16, 2020
Messages
53
Trophies
0
Age
34
XP
302
Country
Switzerland
Need to check but I don't have time this weekend. I know it was working on 0.99 if you are in a hurry.
Are all your xci files with [titleid] in the name? Seems like a parsing error in the tags I think that would happen if it thinks the tag is the titleid and since it doesn't end by 000 it'll think is a dlc. In this case the last 3 digits aren't making a valid hex number or int,16 so it gives an error. The fix is probably to add a exception that ignores the file and keeps popping through the rest of files.

Other things to fix that are fixed in the master:
- Selector to list isn't adding files to the list.txt
- The autoupdate doesn't show messages due to curses. Is system dependent but I fix it, I realized you need to isolate the pickle library for some reason.

This isn't fixed but acknowledged:
- Remote installation shows xci, I already have a working concept for xci,xci installs from Google Drive so if it's ready for next release it'll be included if not I'll filter them.

yeep regenerate autoloader for me isnt working for now on, will try with 0.99
yes have alot of mod layeredfs/romfs on my titles folder for zelda botw game, yes i think is without exception for parsing not game/xci, thanks for reply
 

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
yeep regenerate autoloader for me isnt working for now on, will try with 0.99
yes have alot of mod layeredfs/romfs on my titles folder for zelda botw game, yes i think is without exception for parsing not game/xci, thanks for reply
I added some exception handles, hopefully it fixes your issue.

https://github.com/julesontheroad/NSC_BUILDER/releases/tag/1.00d

NSC_Builder v1.00d - Changelog
Fixed issue where autoupdater from google drive may not show messages in some system triggered by windows-curses.

Fixed issue #183 where window selector wasn't working. Added file extension filter to window selector dependent of the mode it is called from.
Added exceptions to handle possible situations when parsing non tagged xci files on SD. These files are ignored when id,version,etc.. can't be parsed correctly from name (missing tags).
Fixed issue where generating or updating cache libraries from google drive will except when the google api called doesn't return any data.
 

death7lord

Member
Newcomer
Joined
Sep 9, 2019
Messages
18
Trophies
0
Age
24
XP
211
Country
United States
Hello. Where I can find an detailed instructions\manuals how to add a Google Drive functions to DBI? I need it only. I wanna installing a games from public GDrive folder. Also I didn't understand how correctlly turn on google api. I'm sorry...
 

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
Hello. Where I can find an detailed instructions\manuals how to add a Google Drive functions to DBI? I need it only. I wanna installing a games from public GDrive folder. Also I didn't understand how correctlly turn on google api. I'm sorry...
Public folder is not doable under NSCB
Hello. Where I can find an detailed instructions\manuals how to add a Google Drive functions to DBI? I need it only. I wanna installing a games from public GDrive folder. Also I didn't understand how correctlly turn on google api. I'm sorry...
https://github.com/julesontheroad/N...ntation and Resources/Changelogs/NSCB_0.99.md

To enable the google drive api you need to go here https://developers.google.com/drive/api/v3/quickstart/python and press on Enable the drive api, select Desktop App, press Create and the press Download Client Configuration, you'll get a credentials json.
Add that to zconfig/credentials, by default is named credentials.json, you can leave it like that.
Go to the configuration options, then:
Input "7" for GOOGLE DRIVE OPTIONS
Input "1" to register account

Give the token a name and it'll redirect you to the browser, enter in your account and it'll create the token you need.

About the public drive it has to be added to your google drive as a symlink, that could be done before via web but now they do shortcuts. I have a function in squirrel to add them via the old system, i could add an option to add the public folders to your drive, since i'm not sure if they would work as shortcut.

To setup the libraries follow the instructions here:
https://github.com/julesontheroad/N...ntation and Resources/Changelogs/NSCB_0.99.md
 

death7lord

Member
Newcomer
Joined
Sep 9, 2019
Messages
18
Trophies
0
Age
24
XP
211
Country
United States
Yes, I added a public folder to my gdrive account. I did turn on a google api. But what is a name I must gate to "a token name"? I wrote just "gdrive". How must looks correctlly a paths in remote_libraries.txt ? And what I need do a later?
 

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
Th
Yes, I added a public folder to my gdrive account. I did turn on a google api. But what is a name I must gate to "a token name"? I wrote just "gdrive". How must looks correctlly a paths in remote_libraries.txt ? And what I need do a later?
The token name will be the same as a drive
Yes, I added a public folder to my gdrive account. I did turn on a google api. But what is a name I must gate to "a token name"? I wrote just "gdrive". How must looks correctlly a paths in remote_libraries.txt ? And what I need do a later?
The token name is basically the same as a drive letter in NSCB, each library is like a folder shortcut you add also and needs to point to a folder with files.
The example on setups is in the link i gave you but it'll be like:

library_name|path|TD_name|Update
BASE|gdrive:/Switch/base||FALSE
UPD|gdrive:/Switch/updates||TRUE
DLC|gdrive:/Switch/dlcs||TRUE
BASE|gdrive:/Switch/base|TeamDriveName|FALSE
UPD|gdrive:/Switch/updates|TeamDriveName|TRUE
DLC|gdrive:/Switch/dlcs|TeamDriveName|TRUE

As you see if you would've called your token mike it would've been:
BASE|mike:/Switch/base||FALSE
MYLIBRARYNAME|mike:/anypathtofolder||FALSE
MYLIBRARYNAME|mike:/anypathtofolder|AnyTDname|FALSE

The Update TRUE or FALSE parameter sets the libraries that the autoupdater checks for new dlcs and updates.

In latest NSCB there's also this option in the remote mtp installer "Input "3" to PICK FILES FROM FOLDER WALKER"
that asks you for a token, then a TeamDrive, and then shows you all folders in the drive, when it reachs a folder with only files it shows you the files to choose from if you want to stop in a folder that has folders + files you press "E" and it will scan the folder for files (it says so in the top of the walker)

Would show you pictures but have to set up a bogus drive since i don't want to show my folders, etc...

Also i advice to generate cache libraries either in options or in mtp mode (regenerate cache libraries), those won't update till regenerated but is a list of all files in your drive, so it's faster to search them instead of having to request all files to the google api which takes a few seconds if you have a lot of files.

Also if you want to use direct public links at some point with mtp add a folder in remote_cache_location.txt the same way, by default it'll add symlinks to that folder but can be changed in options to copy the files gaining ownership too.
 
Last edited by JRoad,

scroeffie1984

Well-Known Member
Member
Joined
Jan 17, 2019
Messages
501
Trophies
0
Age
40
XP
1,782
Country
Netherlands
i got this messege and the program scrolls very fast
the program says keytext is not pointed or missing exit now
oke i found keys ,but the program keeps scrolling very fast no matter what option i choose
iam using windows 10

it says py is not recognize as a internal or external command what do you want to do <scrolls very fast
 
Last edited by scroeffie1984,

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
i got this messege and the program scrolls very fast
the program says keytext is not pointed or missing exit now
oke i found keys ,but the program keeps scrolling very fast no matter what option i choose
iam using windows 10

it says py is not recognize as a internal or external command what do you want to do <scrolls very fast
Probably wrong format, you get that since the error is in python, it crashes and since the cnmd uses python to parse filepaths to avoid bad formats you enter in a loop. You need to find were you are in the batch and add PAUSE command but i imagine you're using a key file with incorrect format and the program crashes due to comments in the file or something similar.

Anyway just take the keys_template.txt and fill the keys manually. If you need them extract the from your console with lockpick_rcm.
https://github.com/shchmue/Lockpick_RCM/releases
 

scroeffie1984

Well-Known Member
Member
Joined
Jan 17, 2019
Messages
501
Trophies
0
Age
40
XP
1,782
Country
Netherlands
i have no idea what you are talking about :) i downloaded the program than i change the files to key.txt
and open the program NSCB.exe i choose option 1 that i get the messege it says py is not recognize as a internal or external command what do you want to do <scrolls very fast
iam using sx os
 
Last edited by scroeffie1984,

RJMayhem

Well-Known Member
Member
Joined
Sep 14, 2018
Messages
149
Trophies
0
XP
704
Country
United States
I could use some help. I'm having a problem with making a xci for Pokemon Sword with 1.2.1 update and the dlc. The program runs fine with no errors but when I start the xci it crashes. I've tried remaking the xci a few times and each time it crashes when I start it.
 

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
I could use some help. I'm having a problem with making a xci for Pokemon Sword with 1.2.1 update and the dlc. The program runs fine with no errors but when I start the xci it crashes. I've tried remaking the xci a few times and each time it crashes when I start it.
1.- Verify your keys.txt in the configuration.
2.- Verify the final file on the info mode, option 8 verification.
3.- If you found issues in 1 or 2 verify the input files, if you want to do it at once there's a mass verification option on Mode 1.

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

i have no idea what you are talking about :) i downloaded the program than i change the files to key.txt
and open the program NSCB.exe i choose option 1 that i get the messege it says py is not recognize as a internal or external command what do you want to do <scrolls very fast
iam using sx os
I'm telling you to take the keys_template.txt open it with a text editor ands fill up the keys instead of using a file you got somewhere and renamed to keys.txt and that the content for those keys can be gotten from lockpick with the exception of xci_header_key which is optional and can be removed from the text file.

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

I could use some help. I'm having a problem with making a xci for Pokemon Sword with 1.2.1 update and the dlc. The program runs fine with no errors but when I start the xci it crashes. I've tried remaking the xci a few times and each time it crashes when I start it.
Wait I didn't read the py isn't recognized as internal command part. Are you trying to use the master itself?
The master is python so you need to have python >3.6 installed for the master.
If you don't want python dependencies you need to use the exe version from releases, either x86 or x64
https://github.com/julesontheroad/NSC_BUILDER/releases

I think you just downloaded the master.
 
Last edited by JRoad,

RJMayhem

Well-Known Member
Member
Joined
Sep 14, 2018
Messages
149
Trophies
0
XP
704
Country
United States
Thank you for the reply.

My Keys.txt is good I got it from lockpick as prod.keys and changed them to Keys.txt. The only thing I don't have it the xci_header_key.

Everything tested Proper and Correct other then KEYGENERATION & RSV were changed idk if that normal or not. I'm thinking its the update file I'm adding to make the xci. The games worked before the new update and it even crashes when I installed the update as nsps.
 
Last edited by RJMayhem,

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
Thank you for the reply.

My Keys.txt is good I got it from lockpick as prod.keys and changed them to Keys.txt. The only thing I don't have it the xci_header_key.

Everything tested Proper and Correct other then KEYGENERATION & RSV were changed idk if that normal or not. I'm thinking its the update file I'm adding to make the xci. The games worked before the new update and it even crashes when I installed the update as nsps.
if you changed the keygeneration it is normal, yes. did you patched keygeneration trying to get it to work in a lower firmware?

If you did that it is trial and error, it works with some games\updates but not all. You have better chances if the SDK number is low. Anyway if you installed them with tinfoil or sx installer it autopatches keygeneration to 0 so you won't notice it got patched and if the game actually needs a higher firmware it'll error out.
If the new update needs dependencies from a higher firmware it will crash even after being patched.
 

RJMayhem

Well-Known Member
Member
Joined
Sep 14, 2018
Messages
149
Trophies
0
XP
704
Country
United States
I'm running 10.1.0 on my switch so I pressed 0 to not patch them as its not needed. I press 2 > Drag folder with Game and update & press enter > Press 1 > Press 2 > Press 0 > Press 1.
 
Last edited by RJMayhem,

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
I'm running 10.1.0 on my switch so I pressed 0 to not patch them as its not needed. I press 2 > Drag folder with Game and update & press enter > Press 1 > Press 2 > Press 0 > Press 1.
I don't get it if the update was fine. Maybe use dbi to uninstall the previous update and use the delete orphaned data, that will clean up orphan ncas and tickets.
Since people had weird issues due to stuck data before.
Latest dbi release is 138 and i think since 135 they added the ability to remove unused tickets in the orphan option:
https://github.com/julesontheroad/NSC_BUILDER/tree/master/py/Documentation and Resources/DBI/138

I'll see about checking myself sword tomorrow if that doesn't solves it.
 

RJMayhem

Well-Known Member
Member
Joined
Sep 14, 2018
Messages
149
Trophies
0
XP
704
Country
United States
I don't get it if the update was fine. Maybe use dbi to uninstall the previous update and use the delete orphaned data, that will clean up orphan ncas and tickets.
Since people had weird issues due to stuck data before.
Latest dbi release is 138 and i think since 135 they added the ability to remove unused tickets in the orphan option:
https://github.com/julesontheroad/NSC_BUILDER/tree/master/py/Documentation and Resources/DBI/138

I'll see about checking myself sword tomorrow if that doesn't solves it.

ok, ill see about that I'm trying a different update file to see if that will solve the issue if not ill see about what you said.
 

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
ok, ill see about that I'm trying a different update file to see if that will solve the issue if not ill see about what you said.
I mean, if your update file verifies fine at level 3 which includes hash it will 1:1 equal to the official update from Nintendo. If that happened you don't need to test more updates.
Think that the verification by default does level 2 which is fast but can miss corruption.
 

RJMayhem

Well-Known Member
Member
Joined
Sep 14, 2018
Messages
149
Trophies
0
XP
704
Country
United States
Ok, I added DBI.nro and ran it used the Cleanup Orphaned Files it found a couple files and cleaned them up but when I went to run the XCI it still crashed.

I seem to only be having a problem with Pokemon Sword and Shield. I have other games that work with updates and dlc added to make a xci.
 
Last edited by RJMayhem,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: Well start walking towards them +1