Homebrew RELEASE Ryjin: A NSZ Converter Mod

blawar

Developer
Developer
Joined
Nov 21, 2016
Messages
1,708
Trophies
1
Age
40
XP
4,311
Country
United States
Oh yes of course. Many thanks.

EDIT: Well, so I don't recall how to get a new keys.txt with this method. I have prod.keys, title.keys, and device.keys. The old keys.py script doesn't seem to work for newer firmware nor is it supposed to. So how do I generate a new keys.txt? Is it just a copy/pasted combination from the contents of the aforementioned .keys files?

rename prod.keys
 
  • Like
Reactions: MusicallyInspired

GnK23

Well-Known Member
OP
Member
Joined
Apr 6, 2016
Messages
170
Trophies
0
Age
35
XP
671
Country
United States
Updated to 3.0 using 3.1.1 NSZ python and 4nxci.
added
XCI to NSZ convertion
XCZ to NSZ convertion
XCZ to XCI decompression


Apparently I decided to continue using the old cmd method because it does not hang after the file finishes conversion. Pressing a key would return you to the menu where you could choose your next batch of nsp to convert
 
Last edited by GnK23,

platanos

Well-Known Member
Newcomer
Joined
Mar 28, 2007
Messages
70
Trophies
1
XP
2,261
Country
Updated to 3.0 using 3.1.1 NSZ python and 4nxci.
added
XCI to NSZ convertion
XCZ to NSZ convertion
XCZ to XCI decompression


Apparently I decided to continue using the old cmd method because it does not hang after the file finishes conversion. Pressing a key would return you to the menu where you could choose your next batch of nsp to convert
Thanks for the great update. However, can't get it to work.

Version 2.5 was working fine. I've updated python using your installer, but when I run "Install requirements.bat" I keep getting this error:

OpH9ru4.jpg
 

GnK23

Well-Known Member
OP
Member
Joined
Apr 6, 2016
Messages
170
Trophies
0
Age
35
XP
671
Country
United States
Thanks for the great update. However, can't get it to work.

Version 2.5 was working fine. I've updated python using your installer, but when I run "Install requirements.bat" I keep getting this error:

OpH9ru4.jpg
Try doing this.
1. inside the requirements.txt paste this line
pycryptodome>=3.9.0
zstandard
enlighten
kivy_deps.sdl2==0.1.22
kivy_deps.glew==0.1.12
kivy==1.11.1
2. Save this
3. Make another txt file
py -3 -m pip install -r requirements.txt
4. Save it under the name install requirements.bat
5. Run the bat file
 

platanos

Well-Known Member
Newcomer
Joined
Mar 28, 2007
Messages
70
Trophies
1
XP
2,261
Country
Try doing this.
1. inside the requirements.txt paste this line
pycryptodome>=3.9.0
zstandard
enlighten
kivy_deps.sdl2==0.1.22
kivy_deps.glew==0.1.12
kivy==1.11.1
2. Save this
3. Make another txt file
py -3 -m pip install -r requirements.txt
4. Save it under the name install requirements.bat
5. Run the bat file

Thank you very much. This worked!
 
  • Like
Reactions: GnK23

GnK23

Well-Known Member
OP
Member
Joined
Apr 6, 2016
Messages
170
Trophies
0
Age
35
XP
671
Country
United States
Reverted to old 2.5 version. This is the final and stable build of ryjin. just place the keys.txt inside the ryjin folder.
 

GnK23

Well-Known Member
OP
Member
Joined
Apr 6, 2016
Messages
170
Trophies
0
Age
35
XP
671
Country
United States
Feel free to edit the bat command. I no longer wish to improve anymore the files.

@Echo off
title RYJIN 2.5 NSZ CONVERTER
set "threads="
set "level="
goto 'selection'

: 'selection'
cls
ECHO RYJIN 2.5 NSZ CONVERTER
ECHO by Gnk23 and Rylen101 of Pinoy Gaming Hustlers
ECHO Special thanks to blawar , nicoboss , and taorn for the NSZ compressor codes
ECHO.
ECHO.
ECHO.
ECHO "Select Compression Type To Use:"
ECHO.
ECHO. S - SOLID COMPRESSION
ECHO. B - BLOCK COMPRESSION
ECHO. D - DECOMPRESS NSZ TO NSP
ECHO. SB - CONVERT SOLID NSZ TO BLOCK NSZ
ECHO.
ECHO REMINDER:
ECHO SOLID COMPRESSION simply converts NSP to a smaller size NSZ.
ECHO BLOCK COMPRESSION supports playing compressed games and is currently supported by Tinfoil 6+.
ECHO.
ECHO.
ECHO.INPUT:
set choice=
set /p choice=
IF '%choice%'=='S' goto 'solid'
IF '%choice%'=='s' goto 'solid'
IF '%choice%'=='b' goto 'block'
IF '%choice%'=='B' goto 'block'
IF '%choice%'=='d' goto 'decompress'
IF '%choice%'=='D' goto 'decompress'
IF '%choice%'=='SB' goto 'Solid to BLOCK Converter'
IF '%choice%'=='sb' goto 'Solid to BLOCK Converter'
IF '%choice%'=='Sb' goto 'Solid to BLOCK Converter'
IF '%choice%'=='sB' goto 'Solid to BLOCK Converter'

goto 'selection'

: 'Solid to BLOCK Converter'
cls
ECHO -SOLID to BLOCK NSZ CONVERTER-
ECHO.
ECHO NOTE: The input folder is also the output folder
ECHO.
set /p sin= "Enter Input Location of the NSZ Files:"
goto 'sbrmautoman'

:'sbrmautoman'
cls
ECHO -SOLID to BLOCK NSZ CONVERTER-
ECHO.
ECHO.
Choice /C YN /M "Do you want to use the automatic default settings?"
IF %ERRORLEVEL% EQU 2 goto 'sbinputthread'
IF %ERRORLEVEL% EQU 1 goto 'sbrm'


: 'sbinputthread'
cls
ECHO -MANUAL SOLID to BLOCK NSZ CONVERTER-
ECHO.
@Echo CPU Model:
wmic cpu get name
@Echo Available CPU threads [ %NUMBER_OF_PROCESSORS% ]
set /p threads="Enter number of CPU Threads to use: "
if /I %threads% leq %NUMBER_OF_PROCESSORS% if /I %threads% gtr 0 goto 'sbinputlevel'
if /I %threads% gtr %NUMBER_OF_PROCESSORS% goto 'sbinvalidthread'
if /I %threads% leq 0 goto 'sbinvalidthread'

: 'sbinvalidthread'
cls
ECHO -MANUAL SOLID to BLOCK NSZ CONVERTER-
ECHO.
Choice /C YN /M "Input is invalid, would you like to use the default value instead? Default value:%NUMBER_OF_PROCESSORS%"
IF %ERRORLEVEL% EQU 1 set /A threads=%NUMBER_OF_PROCESSORS%
IF %ERRORLEVEL% EQU 2 goto 'sbinputthread'

: 'sbinputlevel'
ECHO.
set /p level="Enter level of compression to use [22 max]: "
if /I %level% gtr 0 if /I %level% leq 22 goto 'sbmrm'
if /I %level% leq 0 if /I %level% gtr 22 goto 'sbinvalidlevel'

: 'sbinvalidlevel'
cls
ECHO -MANUAL SOLID to BLOCK NSZ CONVERTER-
ECHO.
Choice /C YN /M "Input is invalid, would you like to use the default value instead? Default Value: 18"
IF %ERRORLEVEL% EQU 1 set /A level=18
IF %ERRORLEVEL% EQU 2 goto 'sinputlevel'
goto 'sbmrm'


: 'sbmrm'
cls
ECHO -MANUAL SOLID to BLOCK NSZ CONVERTER-
ECHO.
for %%i in ("%sin%"\*.nsz) do nsz.exe -D "%%i" --output "%sin%"\ --rm-source && for %%i in ("%sin%"\*.nsp) do nsz.exe -B --level %level% --threads %threads% -C "%%i" --output "%sin%"\ --rm-source
@Echo Done :)
Pause
exit


