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

  • Thread starter Thread starter JRoad
  • Start date Start date
  • Views Views 890,804
  • Replies Replies 2,904
  • Likes Likes 75
can anyone help me regarding this? I wanna know the firmware version to RSV mapping table(those ????????) DM me if you can help. thx.

set bs=%bs:"=%
set "vkey=none"
if /i "%bs%"=="b" goto checkagain
if /i "%bs%"=="f" set "vkey=-kp false"
if /i "%bs%"=="0" set "vkey=-kp 0"
if /i "%bs%"=="0" set "capRSV=--RSVcap 0"
if /i "%bs%"=="1" set "vkey=-kp 1"
if /i "%bs%"=="1" set "capRSV=--RSVcap 65796"
if /i "%bs%"=="2" set "vkey=-kp 2"
if /i "%bs%"=="2" set "capRSV=--RSVcap 201327002"
if /i "%bs%"=="3" set "vkey=-kp 3"
if /i "%bs%"=="3" set "capRSV=--RSVcap 201392178"
if /i "%bs%"=="4" set "vkey=-kp 4"
if /i "%bs%"=="4" set "capRSV=--RSVcap 268435656"
if /i "%bs%"=="5" set "vkey=-kp 5"
if /i "%bs%"=="5" set "capRSV=--RSVcap 335544750"
if /i "%bs%"=="6" set "vkey=-kp 6"
if /i "%bs%"=="6" set "capRSV=--RSVcap 402653494"
if /i "%bs%"=="7" set "vkey=-kp 7"
if /i "%bs%"=="7" set "capRSV=--RSVcap 404750336"
if /i "%bs%"=="8" set "vkey=-kp 8"
if /i "%bs%"=="8" set "capRSV=--RSVcap 469762048"
if /i "%bs%"=="9" set "vkey=-kp 9"
if /i "%bs%"=="9" set "capRSV=--RSVcap 537919488"
if /i "%bs%"=="10" set "vkey=-kp 10"
if /i "%bs%"=="10" set "capRSV=--RSVcap 603979776"
if /i "%bs%"=="11" set "vkey=-kp 11"
if /i "%bs%"=="11" set "capRSV=--RSVcap 605028352"

if /i "%bs%"=="12" set "vkey=-kp 12"
if /i "%bs%"=="12" set "capRSV=--RSVcap ?????????" 11.0.0-12.0.0
if /i "%bs%"=="13" set "vkey=-kp 13"
if /i "%bs%"=="13" set "capRSV=--RSVcap ?????????" 12.0.1-13.0.0
if /i "%bs%"=="14" set "vkey=-kp 14"
if /i "%bs%"=="14" set "capRSV=--RSVcap ?????????" 13.0.1-14.0.0
if /i "%bs%"=="15" set "vkey=-kp 15"
if /i "%bs%"=="15" set "capRSV=--RSVcap ?????????"
.....
if /i "%bs%"=="19" set "vkey=-kp 19"
if /i "%bs%"=="19" set "capRSV=--RSVcap ?????????" 18.0.1-19.0.1

if /i "%vkey%"=="none" echo Wrong Choice
if /i "%vkey%"=="none" goto s_KeyChange_wrongchoice
goto s_KeyChange_skip

with latest DeepSeek AI helping me, this problem done. i updated the NSCBuilder and now it can patch any 22.1.0 UPD to any version from 12.0.1 till 21.2.0...

key in# ,NCA Keygen#,Patched target lower Firmware ver, RSV value

21 0x14 21.0.0-21.2.0 RSVcap 1342177280
20 0x13 20.0.0-20.5.0 RSVcap 1207959552
19 0x12 19.0.0-19.0.1 RSVcap 1140850688
18 0x11 18.0.0-18.1.0 RSVcap 1073741824
17 0x10 17.0.0-17.0.1 RSVcap 1006632960
16 0xF 16.0.0-16.0.1 RSVcap 939524096
15 0xE 15.0.0-15.0.1 RSVcap 872415232
14 0xD 14.0.0-14.1.2 RSVcap 805306368
13 0xC 13.0.0-13.2.1 RSVcap 738197504
12 0xB 12.1.0 RSVcap 671088640

