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

  • Thread starter JRoad
  • Start date
  • Views 729,931
  • Replies 2,826
  • Likes 74

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
Didnt know there was a super trimmer already. Does trim the same stuff XCI trimmer does? Having said just rebuilt MK8 (personal dump, not trimmed) Deluxe with 1.7.1 as xci and the output is smaller yhan the base game. Is that right?
No, a normal trimmer trimms just teh FFFF padding at the end of a xci, supertrimmer deletes the content in the update and normal partition, deletes the logo partition and reduces padding between partitions, it also deletes the xci updates since most are outdated (forgot about that), it's basically meant to have minimal standard xci versions for installation with blawar's tinfoil while keeping available tinfoil's verification. Tinfoil basically skips installation on xci updates being them outdated normally, that's the reason i delete them in the supertrimmer too.

For any minimal xci version either nsp to xci or xci to xci will trimm everything already. Basically you could do what you want using xci to xci from the beginning of the program. The concept is official xci to NSC_Builder xci means taking off the end padding, the system firmware from the update partition and the logo partition, basically making a version that it's a few bytes bigger than the nsp since it has a bigger header.

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

Also would when adding an update, can a US update work with PAL base game?
Only if the [titleid] is the same, if they're different the update will be orphaned and you have 2 logos when loading the xci, the one from the update will have a cloud and say it misses files.
 
Last edited by JRoad,
  • Like
Reactions: ganons

ganons

Well-Known Member
Member
Joined
Jun 12, 2005
Messages
3,290
Trophies
1
XP
3,101
Country
Only if the [titleid] is the same, if they're different the update will be orphaned and you have 2 logos when loading the xci, the one from the update will have a cloud and say it misses files.

Guessing something went wrong because the output is about 700mb smaller than the actual base game. How do you check the titleid?
 

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
Guessing something went wrong because the output is about 700mb smaller than the actual base game. How do you check the titleid?
The hex number in the brakets, random example base -> [010025500C098000], update-> [010025500C098800], just check that all matches except the last 3 digits (000) in base (800) in update and dlcs will match with exception of last 4 digits, dlcs are like +1in hex in the 4th digit from the right and the a number in hex in the last 3 digits.
Either way that xci may be good, basically if you had a xci with padding or an update with deltas the result can be much smaller. Just use the info mode (mode 4) option 1 to see if all is included and the option 8 to see if the files verify properly, that will tell you if the xci is good without testing it on the console.
 
  • Like
Reactions: ganons

ganons

Well-Known Member
Member
Joined
Jun 12, 2005
Messages
3,290
Trophies
1
XP
3,101
Country
The hex number in the brakets, random example base -> [010025500C098000], update-> [010025500C098800], just check that all matches except the last 3 digits (000) in base (800) in update and dlcs will match with exception of last 4 digits, dlcs are like +1in hex in the 4th digit from the right and the a number in hex in the last 3 digits.
Either way that xci may be good, basically if you had a xci with padding or an update with deltas the result can be much smaller. Just use the info mode (mode 4) option 1 to see if all is included and the option 8 to see if the files verify properly, that will tell you if the xci is good without testing it on the console.

XCI is definitely good as it's a personal dump and have been playing it extensively. Will try installing the update as nsp and see what happens.
 

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
XCI is definitely good as it's a personal dump and have been playing it extensively. Will try installing the update as nsp and see what happens.
if it's a personal dump it's normal, xci if not trimmed have FFFFFF to complete the card size so it can be 1Gb,2Gb,4Gb,8Gb,16Gb or 32Gb even if the game is smaller, then you have the firmware update (around 400MB) and some internal padding, all that is deleted so you can end with a size much smaller than what you expect.
The info mode 1 presents only the size of the game content, that way you can know the expected size of the final xci.
 

ganons

Well-Known Member
Member
Joined
Jun 12, 2005
Messages
3,290
Trophies
1
XP
3,101
Country
if it's a personal dump it's normal, xci if not trimmed have FFFFFF to complete the card size so it can be 1Gb,2Gb,4Gb,8Gb,16Gb or 32Gb even if the game is smaller, then you have the firmware update (around 400MB) and some internal padding, all that is deleted so you can end with a size much smaller than what you expect.
The info mode 1 presents only the size of the game content, that way you can know the expected size of the final xci.

Ok so did file info, total size is 6.77GB which sort of matches with output. Insatlled NSP update, update works fine. Deleted from sd card the XCi seems like its working, think had to uninstall the game data and try again. Will rebuild game 1 more time and see.
 

ganons

Well-Known Member
Member
Joined
Jun 12, 2005
Messages
3,290
Trophies
1
XP
3,101
Country
Not sure why its aksing to update when trying to lauch the patched xci. This is for v1.7.1 which release in Jan. Console is on 7.0.1

On the NSC builder pressed, 1, dragged base, then update, pressed 1, then pressed 2. The chose not to patch fw and also patch fw to 7 and they both still ask to update.
 

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
Not sure why its aksing to update when trying to lauch the patched xci. This is for v1.7.1 which release in Jan. Console is on 7.0.1

On the NSC builder pressed, 1, dragged base, then update, pressed 1, then pressed 2. The chose not to patch fw and also patch fw to 7 and they both still ask to update.
Not sure, did you check the game-info to see if it patched correctly? Did you had it installed before?
According to my data that update has a RSV of 6.2.0 so if it's asking to update it's a console update and not prompt by the game itself.
mario.PNG
 

nowpearl