: 'sbrm'
cls
ECHO -AUTO SOLID to BLOCK NSZ CONVERTER-
ECHO.
for %%i in ("%sin%"\*.nsz) do nsz.exe -D "%%i" --output "%sin%"\ --rm-source && for %%i in ("%sin%"\*.nsp) do nsz.exe -B --level 18 --threads %NUMBER_OF_PROCESSORS% -C "%%i" --output "%sin%"\ --rm-source
@Echo Done :)
Pause
exit



: 'decompress'
cls
ECHO -DECOMPRESS NSZ TO NSP-
ECHO.
ECHO NOTE: The input folder is also the output folder
ECHO.
set /p sin= "Enter Input Location of the NSZ Files:"
goto 'drm'


: 'drm'
cls
ECHO -DECOMPRESS NSZ TO NSP-
ECHO.
Choice /C YN /M "Would you like to delete NSZ after it decompress?"
IF %ERRORLEVEL% EQU 1 goto 'dstartrm'
IF %ERRORLEVEL% EQU 2 goto 'dstart'

: 'dstart'
cls
ECHO -DECOMPRESS NSZ TO NSP-
ECHO.
for %%i in ("%sin%"\*.nsz) do nsz.exe -D "%%i" --output "%sin%"\
@Echo Done :)
Pause
exit

: 'dstartrm'
cls
ECHO -DECOMPRESS NSZ TO NSP-
ECHO.
for %%i in ("%sin%"\*.nsz) do nsz.exe -D "%%i" --output "%sin%"\ --rm-source
@Echo Done :)
Pause
exit



: 'solid'
cls
ECHO -SOLID COMPRESSION-
ECHO.
: 'sfirst'
ECHO.
ECHO.
ECHO.
Choice /C YN /M "Do you want to use the automatic default settings?"
IF %ERRORLEVEL% EQU 2 goto 'smanlocation'
IF %ERRORLEVEL% EQU 1 goto 'sautolocation'

: 'sautolocation'
cls
ECHO -AUTO SOLID COMPRESSION-
ECHO.
ECHO NOTE: The input folder is also the output folder
ECHO.
set /p sin= "Enter Input Location of the NSP Files:"
goto 'sarm'

: 'sarm'
cls
ECHO -AUTO SOLID COMPRESSION-
ECHO.
Choice /C YN /M "Would you like to delete NSP after it compress?"
IF %ERRORLEVEL% EQU 1 goto 'srmauto'
IF %ERRORLEVEL% EQU 2 goto 'sauto'

: 'sauto'
cls
ECHO -AUTO SOLID COMPRESSION-
ECHO.
for %%i in ("%sin%"\*.nsp) do nsz.exe --level 18 --threads %NUMBER_OF_PROCESSORS% -C "%%i" --output "%sin%"\
@Echo Done :)
Pause
exit

: 'srmauto'
cls
ECHO -AUTO SOLID COMPRESSION-
ECHO.
for %%i in ("%sin%"\*.nsp) do nsz.exe --level 18 --threads %NUMBER_OF_PROCESSORS% -C "%%i" --output "%sin%"\ --rm-source
@Echo Done :)
Pause
exit

: 'smanlocation'
cls
ECHO -MANUAL SOLID COMPRESSION-
ECHO.
ECHO NOTE: The input folder is also the output folder
ECHO.
set /p sin= "Enter Input Location of the NSP Files:"
goto 'sinputthread'


: 'sinputthread'
cls
ECHO -MANUAL SOLID COMPRESSION-
ECHO.
@Echo CPU Model:
wmic cpu get name
@Echo Available CPU threads [ %NUMBER_OF_PROCESSORS% ]
set /p threads="Enter number of CPU Threads to use: "
if /I %threads% leq %NUMBER_OF_PROCESSORS% if /I %threads% gtr 0 goto 'sinputlevel'
if /I %threads% gtr %NUMBER_OF_PROCESSORS% goto 'sinvalidthread'
if /I %threads% leq 0 goto 'sinvalidthread'

: 'sinvalidthread'
cls
ECHO -MANUAL SOLID COMPRESSION-
ECHO.
Choice /C YN /M "Input is invalid, would you like to use the default value instead? Default value:%NUMBER_OF_PROCESSORS%"
IF %ERRORLEVEL% EQU 1 set /A threads=%NUMBER_OF_PROCESSORS%
IF %ERRORLEVEL% EQU 2 goto 'sinputthread'

: 'sinputlevel'
ECHO.
set /p level="Enter level of compression to use [22 max]: "
if /I %level% gtr 0 if /I %level% leq 22 goto 'smrm'
if /I %level% leq 0 if /I %level% gtr 22 goto 'sinvalidlevel'

: 'sinvalidlevel'
cls
ECHO -MANUAL SOLID COMPRESSION-
ECHO.
Choice /C YN /M "Input is invalid, would you like to use the default value instead? Default Value: 18"
IF %ERRORLEVEL% EQU 1 set /A level=18
IF %ERRORLEVEL% EQU 2 goto 'sinputlevel'
goto 'smrm'

: 'smrm'
cls
ECHO -MANUAL SOLID COMPRESSION-
ECHO.
Choice /C YN /M "Would you like to delete NSP after it compress?"
IF %ERRORLEVEL% EQU 1 goto 'smanrm'
IF %ERRORLEVEL% EQU 2 goto 'sman'
goto 'scustomrun'


: 'sman'
cls
ECHO -SOLID COMPRESSION-
for %%i in ("%sin%"\*.nsp) do nsz.exe --level %level% --threads %threads% -C "%%i" --output "%sin%"\
@Echo Done :)
Pause
exit

: 'smanrm'
cls
ECHO -SOLID COMPRESSION-
for %%i in ("%sin%"\*.nsp) do nsz.exe --level %level% --threads %threads% -C "%%i" --output "%sin%"\ --rm-source
@Echo Done :)
Pause
exit

: 'block'
cls
ECHO -BLOCK COMPRESSION-
ECHO.
: 'bfirst'
ECHO.
ECHO.
Choice /C YN /M "Do you want to use the automatic default settings?"
IF %ERRORLEVEL% EQU 2 goto 'bmanlocation'
IF %ERRORLEVEL% EQU 1 goto 'bautolocation'


: 'bautolocation'
cls
ECHO -AUTO BLOCK COMPRESSION-
ECHO.
ECHO NOTE: The input folder is also the output folder
ECHO.
set /p sin= "Enter Input Location of the NSP Files:"
goto 'barm'

: 'barm'
cls
ECHO -AUTO BLOCK COMPRESSION-
ECHO.
Choice /C YN /M "Would you like to delete NSP after it compress?"
IF %ERRORLEVEL% EQU 1 goto 'brmauto'
IF %ERRORLEVEL% EQU 2 goto 'bauto'

: 'bauto'
cls
ECHO -AUTO BLOCK COMPRESSION-
for %%i in ("%sin%"\*.nsp) do nsz.exe -B --level 18 --threads %NUMBER_OF_PROCESSORS% -C "%%i" --output "%sin%"\
@Echo Done :)
pause
exit


: 'brmauto'
cls
ECHO -AUTO BLOCK COMPRESSION-
ECHO.
ECHO.
for %%i in ("%sin%"\*.nsp) do nsz.exe -B --level 18 --threads %NUMBER_OF_PROCESSORS% -C "%%i" --output "%sin%"\ --rm-source
@Echo Done :)
Pause
exit



: 'bmanlocation'
cls
ECHO -MANUAL BLOCK COMPRESSION-
ECHO.
ECHO NOTE: The input folder is also the output folder
ECHO.
set /p sin= "Enter Input Location of the NSP Files:"
goto 'binputthread'


: 'binputthread'
cls
ECHO -MANUAL BLOCK COMPRESSION-
@Echo CPU Model:
wmic cpu get name
@Echo Available CPU threads [ %NUMBER_OF_PROCESSORS% ]
set /p threads="Enter number of CPU Threads to use: "
if /I %threads% leq %NUMBER_OF_PROCESSORS% if /I %threads% gtr 0 goto 'binputlevel'
if /I %threads% gtr %NUMBER_OF_PROCESSORS% goto 'binvalidthread'
if /I %threads% leq 0 goto 'binvalidthread'