:s_KeyChange_wrongchoice
echo *******************************************************
echo SET MAXIMUM KEYGENERATION\RSV ALOWED
echo *******************************************************
echo Depending on your choice keygeneration and RSV will be
echo lowered to the corresponding keygeneration range in case
echo read keygeneration value is bigger than the one specified
echo in the program.
echo THIS WON'T ALWAYS WORK TO LOWER THE FIRMWARE REQUIREMENT.
echo.
echo Input "f" to not change the keygeneration
echo Input "0" to change top keygeneration to 0 (FW 1.0)
echo Input "1" to change top keygeneration to 1 (FW 2.0-2.3)
echo Input "2" to change top keygeneration to 2 (FW 3.0)
echo Input "3" to change top keygeneration to 3 (FW 3.0.1-3.02)
echo Input "4" to change top keygeneration to 4 (FW 4.0.0-4.1.0)
echo Input "5" to change top keygeneration to 5 (FW 5.0.0-5.1.0)
echo Input "6" to change top keygeneration to 6 (FW 6.0.0-6.1.0)
echo Input "7" to change top keygeneration to 7 (FW 6.2.0)
echo Input "8" to change top keygeneration to 8 (FW 7.0.0-8.0.1)
echo Input "9" to change top keygeneration to 9 (FW 8.1.0)
echo Input "10" to change top keygeneration to 10 (FW 9.0.0-9.01)
echo Input "11" to change top keygeneration to 11 (FW 9.1.0-10.2.0)
echo Input "12" to change top keygeneration to 12 (FW 12.1.0)
echo Input "13" to change top keygeneration to 13 (FW 13.0.0-13.2.1)
echo Input "14" to change top keygeneration to 14 (FW 14.0.0-14.1.2)
echo Input "15" to change top keygeneration to 15 (FW 15.0.0-15.0.1)
echo Input "16" to change top keygeneration to 16 (FW 16.0.0-16.0.1)
echo Input "17" to change top keygeneration to 17 (FW 17.0.0-17.0.1)
echo Input "18" to change top keygeneration to 18 (FW 18.0.0-18.1.0)
echo Input "19" to change top keygeneration to 19 (FW 19.0.0-19.0.1)
echo Input "20" to change top keygeneration to 20 (FW 20.0.0-20.5.0)
echo Input "21" to change top keygeneration to 21 (FW 21.0.0-21.2.0)
echo.
ECHO ******************************************
echo Or Input "b" to return to the list options
ECHO ******************************************
echo.
set /p bs="Enter your choice: "
set bs=%bs:"=%
set "vkey=none"
if /i "%bs%"=="b" goto checkagain
if /i "%bs%"=="f" set "vkey=-kp false"
if /i "%bs%"=="0" set "vkey=-kp 0"
if /i "%bs%"=="0" set "capRSV=--RSVcap 0"
if /i "%bs%"=="1" set "vkey=-kp 1"
if /i "%bs%"=="1" set "capRSV=--RSVcap 65796"
if /i "%bs%"=="2" set "vkey=-kp 2"
if /i "%bs%"=="2" set "capRSV=--RSVcap 201327002"
if /i "%bs%"=="3" set "vkey=-kp 3"
if /i "%bs%"=="3" set "capRSV=--RSVcap 201392178"
if /i "%bs%"=="4" set "vkey=-kp 4"
if /i "%bs%"=="4" set "capRSV=--RSVcap 268435656"
if /i "%bs%"=="5" set "vkey=-kp 5"
if /i "%bs%"=="5" set "capRSV=--RSVcap 335544750"
if /i "%bs%"=="6" set "vkey=-kp 6"
if /i "%bs%"=="6" set "capRSV=--RSVcap 402653494"
if /i "%bs%"=="7" set "vkey=-kp 7"
if /i "%bs%"=="7" set "capRSV=--RSVcap 404750336"
if /i "%bs%"=="8" set "vkey=-kp 8"
if /i "%bs%"=="8" set "capRSV=--RSVcap 469762048"
if /i "%bs%"=="9" set "vkey=-kp 9"
if /i "%bs%"=="9" set "capRSV=--RSVcap 537919488"
if /i "%bs%"=="10" set "vkey=-kp 10"
if /i "%bs%"=="10" set "capRSV=--RSVcap 603979776"
if /i "%bs%"=="11" set "vkey=-kp 11"
if /i "%bs%"=="11" set "capRSV=--RSVcap 605028352"
if /i "%bs%"=="12" set "vkey=-kp 12"
if /i "%bs%"=="12" set "capRSV=--RSVcap 671088640"
if /i "%bs%"=="13" set "vkey=-kp 13"
if /i "%bs%"=="13" set "capRSV=--RSVcap 738197504"
if /i "%bs%"=="14" set "vkey=-kp 14"
if /i "%bs%"=="14" set "capRSV=--RSVcap 805306368"
if /i "%bs%"=="15" set "vkey=-kp 15"
if /i "%bs%"=="15" set "capRSV=--RSVcap 872415232"
if /i "%bs%"=="16" set "vkey=-kp 16"
if /i "%bs%"=="16" set "capRSV=--RSVcap 939524096"
if /i "%bs%"=="17" set "vkey=-kp 17"
if /i "%bs%"=="17" set "capRSV=--RSVcap 1006632960"
if /i "%bs%"=="18" set "vkey=-kp 18"
if /i "%bs%"=="18" set "capRSV=--RSVcap 1073741824"
if /i "%bs%"=="19" set "vkey=-kp 19"
if /i "%bs%"=="19" set "capRSV=--RSVcap 1140850688"
if /i "%bs%"=="20" set "vkey=-kp 20"
if /i "%bs%"=="20" set "capRSV=--RSVcap 1207959552"
if /i "%bs%"=="21" set "vkey=-kp 21"
if /i "%bs%"=="21" set "capRSV=--RSVcap 1342177280"
if /i "%vkey%"=="none" echo WRONG CHOICE
if /i "%vkey%"=="none" goto s_KeyChange_wrongchoice
goto s_KeyChange_skip