Member
Newcomer
Joined
Aug 5, 2019
Messages
20
Trophies
0
Age
36
Location
Indaiatuba, Brasil
XP
122
Country
Brazil
No, currently the extractor doesn't extract updates program nca. The program nca in updates needs the one in the base and uses a table to extract it, i'll make code to do that eventually but i may add an auto config for hactool in the meantime for those cases if there is interest.

If it's not too much work friend, it would be really cool. otherwise i wait your time.
 

ganons

Well-Known Member
Member
Joined
Jun 12, 2005
Messages
3,290
Trophies
1
XP
3,101
Country
That's the basegame only. If your xci only have that is normal that it is asking you for an update. Did you use the mode 2, multi-mode to include both files?

no was using mode 1. Rebuilt with mode 2 and file size is slightly bigger and when reading the the output with mode, it shows the base game and update. Gonna assume it will work now and all this time have been using the wrong mode :O
 

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
no was using mode 1. Rebuilt with mode 2 and file size is slightly bigger and when reading the the output with mode, it shows the base game and update. Gonna assume it will work now and all this time have been using the wrong mode :O
Yeah mode 1 processes files individually and it's set to convert update and dlc nsp to standard crypto nsps if i remember right.
 

ganons

Well-Known Member
Member
Joined
Jun 12, 2005
Messages
3,290
Trophies
1
XP
3,101
Country
Two questions

1. If using model 1 without adding any additional files, and outputting to XCI, will it trim the output file? I noticed this when incorrectly trying to patch mk8 the output was smaller.

2. What is rename XCI? Can it rename internal game names? Eg Dragon Quest Builders 2 shows up as all caps in horizon, can the rename function be used to have lower case naming?
 

JRoad

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

1. If using model 1 without adding any additional files, and outputting to XCI, will it trim the output file? I noticed this when incorrectly trying to patch mk8 the output was smaller.

2. What is rename XCI? Can it rename internal game names? Eg Dragon Quest Builders 2 shows up as all caps in horizon, can the rename function be used to have lower case naming?
1. Yes, individual mode makes xci files smaller than a normal trimmer does since it also deletes the firmware update. XCI files have system updates that are:
I.- Blocked by SX OS
II.- Only usefull when your system is in a lower firmware.
III.- Not really usefull since we have choidujour NX and tinfoil that can update the firmware with firmware packs
So basically that takes space but NSCB deletes it, it also reduces internal paddings that take some additional kb.
2. It reads the name as horizon does and it adds tags for update\game version and number of games, dlcs inside. It also can add a tag that shows the file's listed languages.

I think the Upsates NCA extractor is something we need, as well as extracting stuff for LayeredFS
Well it extracts the nca files content already in Advanced Mode (mode 6) if you didn't realize. There you have one mode that plintext them and one that extracts them. They work 90% of the time without extracting the nca files, they have a fallback to extract them that seems needed in some xci files for some reason i didn't manage to grasp yet.
The thing that it doesn't extracts currently is update's program nca files because that needs to write something to merge the base and updates ncas. Since i'm working in other things and that will take some time that's why i said that if there's interest i can add hactool for those cases, i may even be able to make it work with a progress bar in plaintext mode like the current extractor uses for plaintext.
 
Last edited by JRoad,

ganons

Well-Known Member
Member
Joined
Jun 12, 2005
Messages
3,290
Trophies
1
XP
3,101
Country
I saw an option for super trimmer but you also mentioned super trimming is done automatically?

Sorry but can I rename a game how I want it to be displayed in sx os/horizon?

Thanks for your patience in answering questions
 

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
I saw an option for super trimmer but you also mentioned super trimming is done automatically?

Sorry but can I rename a game how I want it to be displayed in sx os/horizon?

Thanks for your patience in answering questions
Yeah, the difference with the dedicated one is that it takes game-info data from the xci and deletes the updates if they exist. It's meant to make minimal files for untouch ncas from xci, basically the content you can't find as nsp, to install them in tinfoil with them verified.
Tinfoil verification will marked any modified file while NSCB verification can restore the changes the program did to verify converts from xci to nsp or nsp to xci, files with keygeneration changes, etc... as long they were done with the same method NSCB uses.
I can see it being a little confusing, i explained it in the changelog when i added it but even i forgot that that one deletes updates XD.

So basically:
- xci to xci: Trims padding at the end of file like normal trimming, deletes firmware partition, deletes logo partition if it exists, deletes content in normal partition if it exists, deletes system firmware. Randomizes some game data and keeps updates on the file.
- supertrimmer: Does the same but deletes updates, keeps data from gamecard certificates and some cartridge data. Is mostly meant for people that uses tinfoil xci installation. May actually benefit of a question that asks you if you want to delete dlcs or updates from the card.

For normal users the normal xci to xci is fine.
 
  • Like
Reactions: ganons

typographicman

New Member
Newbie
Joined
Oct 31, 2018
Messages
2
Trophies
0
Age
32
XP
74
Country
United States
I'm trying to use the MULTI-PACK MODE to combine an NSP and the update and output as an XCI. When I first tired it, it gave me an error saying "TOO MANY ARGUMENTS" so I downloaded the more file that you provided.

I put the more file in the same location as NSCB.bat and tried doing it again and got this error:

--------------------
File "squirrel.py", line 3599, in <module>
OSError: [Errno 22] Invalid argument: 'D:\\NSC\\NSCB_temp\\Tactics V "Obsidian Brigade" [01007C7006AEE000] [v327680] (1G+1U).xci'
[688] Failed to execute script squirrel
--------------------

Any idea what to do next?
 

Site & Scene News

Popular threads in this forum

Recent Content

General chit-chat
Help Users
  • No one is chatting at the moment.
    Xdqwerty @ Xdqwerty: good night