: 'binvalidthread'
cls
ECHO -MANUAL BLOCK COMPRESSION-
ECHO.
Choice /C YN /M "Input is invalid, would you like to use the default value instead? Default Value:%NUMBER_OF_PROCESSORS%"
IF %ERRORLEVEL% EQU 1 set /A threads=%NUMBER_OF_PROCESSORS%
IF %ERRORLEVEL% EQU 2 goto 'binputthread'

: 'binputlevel'
set /p level="Enter level of compression to use [22 max]: "
if /I %level% gtr 0 if /I %level% leq 22 goto 'bmrm'
if /I %level% leq 0 if /I %level% gtr 22 goto 'binvalidlevel'

: 'binvalidlevel'
cls
ECHO -MANUAL BLOCK COMPRESSION-
ECHO.
Choice /C YN /M "Input is invalid, would you like to use the default value instead? Default Value: 18"
IF %ERRORLEVEL% EQU 1 set /A level=18
IF %ERRORLEVEL% EQU 2 goto 'binputlevel'
goto 'bmrm'

: 'bmrm'
cls
ECHO -BLOCK COMPRESSION-
Choice /C YN /M "Would you like to delete NSP after it compress?"
IF %ERRORLEVEL% EQU 1 goto 'bmanrm'
IF %ERRORLEVEL% EQU 2 goto 'bman'
goto 'bmrm'


: 'bman'
cls
ECHO -MANUAL BLOCK COMPRESSION-
for %%i in ("%sin%"\*.nsp) do nsz.exe -B --level %level% --threads %threads% -C "%%i" --output "%sin%"\
@Echo Done :)
pause
exit

: 'bmanrm'
cls
ECHO -MANUAL BLOCK COMPRESSION-
for %%i in ("%sin%"\*.nsp) do nsz.exe -B --level %level% --threads %threads% -C "%%i" --output "%sin%"\ --rm-source
@Echo Done :)
Pause
exit

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

Feel free to edit the batch command and make improvements. I do not wish to update anymore the thread.

@Echo off
title RYJIN 2.5 NSZ CONVERTER
set "threads="
set "level="
goto 'selection'

: 'selection'
cls
ECHO RYJIN 2.5 NSZ CONVERTER
ECHO by Gnk23 and Rylen101 of Pinoy Gaming Hustlers
ECHO Special thanks to blawar , nicoboss , and taorn for the NSZ compressor codes
ECHO.
ECHO.
ECHO.
ECHO "Select Compression Type To Use:"
ECHO.
ECHO. S - SOLID COMPRESSION
ECHO. B - BLOCK COMPRESSION
ECHO. D - DECOMPRESS NSZ TO NSP
ECHO. SB - CONVERT SOLID NSZ TO BLOCK NSZ
ECHO.
ECHO REMINDER:
ECHO SOLID COMPRESSION simply converts NSP to a smaller size NSZ.
ECHO BLOCK COMPRESSION supports playing compressed games and is currently supported by Tinfoil 6+.
ECHO.
ECHO.
ECHO.INPUT:
set choice=
set /p choice=
IF '%choice%'=='S' goto 'solid'
IF '%choice%'=='s' goto 'solid'
IF '%choice%'=='b' goto 'block'
IF '%choice%'=='B' goto 'block'
IF '%choice%'=='d' goto 'decompress'
IF '%choice%'=='D' goto 'decompress'
IF '%choice%'=='SB' goto 'Solid to BLOCK Converter'
IF '%choice%'=='sb' goto 'Solid to BLOCK Converter'
IF '%choice%'=='Sb' goto 'Solid to BLOCK Converter'
IF '%choice%'=='sB' goto 'Solid to BLOCK Converter'

goto 'selection'

: 'Solid to BLOCK Converter'
cls
ECHO -SOLID to BLOCK NSZ CONVERTER-
ECHO.
ECHO NOTE: The input folder is also the output folder
ECHO.
set /p sin= "Enter Input Location of the NSZ Files:"
goto 'sbrmautoman'

:'sbrmautoman'
cls
ECHO -SOLID to BLOCK NSZ CONVERTER-
ECHO.
ECHO.
Choice /C YN /M "Do you want to use the automatic default settings?"
IF %ERRORLEVEL% EQU 2 goto 'sbinputthread'
IF %ERRORLEVEL% EQU 1 goto 'sbrm'


: 'sbinputthread'
cls
ECHO -MANUAL SOLID to BLOCK NSZ CONVERTER-
ECHO.
@Echo CPU Model:
wmic cpu get name
@Echo Available CPU threads [ %NUMBER_OF_PROCESSORS% ]
set /p threads="Enter number of CPU Threads to use: "
if /I %threads% leq %NUMBER_OF_PROCESSORS% if /I %threads% gtr 0 goto 'sbinputlevel'
if /I %threads% gtr %NUMBER_OF_PROCESSORS% goto 'sbinvalidthread'
if /I %threads% leq 0 goto 'sbinvalidthread'

: 'sbinvalidthread'
cls
ECHO -MANUAL SOLID to BLOCK NSZ CONVERTER-
ECHO.
Choice /C YN /M "Input is invalid, would you like to use the default value instead? Default value:%NUMBER_OF_PROCESSORS%"
IF %ERRORLEVEL% EQU 1 set /A threads=%NUMBER_OF_PROCESSORS%
IF %ERRORLEVEL% EQU 2 goto 'sbinputthread'

: 'sbinputlevel'
ECHO.
set /p level="Enter level of compression to use [22 max]: "
if /I %level% gtr 0 if /I %level% leq 22 goto 'sbmrm'
if /I %level% leq 0 if /I %level% gtr 22 goto 'sbinvalidlevel'

: 'sbinvalidlevel'
cls
ECHO -MANUAL SOLID to BLOCK NSZ CONVERTER-
ECHO.
Choice /C YN /M "Input is invalid, would you like to use the default value instead? Default Value: 18"
IF %ERRORLEVEL% EQU 1 set /A level=18
IF %ERRORLEVEL% EQU 2 goto 'sinputlevel'
goto 'sbmrm'


: 'sbmrm'
cls
ECHO -MANUAL SOLID to BLOCK NSZ CONVERTER-
ECHO.
for %%i in ("%sin%"\*.nsz) do nsz.exe -D "%%i" --output "%sin%"\ --rm-source && for %%i in ("%sin%"\*.nsp) do nsz.exe -B --level %level% --threads %threads% -C "%%i" --output "%sin%"\ --rm-source
@Echo Done :)
Pause
exit


: 'sbrm'
cls
ECHO -AUTO SOLID to BLOCK NSZ CONVERTER-
ECHO.
for %%i in ("%sin%"\*.nsz) do nsz.exe -D "%%i" --output "%sin%"\ --rm-source && for %%i in ("%sin%"\*.nsp) do nsz.exe -B --level 18 --threads %NUMBER_OF_PROCESSORS% -C "%%i" --output "%sin%"\ --rm-source
@Echo Done :)
Pause
exit



: 'decompress'
cls
ECHO -DECOMPRESS NSZ TO NSP-
ECHO.
ECHO NOTE: The input folder is also the output folder
ECHO.
set /p sin= "Enter Input Location of the NSZ Files:"
goto 'drm'


: 'drm'
cls
ECHO -DECOMPRESS NSZ TO NSP-
ECHO.
Choice /C YN /M "Would you like to delete NSZ after it decompress?"
IF %ERRORLEVEL% EQU 1 goto 'dstartrm'
IF %ERRORLEVEL% EQU 2 goto 'dstart'

: 'dstart'
cls
ECHO -DECOMPRESS NSZ TO NSP-
ECHO.
for %%i in ("%sin%"\*.nsz) do nsz.exe -D "%%i" --output "%sin%"\
@Echo Done :)
Pause
exit

: 'dstartrm'
cls
ECHO -DECOMPRESS NSZ TO NSP-
ECHO.
for %%i in ("%sin%"\*.nsz) do nsz.exe -D "%%i" --output "%sin%"\ --rm-source
@Echo Done :)
Pause
exit