人森UPD1.0.2魔改降为19.0.1版本demo.jpg人森UPD1.0.2魔改降为19.0.1版本demo2.jpg人森UPD1.0.2魔改降为19.0.1版本demo3.jpg

Download : (the follwoing NUTDB updated to 2026-05-21 database)
this updated NSCBuilder v1.01b-AI Version from Google Drive (Simplified Chinese Language) NUTDB2026-05-21
this updated NSCBuilder v1.01b-AI version from Google Drive (English)
SAK v0.7.14 keys22.1.0 AI pspmaster udpated version
 
Last edited by pspmaster,
nscb builder / SAK need update.. a lot of games cant merge with update+DLC since firmware 21.2.0 : Marvel Maximum Collection, Legacy of Kain Defiance Remastered, BlazBlue_Entropy_Effect_X, TAITO MILESTONES 4, Hunt the Night, etc....
try to use I updated version of SAK or NSCBuilder by helping of Claude AI and Deepseek AI. all problems fixed now.
 
  • Like
Reactions: ImgBrk
try to use I updated version of SAK or NSCBuilder by helping of Claude AI and Deepseek AI. all problems fixed now.
Thanks, I managed to get Vampire Crawlers and the Update 1.4.0 working on firmware 20.4.0
Unfortunately, it doesn't seem to work on Pokémon FireRed
 
Thanks, I managed to get Vampire Crawlers and the Update 1.4.0 working on firmware 20.4.0
Unfortunately, it doesn't seem to work on Pokémon FireRed
i verified it , it worked . patched it from original 21.2.0 to 19.0.0 , refer to the pics.
Post automatically merged:

Thanks, I managed to get Vampire Crawlers and the Update 1.4.0 working on firmware 20.4.0
Unfortunately, it doesn't seem to work on Pokémon FireRed
this maybe is a limitation for 20.x.0 ,you can patch the NCA keygen# to 20 form NCA keygen#21, but the patched new file still needs system 21.2.0..... so suggest to patch FireRed to NCA Keygen# 19 version from#21 version

pay attention to pic 20-2.png,you see the meta not be patched for 20,(system req. no changed keep 21.2.0 req.) but patch it to NCA keygen#19, meta patched to 17.0.0 system req.
 

Attachments

  • 1.png
    1.png
    88.5 KB · Views: 5
  • 2.png
    2.png
    113.7 KB · Views: 6
  • 3.png
    3.png
    116.1 KB · Views: 5
  • 4.png
    4.png
    72.3 KB · Views: 4
  • 20-3.png
    20-3.png
    519.6 KB · Views: 4
  • 20-2.png
    20-2.png
    88 KB · Views: 3
  • 20-1.png
    20-1.png
    112.6 KB · Views: 3
  • 5.png
    5.png
    1.2 MB · Views: 3