: 'solid'
cls
ECHO -SOLID COMPRESSION-
ECHO.
: 'sfirst'
ECHO.
ECHO.
ECHO.
Choice /C YN /M "Do you want to use the automatic default settings?"
IF %ERRORLEVEL% EQU 2 goto 'smanlocation'
IF %ERRORLEVEL% EQU 1 goto 'sautolocation'

: 'sautolocation'
cls
ECHO -AUTO SOLID COMPRESSION-
ECHO.
ECHO NOTE: The input folder is also the output folder
ECHO.
set /p sin= "Enter Input Location of the NSP Files:"
goto 'sarm'

: 'sarm'
cls
ECHO -AUTO SOLID COMPRESSION-
ECHO.
Choice /C YN /M "Would you like to delete NSP after it compress?"
IF %ERRORLEVEL% EQU 1 goto 'srmauto'
IF %ERRORLEVEL% EQU 2 goto 'sauto'

: 'sauto'
cls
ECHO -AUTO SOLID COMPRESSION-
ECHO.
for %%i in ("%sin%"\*.nsp) do nsz.exe --level 18 --threads %NUMBER_OF_PROCESSORS% -C "%%i" --output "%sin%"\
@Echo Done :)
Pause
exit

: 'srmauto'
cls
ECHO -AUTO SOLID COMPRESSION-
ECHO.
for %%i in ("%sin%"\*.nsp) do nsz.exe --level 18 --threads %NUMBER_OF_PROCESSORS% -C "%%i" --output "%sin%"\ --rm-source
@Echo Done :)
Pause
exit

: 'smanlocation'
cls
ECHO -MANUAL SOLID COMPRESSION-
ECHO.
ECHO NOTE: The input folder is also the output folder
ECHO.
set /p sin= "Enter Input Location of the NSP Files:"
goto 'sinputthread'


: 'sinputthread'
cls
ECHO -MANUAL SOLID COMPRESSION-
ECHO.
@Echo CPU Model:
wmic cpu get name
@Echo Available CPU threads [ %NUMBER_OF_PROCESSORS% ]
set /p threads="Enter number of CPU Threads to use: "
if /I %threads% leq %NUMBER_OF_PROCESSORS% if /I %threads% gtr 0 goto 'sinputlevel'
if /I %threads% gtr %NUMBER_OF_PROCESSORS% goto 'sinvalidthread'
if /I %threads% leq 0 goto 'sinvalidthread'

: 'sinvalidthread'
cls
ECHO -MANUAL SOLID COMPRESSION-
ECHO.
Choice /C YN /M "Input is invalid, would you like to use the default value instead? Default value:%NUMBER_OF_PROCESSORS%"
IF %ERRORLEVEL% EQU 1 set /A threads=%NUMBER_OF_PROCESSORS%
IF %ERRORLEVEL% EQU 2 goto 'sinputthread'

: 'sinputlevel'
ECHO.
set /p level="Enter level of compression to use [22 max]: "
if /I %level% gtr 0 if /I %level% leq 22 goto 'smrm'
if /I %level% leq 0 if /I %level% gtr 22 goto 'sinvalidlevel'

: 'sinvalidlevel'
cls
ECHO -MANUAL SOLID COMPRESSION-
ECHO.
Choice /C YN /M "Input is invalid, would you like to use the default value instead? Default Value: 18"
IF %ERRORLEVEL% EQU 1 set /A level=18
IF %ERRORLEVEL% EQU 2 goto 'sinputlevel'
goto 'smrm'

: 'smrm'
cls
ECHO -MANUAL SOLID COMPRESSION-
ECHO.
Choice /C YN /M "Would you like to delete NSP after it compress?"
IF %ERRORLEVEL% EQU 1 goto 'smanrm'
IF %ERRORLEVEL% EQU 2 goto 'sman'
goto 'scustomrun'


: 'sman'
cls
ECHO -SOLID COMPRESSION-
for %%i in ("%sin%"\*.nsp) do nsz.exe --level %level% --threads %threads% -C "%%i" --output "%sin%"\
@Echo Done :)
Pause
exit

: 'smanrm'
cls
ECHO -SOLID COMPRESSION-
for %%i in ("%sin%"\*.nsp) do nsz.exe --level %level% --threads %threads% -C "%%i" --output "%sin%"\ --rm-source
@Echo Done :)
Pause
exit

: 'block'
cls
ECHO -BLOCK COMPRESSION-
ECHO.
: 'bfirst'
ECHO.
ECHO.
Choice /C YN /M "Do you want to use the automatic default settings?"
IF %ERRORLEVEL% EQU 2 goto 'bmanlocation'
IF %ERRORLEVEL% EQU 1 goto 'bautolocation'


: 'bautolocation'
cls
ECHO -AUTO BLOCK COMPRESSION-
ECHO.
ECHO NOTE: The input folder is also the output folder
ECHO.
set /p sin= "Enter Input Location of the NSP Files:"
goto 'barm'

: 'barm'
cls
ECHO -AUTO BLOCK COMPRESSION-
ECHO.
Choice /C YN /M "Would you like to delete NSP after it compress?"
IF %ERRORLEVEL% EQU 1 goto 'brmauto'
IF %ERRORLEVEL% EQU 2 goto 'bauto'

: 'bauto'
cls
ECHO -AUTO BLOCK COMPRESSION-
for %%i in ("%sin%"\*.nsp) do nsz.exe -B --level 18 --threads %NUMBER_OF_PROCESSORS% -C "%%i" --output "%sin%"\
@Echo Done :)
pause
exit


: 'brmauto'
cls
ECHO -AUTO BLOCK COMPRESSION-
ECHO.
ECHO.
for %%i in ("%sin%"\*.nsp) do nsz.exe -B --level 18 --threads %NUMBER_OF_PROCESSORS% -C "%%i" --output "%sin%"\ --rm-source
@Echo Done :)
Pause
exit



: 'bmanlocation'
cls
ECHO -MANUAL BLOCK COMPRESSION-
ECHO.
ECHO NOTE: The input folder is also the output folder
ECHO.
set /p sin= "Enter Input Location of the NSP Files:"
goto 'binputthread'


: 'binputthread'
cls
ECHO -MANUAL BLOCK COMPRESSION-
@Echo CPU Model:
wmic cpu get name
@Echo Available CPU threads [ %NUMBER_OF_PROCESSORS% ]
set /p threads="Enter number of CPU Threads to use: "
if /I %threads% leq %NUMBER_OF_PROCESSORS% if /I %threads% gtr 0 goto 'binputlevel'
if /I %threads% gtr %NUMBER_OF_PROCESSORS% goto 'binvalidthread'
if /I %threads% leq 0 goto 'binvalidthread'

: 'binvalidthread'
cls
ECHO -MANUAL BLOCK COMPRESSION-
ECHO.
Choice /C YN /M "Input is invalid, would you like to use the default value instead? Default Value:%NUMBER_OF_PROCESSORS%"
IF %ERRORLEVEL% EQU 1 set /A threads=%NUMBER_OF_PROCESSORS%
IF %ERRORLEVEL% EQU 2 goto 'binputthread'

: 'binputlevel'
set /p level="Enter level of compression to use [22 max]: "
if /I %level% gtr 0 if /I %level% leq 22 goto 'bmrm'
if /I %level% leq 0 if /I %level% gtr 22 goto 'binvalidlevel'

: 'binvalidlevel'
cls
ECHO -MANUAL BLOCK COMPRESSION-
ECHO.
Choice /C YN /M "Input is invalid, would you like to use the default value instead? Default Value: 18"
IF %ERRORLEVEL% EQU 1 set /A level=18
IF %ERRORLEVEL% EQU 2 goto 'binputlevel'
goto 'bmrm'

: 'bmrm'
cls
ECHO -BLOCK COMPRESSION-
Choice /C YN /M "Would you like to delete NSP after it compress?"
IF %ERRORLEVEL% EQU 1 goto 'bmanrm'
IF %ERRORLEVEL% EQU 2 goto 'bman'
goto 'bmrm'


: 'bman'
cls
ECHO -MANUAL BLOCK COMPRESSION-
for %%i in ("%sin%"\*.nsp) do nsz.exe -B --level %level% --threads %threads% -C "%%i" --output "%sin%"\
@Echo Done :)
pause
exit

: 'bmanrm'
cls
ECHO -MANUAL BLOCK COMPRESSION-
for %%i in ("%sin%"\*.nsp) do nsz.exe -B --level %level% --threads %threads% -C "%%i" --output "%sin%"\ --rm-source
@Echo Done :)
Pause
exit
 

Danker301090

Well-Known Member
Newcomer
Joined
May 8, 2018
Messages
77
Trophies
0
Age
33
XP
510
Country
United Kingdom
@Echo off
title RYJIN 2.5 NSZ CONVERTER
set "threads="
set "level="
goto 'selection'

: 'selection'
cls
ECHO RYJIN 2.5 NSZ CONVERTER
ECHO by Gnk23 and Rylen101 of Pinoy Gaming Hustlers
ECHO Special thanks to blawar , nicoboss , and taorn for the NSZ compressor codes
ECHO.
ECHO.
ECHO.
ECHO "Select Compression Type To Use:"
ECHO.
ECHO. S - SOLID COMPRESSION
ECHO. B - BLOCK COMPRESSION
ECHO. D - DECOMPRESS NSZ TO NSP
ECHO. SB - CONVERT SOLID NSZ TO BLOCK NSZ
ECHO.
ECHO REMINDER:
ECHO SOLID COMPRESSION simply converts NSP to a smaller size NSZ.
ECHO BLOCK COMPRESSION supports playing compressed games and is currently supported by Tinfoil 6+.
ECHO.
ECHO.
ECHO.INPUT:
set choice=
set /p choice=
IF '%choice%'=='S' goto 'solid'
IF '%choice%'=='s' goto 'solid'
IF '%choice%'=='b' goto 'block'
IF '%choice%'=='B' goto 'block'
IF '%choice%'=='d' goto 'decompress'
IF '%choice%'=='D' goto 'decompress'
IF '%choice%'=='SB' goto 'Solid to BLOCK Converter'
IF '%choice%'=='sb' goto 'Solid to BLOCK Converter'
IF '%choice%'=='Sb' goto 'Solid to BLOCK Converter'
IF '%choice%'=='sB' goto 'Solid to BLOCK Converter'

goto 'selection'

: 'Solid to BLOCK Converter'
cls
ECHO -SOLID to BLOCK NSZ CONVERTER-
ECHO.
ECHO NOTE: The input folder is also the output folder
ECHO.
set /p sin= "Enter Input Location of the NSZ Files:"
goto 'sbrmautoman'

:'sbrmautoman'
cls
ECHO -SOLID to BLOCK NSZ CONVERTER-
ECHO.
ECHO.
Choice /C YN /M "Do you want to use the automatic default settings?"
IF %ERRORLEVEL% EQU 2 goto 'sbinputthread'
IF %ERRORLEVEL% EQU 1 goto 'sbrm'


: 'sbinputthread'
cls
ECHO -MANUAL SOLID to BLOCK NSZ CONVERTER-
ECHO.
@Echo CPU Model:
wmic cpu get name
@Echo Available CPU threads [ %NUMBER_OF_PROCESSORS% ]
set /p threads="Enter number of CPU Threads to use: "
if /I %threads% leq %NUMBER_OF_PROCESSORS% if /I %threads% gtr 0 goto 'sbinputlevel'
if /I %threads% gtr %NUMBER_OF_PROCESSORS% goto 'sbinvalidthread'
if /I %threads% leq 0 goto 'sbinvalidthread'

: 'sbinvalidthread'
cls
ECHO -MANUAL SOLID to BLOCK NSZ CONVERTER-
ECHO.
Choice /C YN /M "Input is invalid, would you like to use the default value instead? Default value:%NUMBER_OF_PROCESSORS%"
IF %ERRORLEVEL% EQU 1 set /A threads=%NUMBER_OF_PROCESSORS%
IF %ERRORLEVEL% EQU 2 goto 'sbinputthread'

: 'sbinputlevel'
ECHO.
set /p level="Enter level of compression to use [22 max]: "
if /I %level% gtr 0 if /I %level% leq 22 goto 'sbmrm'
if /I %level% leq 0 if /I %level% gtr 22 goto 'sbinvalidlevel'

: 'sbinvalidlevel'
cls
ECHO -MANUAL SOLID to BLOCK NSZ CONVERTER-
ECHO.
Choice /C YN /M "Input is invalid, would you like to use the default value instead? Default Value: 18"
IF %ERRORLEVEL% EQU 1 set /A level=18
IF %ERRORLEVEL% EQU 2 goto 'sinputlevel'
goto 'sbmrm'


: 'sbmrm'
cls
ECHO -MANUAL SOLID to BLOCK NSZ CONVERTER-
ECHO.
for %%i in ("%sin%"\*.nsz) do nsz.exe -D "%%i" --output "%sin%"\ --rm-source && for %%i in ("%sin%"\*.nsp) do nsz.exe -B --level %level% --threads %threads% -C "%%i" --output "%sin%"\ --rm-source
@Echo Done :)
Pause
exit


: 'sbrm'
cls
ECHO -AUTO SOLID to BLOCK NSZ CONVERTER-
ECHO.
for %%i in ("%sin%"\*.nsz) do nsz.exe -D "%%i" --output "%sin%"\ --rm-source && for %%i in ("%sin%"\*.nsp) do nsz.exe -B --level 18 --threads %NUMBER_OF_PROCESSORS% -C "%%i" --output "%sin%"\ --rm-source
@Echo Done :)
Pause
exit



: 'decompress'
cls
ECHO -DECOMPRESS NSZ TO NSP-
ECHO.
ECHO NOTE: The input folder is also the output folder
ECHO.
set /p sin= "Enter Input Location of the NSZ Files:"
goto 'drm'


: 'drm'
cls
ECHO -DECOMPRESS NSZ TO NSP-
ECHO.
Choice /C YN /M "Would you like to delete NSZ after it decompress?"
IF %ERRORLEVEL% EQU 1 goto 'dstartrm'
IF %ERRORLEVEL% EQU 2 goto 'dstart'

: 'dstart'
cls
ECHO -DECOMPRESS NSZ TO NSP-
ECHO.
for %%i in ("%sin%"\*.nsz) do nsz.exe -D "%%i" --output "%sin%"\
@Echo Done :)
Pause
exit

: 'dstartrm'
cls
ECHO -DECOMPRESS NSZ TO NSP-
ECHO.
for %%i in ("%sin%"\*.nsz) do nsz.exe -D "%%i" --output "%sin%"\ --rm-source
@Echo Done :)
Pause
exit



: 'solid'
cls
ECHO -SOLID COMPRESSION-
ECHO.
: 'sfirst'
ECHO.
ECHO.
ECHO.
Choice /C YN /M "Do you want to use the automatic default settings?"
IF %ERRORLEVEL% EQU 2 goto 'smanlocation'
IF %ERRORLEVEL% EQU 1 goto 'sautolocation'

: 'sautolocation'
cls
ECHO -AUTO SOLID COMPRESSION-
ECHO.
ECHO NOTE: The input folder is also the output folder
ECHO.
set /p sin= "Enter Input Location of the NSP Files:"
goto 'sarm'

: 'sarm'
cls
ECHO -AUTO SOLID COMPRESSION-
ECHO.
Choice /C YN /M "Would you like to delete NSP after it compress?"
IF %ERRORLEVEL% EQU 1 goto 'srmauto'
IF %ERRORLEVEL% EQU 2 goto 'sauto'

: 'sauto'
cls
ECHO -AUTO SOLID COMPRESSION-
ECHO.
for %%i in ("%sin%"\*.nsp) do nsz.exe --level 18 --threads %NUMBER_OF_PROCESSORS% -C "%%i" --output "%sin%"\
@Echo Done :)
Pause
exit

: 'srmauto'
cls
ECHO -AUTO SOLID COMPRESSION-
ECHO.
for %%i in ("%sin%"\*.nsp) do nsz.exe --level 18 --threads %NUMBER_OF_PROCESSORS% -C "%%i" --output "%sin%"\ --rm-source
@Echo Done :)
Pause
exit

: 'smanlocation'
cls
ECHO -MANUAL SOLID COMPRESSION-
ECHO.
ECHO NOTE: The input folder is also the output folder
ECHO.
set /p sin= "Enter Input Location of the NSP Files:"
goto 'sinputthread'