Last edited by pspmaster,
1. Why not to patch always to 0?
2. Why to do it offline and not during title install?
For some new UPDs since 21.2.0, old NSCB can't handle them anymore, index out of range...., or can't pack BASE and UPD or DLC in a single .nsp or .xci owing to out of range issue. that's why the tool needs an update to solve this problem, or someone just wanna patch to 19.0.1 , for instance Yuzu. or their NS1 stays at 19.0.1 system.... the problems caused by that the core base tool "squirrel.exe" is too old and it can't handle latest firmware version higher than 21.2.0 correctly.
luckily, we can use AI to help us nowadays, and if you wanna patch to any lower firmware version ,firstly you should figure out the RSV mapping after the NCA keygen#12, so we let Claude AI to help us to update and optimize the squirrel.exe code and DeepSeek AI to find all version's RSV mapping value. so this update ver. with AI helping solved old tools problems. the most functions we use this tool : including pack latest UPD or DLC with BASE, patch to lower firmware version for lower firmware NS1 or emulator(e.g. Yuzu).
Post automatically merged:

Thanks, I managed to get Vampire Crawlers and the Update 1.4.0 working on firmware 20.4.0
Unfortunately, it doesn't seem to work on Pokémon FireRed
Double confirmed with deepseek AI, that's why it doesn't seem to work onPokémon FireRed :
FYI

Speculation Regarding NCA Keygen #22:

Based on existing information and the update patterns of Nintendo Switch firmware keys, the current situation regarding the RSV value for Keygen #22 is as follows:

1. Core Conclusion: Keygen #22 Has Likely Not Yet Officially Appeared

  • Firmware Versions: Although the versions you mentioned, 22.0.0 (released in March 2026) and 22.1.0 (released in April 2026), have higher version numbers, log analysis from the hacking community (such as Atmosphere and Lockpick_RCM) indicates that these updates did not introduce a new Master Key.
  • Key Reuse: The current FW 22.x series continues to use the Keygen #21 encryption system. This means that if your script only supports up to #21, you can still process games requiring these “new” firmwares by setting -kp 21 and --RSVcap 1342177280.
2. Theoretical RSV Value for Keygen #22 (Estimation)
If Nintendo were to release Keygen #22 in the future, based on the historical incremental pattern of RSV values (typically increasing in hexadecimal units of 0x10000000), the theoretical values should be:

  • Hexadecimal: 0x51000000 or 0x52000000
  • Decimal: Approximately 1363148800 or 1409286144
3. Operational Suggestions

  • Verify Keys: It is recommended that you use the latest version of Lockpick_RCM to re-dump the prod.keys on your actual device. If the dumped key file does not contain entries like master_key_22, it confirms that Keygen #22 has indeed not yet arrived.
  • Downgrade Operation: After confirming the absence of Keygen #22, if you encounter a game requiring FW 22.0.0 or 22.1.0, directly downgrade it to Keygen #21.
In summary, you currently do not need to worry about the RSV value for Keygen #22, as the current FW 22.x updates are “functional iterations” rather than “security encryption iterations.”



Analysis Based on Your Provided prod.keys File Content:

Based on a detailed analysis of the prod.keys file content you provided, the RSV value for Keygen #22 currently does not exist.