: 'sinputthread'
cls
ECHO -MANUAL SOLID COMPRESSION-
ECHO.
@Echo CPU Model:
wmic cpu get name
@Echo Available CPU threads [ %NUMBER_OF_PROCESSORS% ]
set /p threads="Enter number of CPU Threads to use: "
if /I %threads% leq %NUMBER_OF_PROCESSORS% if /I %threads% gtr 0 goto 'sinputlevel'
if /I %threads% gtr %NUMBER_OF_PROCESSORS% goto 'sinvalidthread'
if /I %threads% leq 0 goto 'sinvalidthread'

: 'sinvalidthread'
cls
ECHO -MANUAL SOLID COMPRESSION-
ECHO.
Choice /C YN /M "Input is invalid, would you like to use the default value instead? Default value:%NUMBER_OF_PROCESSORS%"
IF %ERRORLEVEL% EQU 1 set /A threads=%NUMBER_OF_PROCESSORS%
IF %ERRORLEVEL% EQU 2 goto 'sinputthread'

: 'sinputlevel'
ECHO.
set /p level="Enter level of compression to use [22 max]: "
if /I %level% gtr 0 if /I %level% leq 22 goto 'smrm'
if /I %level% leq 0 if /I %level% gtr 22 goto 'sinvalidlevel'

: 'sinvalidlevel'
cls
ECHO -MANUAL SOLID COMPRESSION-
ECHO.
Choice /C YN /M "Input is invalid, would you like to use the default value instead? Default Value: 18"
IF %ERRORLEVEL% EQU 1 set /A level=18
IF %ERRORLEVEL% EQU 2 goto 'sinputlevel'
goto 'smrm'

: 'smrm'
cls
ECHO -MANUAL SOLID COMPRESSION-
ECHO.
Choice /C YN /M "Would you like to delete NSP after it compress?"
IF %ERRORLEVEL% EQU 1 goto 'smanrm'
IF %ERRORLEVEL% EQU 2 goto 'sman'
goto 'scustomrun'


: 'sman'
cls
ECHO -SOLID COMPRESSION-
for %%i in ("%sin%"\*.nsp) do nsz.exe --level %level% --threads %threads% -C "%%i" --output "%sin%"\
@Echo Done :)
Pause
exit

: 'smanrm'
cls
ECHO -SOLID COMPRESSION-
for %%i in ("%sin%"\*.nsp) do nsz.exe --level %level% --threads %threads% -C "%%i" --output "%sin%"\ --rm-source
@Echo Done :)
Pause
exit

: 'block'
cls
ECHO -BLOCK COMPRESSION-
ECHO.
: 'bfirst'
ECHO.
ECHO.
Choice /C YN /M "Do you want to use the automatic default settings?"
IF %ERRORLEVEL% EQU 2 goto 'bmanlocation'
IF %ERRORLEVEL% EQU 1 goto 'bautolocation'


: 'bautolocation'
cls
ECHO -AUTO BLOCK COMPRESSION-
ECHO.
ECHO NOTE: The input folder is also the output folder
ECHO.
set /p sin= "Enter Input Location of the NSP Files:"
goto 'barm'

: 'barm'
cls
ECHO -AUTO BLOCK COMPRESSION-
ECHO.
Choice /C YN /M "Would you like to delete NSP after it compress?"
IF %ERRORLEVEL% EQU 1 goto 'brmauto'
IF %ERRORLEVEL% EQU 2 goto 'bauto'

: 'bauto'
cls
ECHO -AUTO BLOCK COMPRESSION-
for %%i in ("%sin%"\*.nsp) do nsz.exe -B --level 18 --threads %NUMBER_OF_PROCESSORS% -C "%%i" --output "%sin%"\
@Echo Done :)
pause
exit


: 'brmauto'
cls
ECHO -AUTO BLOCK COMPRESSION-
ECHO.
ECHO.
for %%i in ("%sin%"\*.nsp) do nsz.exe -B --level 18 --threads %NUMBER_OF_PROCESSORS% -C "%%i" --output "%sin%"\ --rm-source
@Echo Done :)
Pause
exit



: 'bmanlocation'
cls
ECHO -MANUAL BLOCK COMPRESSION-
ECHO.
ECHO NOTE: The input folder is also the output folder
ECHO.
set /p sin= "Enter Input Location of the NSP Files:"
goto 'binputthread'


: 'binputthread'
cls
ECHO -MANUAL BLOCK COMPRESSION-
@Echo CPU Model:
wmic cpu get name
@Echo Available CPU threads [ %NUMBER_OF_PROCESSORS% ]
set /p threads="Enter number of CPU Threads to use: "
if /I %threads% leq %NUMBER_OF_PROCESSORS% if /I %threads% gtr 0 goto 'binputlevel'
if /I %threads% gtr %NUMBER_OF_PROCESSORS% goto 'binvalidthread'
if /I %threads% leq 0 goto 'binvalidthread'

: 'binvalidthread'
cls
ECHO -MANUAL BLOCK COMPRESSION-
ECHO.
Choice /C YN /M "Input is invalid, would you like to use the default value instead? Default Value:%NUMBER_OF_PROCESSORS%"
IF %ERRORLEVEL% EQU 1 set /A threads=%NUMBER_OF_PROCESSORS%
IF %ERRORLEVEL% EQU 2 goto 'binputthread'

: 'binputlevel'
set /p level="Enter level of compression to use [22 max]: "
if /I %level% gtr 0 if /I %level% leq 22 goto 'bmrm'
if /I %level% leq 0 if /I %level% gtr 22 goto 'binvalidlevel'

: 'binvalidlevel'
cls
ECHO -MANUAL BLOCK COMPRESSION-
ECHO.
Choice /C YN /M "Input is invalid, would you like to use the default value instead? Default Value: 18"
IF %ERRORLEVEL% EQU 1 set /A level=18
IF %ERRORLEVEL% EQU 2 goto 'binputlevel'
goto 'bmrm'

: 'bmrm'
cls
ECHO -BLOCK COMPRESSION-
Choice /C YN /M "Would you like to delete NSP after it compress?"
IF %ERRORLEVEL% EQU 1 goto 'bmanrm'
IF %ERRORLEVEL% EQU 2 goto 'bman'
goto 'bmrm'


: 'bman'
cls
ECHO -MANUAL BLOCK COMPRESSION-
for %%i in ("%sin%"\*.nsp) do nsz.exe -B --level %level% --threads %threads% -C "%%i" --output "%sin%"\
@Echo Done :)
pause
exit

: 'bmanrm'
cls
ECHO -MANUAL BLOCK COMPRESSION-
for %%i in ("%sin%"\*.nsp) do nsz.exe -B --level %level% --threads %threads% -C "%%i" --output "%sin%"\ --rm-source
@Echo Done :)
Pause
exit

— Posts automatically merged - Please don't double post! —

Feel free to edit the batch command and make improvements. I do not wish to update anymore the thread.

@Echo off
title RYJIN 2.5 NSZ CONVERTER
set "threads="
set "level="
goto 'selection'

: 'selection'
cls
ECHO RYJIN 2.5 NSZ CONVERTER
ECHO by Gnk23 and Rylen101 of Pinoy Gaming Hustlers
ECHO Special thanks to blawar , nicoboss , and taorn for the NSZ compressor codes
ECHO.
ECHO.
ECHO.
ECHO "Select Compression Type To Use:"
ECHO.
ECHO. S - SOLID COMPRESSION
ECHO. B - BLOCK COMPRESSION
ECHO. D - DECOMPRESS NSZ TO NSP
ECHO. SB - CONVERT SOLID NSZ TO BLOCK NSZ
ECHO.
ECHO REMINDER:
ECHO SOLID COMPRESSION simply converts NSP to a smaller size NSZ.
ECHO BLOCK COMPRESSION supports playing compressed games and is currently supported by Tinfoil 6+.
ECHO.
ECHO.
ECHO.INPUT:
set choice=
set /p choice=
IF '%choice%'=='S' goto 'solid'
IF '%choice%'=='s' goto 'solid'
IF '%choice%'=='b' goto 'block'
IF '%choice%'=='B' goto 'block'
IF '%choice%'=='d' goto 'decompress'
IF '%choice%'=='D' goto 'decompress'
IF '%choice%'=='SB' goto 'Solid to BLOCK Converter'
IF '%choice%'=='sb' goto 'Solid to BLOCK Converter'
IF '%choice%'=='Sb' goto 'Solid to BLOCK Converter'
IF '%choice%'=='sB' goto 'Solid to BLOCK Converter'

goto 'selection'

: 'Solid to BLOCK Converter'
cls
ECHO -SOLID to BLOCK NSZ CONVERTER-
ECHO.
ECHO NOTE: The input folder is also the output folder
ECHO.
set /p sin= "Enter Input Location of the NSZ Files:"
goto 'sbrmautoman'

:'sbrmautoman'
cls
ECHO -SOLID to BLOCK NSZ CONVERTER-
ECHO.
ECHO.
Choice /C YN /M "Do you want to use the automatic default settings?"
IF %ERRORLEVEL% EQU 2 goto 'sbinputthread'
IF %ERRORLEVEL% EQU 1 goto 'sbrm'


: 'sbinputthread'
cls
ECHO -MANUAL SOLID to BLOCK NSZ CONVERTER-
ECHO.
@Echo CPU Model:
wmic cpu get name
@Echo Available CPU threads [ %NUMBER_OF_PROCESSORS% ]
set /p threads="Enter number of CPU Threads to use: "
if /I %threads% leq %NUMBER_OF_PROCESSORS% if /I %threads% gtr 0 goto 'sbinputlevel'
if /I %threads% gtr %NUMBER_OF_PROCESSORS% goto 'sbinvalidthread'
if /I %threads% leq 0 goto 'sbinvalidthread'

: 'sbinvalidthread'
cls
ECHO -MANUAL SOLID to BLOCK NSZ CONVERTER-
ECHO.
Choice /C YN /M "Input is invalid, would you like to use the default value instead? Default value:%NUMBER_OF_PROCESSORS%"
IF %ERRORLEVEL% EQU 1 set /A threads=%NUMBER_OF_PROCESSORS%
IF %ERRORLEVEL% EQU 2 goto 'sbinputthread'

: 'sbinputlevel'
ECHO.
set /p level="Enter level of compression to use [22 max]: "
if /I %level% gtr 0 if /I %level% leq 22 goto 'sbmrm'
if /I %level% leq 0 if /I %level% gtr 22 goto 'sbinvalidlevel'

: 'sbinvalidlevel'
cls
ECHO -MANUAL SOLID to BLOCK NSZ CONVERTER-
ECHO.
Choice /C YN /M "Input is invalid, would you like to use the default value instead? Default Value: 18"
IF %ERRORLEVEL% EQU 1 set /A level=18
IF %ERRORLEVEL% EQU 2 goto 'sinputlevel'
goto 'sbmrm'


: 'sbmrm'
cls
ECHO -MANUAL SOLID to BLOCK NSZ CONVERTER-
ECHO.
for %%i in ("%sin%"\*.nsz) do nsz.exe -D "%%i" --output "%sin%"\ --rm-source && for %%i in ("%sin%"\*.nsp) do nsz.exe -B --level %level% --threads %threads% -C "%%i" --output "%sin%"\ --rm-source
@Echo Done :)
Pause
exit


: 'sbrm'
cls
ECHO -AUTO SOLID to BLOCK NSZ CONVERTER-
ECHO.
for %%i in ("%sin%"\*.nsz) do nsz.exe -D "%%i" --output "%sin%"\ --rm-source && for %%i in ("%sin%"\*.nsp) do nsz.exe -B --level 18 --threads %NUMBER_OF_PROCESSORS% -C "%%i" --output "%sin%"\ --rm-source
@Echo Done :)
Pause
exit



: 'decompress'
cls
ECHO -DECOMPRESS NSZ TO NSP-
ECHO.
ECHO NOTE: The input folder is also the output folder
ECHO.
set /p sin= "Enter Input Location of the NSZ Files:"
goto 'drm'


: 'drm'
cls
ECHO -DECOMPRESS NSZ TO NSP-
ECHO.
Choice /C YN /M "Would you like to delete NSZ after it decompress?"
IF %ERRORLEVEL% EQU 1 goto 'dstartrm'
IF %ERRORLEVEL% EQU 2 goto 'dstart'

: 'dstart'
cls
ECHO -DECOMPRESS NSZ TO NSP-
ECHO.
for %%i in ("%sin%"\*.nsz) do nsz.exe -D "%%i" --output "%sin%"\
@Echo Done :)
Pause
exit

: 'dstartrm'
cls
ECHO -DECOMPRESS NSZ TO NSP-
ECHO.
for %%i in ("%sin%"\*.nsz) do nsz.exe -D "%%i" --output "%sin%"\ --rm-source
@Echo Done :)
Pause
exit



: 'solid'
cls
ECHO -SOLID COMPRESSION-
ECHO.
: 'sfirst'
ECHO.
ECHO.
ECHO.
Choice /C YN /M "Do you want to use the automatic default settings?"
IF %ERRORLEVEL% EQU 2 goto 'smanlocation'
IF %ERRORLEVEL% EQU 1 goto 'sautolocation'

: 'sautolocation'
cls
ECHO -AUTO SOLID COMPRESSION-
ECHO.
ECHO NOTE: The input folder is also the output folder
ECHO.
set /p sin= "Enter Input Location of the NSP Files:"
goto 'sarm'

: 'sarm'
cls
ECHO -AUTO SOLID COMPRESSION-
ECHO.
Choice /C YN /M "Would you like to delete NSP after it compress?"
IF %ERRORLEVEL% EQU 1 goto 'srmauto'
IF %ERRORLEVEL% EQU 2 goto 'sauto'

: 'sauto'
cls
ECHO -AUTO SOLID COMPRESSION-
ECHO.
for %%i in ("%sin%"\*.nsp) do nsz.exe --level 18 --threads %NUMBER_OF_PROCESSORS% -C "%%i" --output "%sin%"\
@Echo Done :)
Pause
exit

: 'srmauto'
cls
ECHO -AUTO SOLID COMPRESSION-
ECHO.
for %%i in ("%sin%"\*.nsp) do nsz.exe --level 18 --threads %NUMBER_OF_PROCESSORS% -C "%%i" --output "%sin%"\ --rm-source
@Echo Done :)
Pause
exit

: 'smanlocation'
cls
ECHO -MANUAL SOLID COMPRESSION-
ECHO.
ECHO NOTE: The input folder is also the output folder
ECHO.
set /p sin= "Enter Input Location of the NSP Files:"
goto 'sinputthread'


: 'sinputthread'
cls
ECHO -MANUAL SOLID COMPRESSION-
ECHO.
@Echo CPU Model:
wmic cpu get name
@Echo Available CPU threads [ %NUMBER_OF_PROCESSORS% ]
set /p threads="Enter number of CPU Threads to use: "
if /I %threads% leq %NUMBER_OF_PROCESSORS% if /I %threads% gtr 0 goto 'sinputlevel'
if /I %threads% gtr %NUMBER_OF_PROCESSORS% goto 'sinvalidthread'
if /I %threads% leq 0 goto 'sinvalidthread'

: 'sinvalidthread'
cls
ECHO -MANUAL SOLID COMPRESSION-
ECHO.
Choice /C YN /M "Input is invalid, would you like to use the default value instead? Default value:%NUMBER_OF_PROCESSORS%"
IF %ERRORLEVEL% EQU 1 set /A threads=%NUMBER_OF_PROCESSORS%
IF %ERRORLEVEL% EQU 2 goto 'sinputthread'

: 'sinputlevel'
ECHO.
set /p level="Enter level of compression to use [22 max]: "
if /I %level% gtr 0 if /I %level% leq 22 goto 'smrm'
if /I %level% leq 0 if /I %level% gtr 22 goto 'sinvalidlevel'

: 'sinvalidlevel'
cls
ECHO -MANUAL SOLID COMPRESSION-
ECHO.
Choice /C YN /M "Input is invalid, would you like to use the default value instead? Default Value: 18"
IF %ERRORLEVEL% EQU 1 set /A level=18
IF %ERRORLEVEL% EQU 2 goto 'sinputlevel'
goto 'smrm'