1. Key Evidence in the Key File
In the Nintendo Switch encryption system, each Keygen (Key Generation) corresponds to a specific set of Master Keys (master_key_xx) and Key Area Keys (key_area_key_xx). In the file you provided:

  • Highest Keygen Evidence: The highest version Key Area Key in the file is key_area_key_application_15, which in hexadecimal corresponds to 0x0F (Keygen #15).
  • Master Kek Source: The mariko_master_kek_source entries go up to 0x15 (decimal 21), indicating that the highest Master Key generation version supported by this file is Keygen #21.
  • Missing Items: The file completely lacks higher-version key entries such as master_key_22, master_kek_22, or key_area_key_application_16 (0x10 corresponds to Keygen #16).
2. Relationship Between Firmware Version and Keygen
The firmware versions 22.0.0 and 22.1.0 you mentioned have high version numbers, but this does not necessarily mean they introduced a new Keygen #22.

  • Nintendo often releases new system firmware without updating the Master Key. This means FW 22.1.0 may still be using the Keygen #21 encryption system.
  • Your prod.keys file may have been dumped from a device where Keygen #22 has not yet been deployed, or Keygen #22 has not been officially activated globally.
3. Conclusion and Suggestions

  • Current Status: In your current environment, all games or system files requiring FW 22.x likely still have an encryption level of Keygen #21. Therefore, you do not need to search for the RSV value of Keygen #22 for now.
  • Operational Suggestion: If you encounter a game that nominally requires FW 22.1.0, you can try using the RSV value for Keygen #21 (i.e., 1342177280) for downgrade processing.
  • Future Updates: If Nintendo officially releases an update containing master_key_22 in the future, you will need to use the latest version of Lockpick_RCM to re-dump your prod.keys and monitor the hacking community (such as Atmosphere or SciresM’s GitHub) for the announcement of the new RSV value corresponding to Keygen #22.
Summary: The key file you provided proves that Keygen #22 has not taken effect within your system or the scope covered by this key file.



Final Confirmation Based on the Dated prod.keys File:

Based on the content of the FW 22.1.0 prod.keys file you provided, dated April 7, 2026, combined with existing information, it can be explicitly confirmed that Keygen #22 has indeed not been officially enabled yet.

1. Key File Evidence

In the key file you provided, the highest version key entries are key_area_key_application_15 and mariko_master_kek_source_15, which in hexadecimal correspond to 0x0F (Keygen #15). The file completely lacks entries like master_key_22 or key_area_key_application_16. This means the firmware still uses the legacy key system at the encryption level.

2. Official Update Log Corroboration
According to the official update notes released on April 7, 2026, the main content of FW 22.1.0 was to “improve overall system stability and user experience”. The earlier 22.0.0 version primarily added a “Handheld Mode Game Enhancement” feature, allowing some games to achieve docked-mode quality in handheld mode. The update logs for both versions did not mention anything about “security updates” or “encryption system upgrades,” which is entirely consistent with the absence of new keys in the key file.

3. Conclusion and Operational Suggestions

  • Keygen Not Upgraded: Nintendo has only performed functional iterations and stability fixes in the FW 22.x series and has not introduced a new Master Key. Therefore, the Keygen version remains at #21.
  • Downgrade Operation: If you encounter a game file requiring FW 22.1.0, you still need to select the RSV value corresponding to Keygen #21 (i.e., 1342177280) during the downgrade process. Since the encryption level has not changed, downgrading to Keygen #21 can bypass the system version check.
In short, although the firmware version number has jumped to 22.x, its “encryption ID” (Keygen) is still #21. Keygen #22 will only truly arrive when Nintendo releases an update containing master_key_22 in a future version.
 
Last edited by pspmaster,
Sorry, how do i use this to lower firmware required for a game? I can only see options to view things, not delete/edit/patch them? 🤷
 
Last edited by Lostbhoy,
Sorry, how do i use this to lower firmware required for a game? I can only see options to view things, not delete/edit/patch them? 🤷
1. download the latest updated NSCB version by me, run D:\Tools\NSCBuilder_v1.01b_AI_keys22.1.0_EN\nscb.exe
1.jpg
1.jpg
key in number 1 and press ENTER key to chose menu [ Input "1" to process files INDIVIDUALLY ]
2. drag the .nsp file you want to patch to lower firmware version and dop it in the nscb.exe window: then press ENTER
2.jpg

3.key in 1 to start processing
3.jpg


4. select 1, repack, key in 1 , enter, select 1 patch, key in 1, enter, then, select the target patched version you wanna ,e.g NCA keygen#19, key in 19 and press ENTER
4.jpg


5.jpg



5: start to patch the file:
6.jpg

then you can get the patched file in the folder .\NSCBuilder_v1.01b_AI_keys22.1.0_EN\NSCB_output
 
Last edited by pspmaster,
1. download the latest updated NSCB version by me, run D:\Tools\NSCBuilder_v1.01b_AI_keys22.1.0_EN\nscb.exe
View attachment 574083View attachment 574083
key in number 1 and press ENTER key to chose menu [ Input "1" to process files INDIVIDUALLY ]
2. drag the .nsp file you want to patch to lower firmware version and dop it in the nscb.exe window: then press ENTER
View attachment 574084
3.key in 1 to start processing
View attachment 574085

4. select 1, repack, key in 1 , enter, select 1 patch, key in 1, enter, then, select the target patched version you wanna ,e.g NCA keygen#19, key in 19 and press ENTER
View attachment 574088

View attachment 574086


5: start to patch the file:
View attachment 574089
then you can get the patched file in the folder .\NSCBuilder_v1.01b_AI_keys22.1.0_EN\NSCB_output
Thank you so much for the detailed reply! I will give this a go later 👍👍

Edit.... Worked perfectly, thank you so much! 🥳
 
Last edited by Lostbhoy,
1. download the latest updated NSCB version by me, run D:\Tools\NSCBuilder_v1.01b_AI_keys22.1.0_EN\nscb.exe
View attachment 574083View attachment 574083
key in number 1 and press ENTER key to chose menu [ Input "1" to process files INDIVIDUALLY ]
2. drag the .nsp file you want to patch to lower firmware version and dop it in the nscb.exe window: then press ENTER
View attachment 574084
3.key in 1 to start processing
View attachment 574085

4. select 1, repack, key in 1 , enter, select 1 patch, key in 1, enter, then, select the target patched version you wanna ,e.g NCA keygen#19, key in 19 and press ENTER
View attachment 574088

View attachment 574086


5: start to patch the file:
View attachment 574089
then you can get the patched file in the folder .\NSCBuilder_v1.01b_AI_keys22.1.0_EN\NSCB_output
Can you also patch dlc files with this or just games and updates?
 
it has this funtion, you just use main menu Multi-Pack Mode to pack them, you can patch the DLC and UPD at same time if need(automatic) , drag BASE, UPD, and all DLCs , then press Enter to process ,
Thank you very much that was helpful. I was able to patch what i needed for firmware 20.5.
 
if you use latest NSCB I updated before and can't decompress the latest .nsz UPD file and show error:
for instance,When unpacking the new UPD (e.g., Lumen Tale Memories of Trey v1.0.0.1 [010063D024008800][v65536][22.1.0]].nsz), an error occurs because it uses the latest NCA Keygen #22 (0x15) encryption. This new encryption adds a 0x200-byte RSV information area of NCA.

Update: updated few versions with Claude today, so far decompressed OK for #22(0x15) , can't directly pack .nsz , need decompressed to .nsp firstly, then pack...


NCA_Keygen#22_.nsz_decomrpressed_Fixed.jpg


Please download the updated: squirrel_nsz_NCA_keygen#22_decompress_issue_fixed.zip file (credits to vidabo7276 to update the squirrel.exe by Claude) , unzip and put this latest squirrel.exe in folder:
NSCB: .\NSCBuilder_v1.01b_AI_keys22.1.0\ztools to update.
SAK: .\SAK_64bit_v0.7.14_keys22.1.0\bin
to update the NSCB and SAK
 
Last edited by pspmaster,
if you use latest NSCB I updated before and can't decompress the latest .nsz UPD file and show error:
for instance,When unpacking the new UPD (e.g., Lumen Tale Memories of Trey v1.0.0.1 [010063D024008800][v65536][22.1.0]].nsz), an error occurs because it uses the latest NCA Keygen #22 (0x15) encryption. This new encryption adds a 0x200-byte RSV information area at the beginning of the .nsz file.
To resolve this, modify 1.01b NSCB this file: ztools\fs\nsp.py between lines 10012 and 10013, inserting the following code to skip the 0x200-byte RSV area. The actual compressed .nsz data starts after this section:

reader = dctx.stream_reader(nca)

# ========== New: Keygen > #22 RSV header skip logic ==========
# keygeneration variable has been obtained through get_data_from_cnmt
if keygeneration >= 22: # If it's Keygen #22 or higher
t.write(' * Skipping 0x200 bytes of RSV header for Keygen %d' % keygeneration)
# Read and discard 0x200 bytes of RSV header
rsv_header = reader.read(0x200)
if len(rsv_header) != 0x200:
raise IOError('Failed to read RSV header')
# ========== Modification end =====pspmaster updated for NCA Keygen >#22 =

c=0;spsize=0

I will update the NSCB to resolve the latest NCA Keygen#22 .nsz decompress issue.

View attachment 575909

Please download the updated: squirrel_nsz_NCA_keygen#22_decompress_issue_fixed.zip file (credits to vidabo7276 to update the squirrel.exe by Claude) , unzip and put this latest squirrel.exe in folder:
NSCB: .\NSCBuilder_v1.01b_AI_keys22.1.0\ztools to update.
SAK: .\SAK_64bit_v0.7.14_keys22.1.0\bin
to update the NSCB and SAK. if you are using nscb1.01b.py verision ,update the python code I mentioned above by yourself.
Post automatically merged:

this just resolved .nsz decompressed issue. When I try to pack the .nsz files directly ,same error. need update nsp.py for more places called this function zstandard.ZstdDecompressor()
search reader = dctx.stream_reader(ncztype) (7 places...)

count=0;checkstarter=0
dctx = zstandard.ZstdDecompressor()
reader = dctx.stream_reader(ncztype)
[ insert New: Keygen > #22 RSV header skip logic code]
c=0;spsize=0
for s in sections:
How are you compressing the python files to make squirrel.exe?
 
How are you compressing the python files to make squirrel.exe?
FYI
The core purpose of compiling squirrel.py into squirrel.exe is to enable the program to run independently on Windows systems without a Python environment installed. According to existing information, there are currently two mainstream technical approaches: PyInstaller (packaging solution) and Nuitka (compilation solution).

Here are the detailed steps:

Option 1: Using PyInstaller (Recommended, Simple and Fast)
PyInstaller is currently the most commonly used packaging tool, which can bundle a Python program and all its dependencies into a standalone executable file.

Steps:

Install PyInstaller

Execute the following command in the command line (CMD or PowerShell):

bash

pip install pyinstaller<br>
Execute the Packaging Command
Open the command line, navigate to the directory where squirrel.py is located, and then execute the basic packaging command:

bash

pyinstaller --onefile squirrel.py<br>
--onefile: Packages all files into a single .exe file.
If squirrel.py is a graphical user interface (GUI) program and you do not want a black console window to appear, you can add the --noconsole parameter:

bash

pyinstaller --onefile --noconsole squirrel.py<br>
If you want to customize the icon for the generated squirrel.exe, you can use the --icon parameter (the icon must be in .ico format):

bash

pyinstaller --onefile --icon=squirrel.ico squirrel.py<br>
Obtain the Generated File
After packaging is complete, a dist folder will be generated in the current directory, and the final squirrel.exe file will be inside this folder.

Option 2: Using Nuitka (Higher Performance, Higher Security)
Nuitka is a Python compiler that first converts Python code into C++ code and then compiles it into native machine code. Therefore, the generated .exe file has a faster startup speed and is more difficult to decompile.

Steps:

Install Nuitka


bash

pip install nuitka<br>
Install C Compiler (Required)
You need to install a C compiler on your computer in advance to use Nuitka. For Windows systems, it is recommended to install MinGW-w64.

Execute the Compilation Command
Execute the following command in the directory where squirrel.py is located:

bash

nuitka --standalone --onefile squirrel.py<br>
--standalone: Generates a standalone executable file that includes all dependencies.
--onefile: Packages into a single file (some versions may require combining with other plugins).
If you encounter plugin dependency issues, you can enable the corresponding plugin, for example:

bash

nuitka --standalone --enable-plugin=pyqt5 squirrel.py<br>
Obtain the Generated File
After compilation is complete, a squirrel.dist folder will be generated in the current directory, which contains squirrel.exe.
 
Last edited by pspmaster,
  • Like
Reactions: AmeliaFox
Where is info about this new format? switchbrew has nothing about it. What is the offset of this header in the NCA file?
Post automatically merged:

I just tried to install Lumen Tale Memories of Trey and no new headers found. My files are unchanged (signatures are correct).
 
Last edited by duckbill007,
Where is info about this new format? switchbrew has nothing about it. What is the offset of this header in the NCA file?
Post automatically merged:

I just tried to install Lumen Tale Memories of Trey and no new headers found. My files are unchanged (signatures are correct).I
I dno't make sure , Claude mentioned that, tried few updated version today . so far decompress #22(0x15) OK, .nsz directly pack and patch NG, we'll use claude to continue 2 optimize.
 

Site & Scene News

Popular threads in this forum