: 'smrm'
cls
ECHO -MANUAL SOLID COMPRESSION-
ECHO.
Choice /C YN /M "Would you like to delete NSP after it compress?"
IF %ERRORLEVEL% EQU 1 goto 'smanrm'
IF %ERRORLEVEL% EQU 2 goto 'sman'
goto 'scustomrun'


: 'sman'
cls
ECHO -SOLID COMPRESSION-
for %%i in ("%sin%"\*.nsp) do nsz.exe --level %level% --threads %threads% -C "%%i" --output "%sin%"\
@Echo Done :)
Pause
exit

: 'smanrm'
cls
ECHO -SOLID COMPRESSION-
for %%i in ("%sin%"\*.nsp) do nsz.exe --level %level% --threads %threads% -C "%%i" --output "%sin%"\ --rm-source
@Echo Done :)
Pause
exit

: 'block'
cls
ECHO -BLOCK COMPRESSION-
ECHO.
: 'bfirst'
ECHO.
ECHO.
Choice /C YN /M "Do you want to use the automatic default settings?"
IF %ERRORLEVEL% EQU 2 goto 'bmanlocation'
IF %ERRORLEVEL% EQU 1 goto 'bautolocation'


: 'bautolocation'
cls
ECHO -AUTO BLOCK COMPRESSION-
ECHO.
ECHO NOTE: The input folder is also the output folder
ECHO.
set /p sin= "Enter Input Location of the NSP Files:"
goto 'barm'

: 'barm'
cls
ECHO -AUTO BLOCK COMPRESSION-
ECHO.
Choice /C YN /M "Would you like to delete NSP after it compress?"
IF %ERRORLEVEL% EQU 1 goto 'brmauto'
IF %ERRORLEVEL% EQU 2 goto 'bauto'

: 'bauto'
cls
ECHO -AUTO BLOCK COMPRESSION-
for %%i in ("%sin%"\*.nsp) do nsz.exe -B --level 18 --threads %NUMBER_OF_PROCESSORS% -C "%%i" --output "%sin%"\
@Echo Done :)
pause
exit


: 'brmauto'
cls
ECHO -AUTO BLOCK COMPRESSION-
ECHO.
ECHO.
for %%i in ("%sin%"\*.nsp) do nsz.exe -B --level 18 --threads %NUMBER_OF_PROCESSORS% -C "%%i" --output "%sin%"\ --rm-source
@Echo Done :)
Pause
exit



: 'bmanlocation'
cls
ECHO -MANUAL BLOCK COMPRESSION-
ECHO.
ECHO NOTE: The input folder is also the output folder
ECHO.
set /p sin= "Enter Input Location of the NSP Files:"
goto 'binputthread'


: 'binputthread'
cls
ECHO -MANUAL BLOCK COMPRESSION-
@Echo CPU Model:
wmic cpu get name
@Echo Available CPU threads [ %NUMBER_OF_PROCESSORS% ]
set /p threads="Enter number of CPU Threads to use: "
if /I %threads% leq %NUMBER_OF_PROCESSORS% if /I %threads% gtr 0 goto 'binputlevel'
if /I %threads% gtr %NUMBER_OF_PROCESSORS% goto 'binvalidthread'
if /I %threads% leq 0 goto 'binvalidthread'

: 'binvalidthread'
cls
ECHO -MANUAL BLOCK COMPRESSION-
ECHO.
Choice /C YN /M "Input is invalid, would you like to use the default value instead? Default Value:%NUMBER_OF_PROCESSORS%"
IF %ERRORLEVEL% EQU 1 set /A threads=%NUMBER_OF_PROCESSORS%
IF %ERRORLEVEL% EQU 2 goto 'binputthread'

: 'binputlevel'
set /p level="Enter level of compression to use [22 max]: "
if /I %level% gtr 0 if /I %level% leq 22 goto 'bmrm'
if /I %level% leq 0 if /I %level% gtr 22 goto 'binvalidlevel'

: 'binvalidlevel'
cls
ECHO -MANUAL BLOCK COMPRESSION-
ECHO.
Choice /C YN /M "Input is invalid, would you like to use the default value instead? Default Value: 18"
IF %ERRORLEVEL% EQU 1 set /A level=18
IF %ERRORLEVEL% EQU 2 goto 'binputlevel'
goto 'bmrm'

: 'bmrm'
cls
ECHO -BLOCK COMPRESSION-
Choice /C YN /M "Would you like to delete NSP after it compress?"
IF %ERRORLEVEL% EQU 1 goto 'bmanrm'
IF %ERRORLEVEL% EQU 2 goto 'bman'
goto 'bmrm'


: 'bman'
cls
ECHO -MANUAL BLOCK COMPRESSION-
for %%i in ("%sin%"\*.nsp) do nsz.exe -B --level %level% --threads %threads% -C "%%i" --output "%sin%"\
@Echo Done :)
pause
exit

: 'bmanrm'
cls
ECHO -MANUAL BLOCK COMPRESSION-
for %%i in ("%sin%"\*.nsp) do nsz.exe -B --level %level% --threads %threads% -C "%%i" --output "%sin%"\ --rm-source
@Echo Done :)
Pause
exit

Which file bat do you adapt with this code?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • The Real Jdbye @ The Real Jdbye:
    but that's a long shot
  • The Real Jdbye @ The Real Jdbye:
    i think only the red mario kart edition phat was v5
  • BigOnYa @ BigOnYa:
    A woman with no arms and no legs was sitting on a beach. A man comes along and the woman says, "I've never been hugged before." So the man feels bad and hugs her. She says "Well i've also never been kissed before." So he gives her a kiss on the cheek. She says "Well I've also never been fucked before." So the man picks her up, and throws her in the ocean and says "Now you're fucked."
    +2
  • BakerMan @ BakerMan:
    lmao
  • BakerMan @ BakerMan:
    anyways, we need to re-normalize physical media

    if i didn't want my games to be permanent, then i'd rent them
    +1
  • BigOnYa @ BigOnYa:
    Agreed, that why I try to buy all my games on disc, Xbox anyways. Switch games (which I pirate tbh) don't matter much, I stay offline 24/7 anyways.
    +1
  • AncientBoi @ AncientBoi:
    I don't pirate them, I Use Them :mellow:. Like I do @BigOnYa 's couch :tpi::evil::rofl2:
    +1
  • cearp @ cearp:
    @BakerMan - you can still "own" digital media, arguably easier and better than physical since you can make copies and backups, as much as you like.

    The issue is DRM
    +1
  • cearp @ cearp:
    You can buy drm free games / music / ebooks, and if you keep backups of your data (like documents and family photos etc), then you shouldn't lose the game. but with a disk, your toddler could put it in the toaster and there goes your $60

    :rofl2:
  • cearp @ cearp:
    still, I agree physical media is nice to have. just pointing out the issue is drm
    +1
  • rqkaiju2 @ rqkaiju2:
    i like physical media because it actually feels like you own it. thats why i plan on burning music to cds
  • cearp @ cearp:
    It's nice to not have to have a lot of physical things though, saves space
    +1
  • AncientBoi @ AncientBoi:
    Nor clothes 🤮 . Saves on time, soap, water and money having to wash them. :D
  • SylverReZ @ SylverReZ:
    @rqkaiju2, Physical media is a great source for archiving your data, none of that cloud storage shiz.
    +1
  • AncientBoi @ AncientBoi:
    [squeezes @SylverReZ onto a physical media, then archives you in my old stuff box] :tpi::rofl2::tpi:
    +1
  • BakerMan @ BakerMan:
    guys, should i change my pfp to one of these or keep it the same?
    iu

    iu

    (i guess i could change it to one of my other pfps too, but i just want to see what you guys think first)
  • SylverReZ @ SylverReZ:
    @BakerMan, Up to you.
  • BakerMan @ BakerMan:
    smug sonic time lmao
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Chronic The HempHog
  • DilllyDabDharma @ DilllyDabDharma:
    I'm new! Hi!
    DilllyDabDharma @ DilllyDabDharma: I'm new! Hi!