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,248
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,248
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
  • Sicklyboy @ Sicklyboy:
    I'm planning to start building it back up though. Plus, Usenet automation around music downloading has gotten so much better since then
  • Psionic Roshambo @ Psionic Roshambo:
    I used to use high end headphones and speakers JBL back when they made good speakers lol X-Fi Fatality edition sound card on PCI with XP back when Windows had good sound....
  • SylverReZ @ SylverReZ:
    @Sicklyboy, Using a Fiio DAC and Betron headphones.
    +1
  • Sicklyboy @ Sicklyboy:
    I use AKG K7XX headphones for daily use, but Meze 99 Classics when I want to *enjoy* the music
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I mean built in sound on mobo's has gotten way better but still XP handled sound better and X-Fi was still better than onboard audio even to this day
  • Psionic Roshambo @ Psionic Roshambo:
    Hell not sure what was going on but for like a few weeks MP3's sounded muffled, some driver or Windows update fixed it. Thank god lol
  • Sicklyboy @ Sicklyboy:
    Oh boy Massdrop has $1100 IEMs. Want, but not at that price lmao. https://drop.com/buy/campfire-audio-andromeda-emerald-sea-iem
  • Sicklyboy @ Sicklyboy:
    I'd sooner buy the Meze 109 Pro if I was dropping that much on headphones. I don't even like buds/IEMs
  • Sicklyboy @ Sicklyboy:
    I got the Google Pixel Pro buds, they're good enough for when I need portable audio. And some really cheap IEMs that Dankpods recommends, I think the KZ ZSN Pro
    +1
  • K3Nv2 @ K3Nv2:
    I'd stick with cheapo Chinese $10 ones quality is actually becoming on pair with name brand since name Brand usually quads the price up anyway loose one bud that's another $200
  • Sicklyboy @ Sicklyboy:
    My Pixel Pro buds shit the bed a month or two ago. My wireless charger (which they do support Qi charging) absolutely COOKED them. Caused some problem that caused the case to heat up to 180F+
  • Sicklyboy @ Sicklyboy:
    They were like 9 months out of warranty but I hit up Google support anyway and told them how hot they were getting and they replaced them with new ones because they wanted these for failure analysis lol
  • Psionic Roshambo @ Psionic Roshambo:
    lol wireless charging
  • K3Nv2 @ K3Nv2:
    Yeah that's why I can't bring myself to even spend $100 on wireless earbuds
  • Psionic Roshambo @ Psionic Roshambo:
    I think it's a cool idea but damn
  • Sicklyboy @ Sicklyboy:
    Apparently the case has a problem with >15W wireless chargers. Google design fault, that one.
  • K3Nv2 @ K3Nv2:
    I could live with wireless charging if the damn standard case doesn't block connection
  • Xdqwerty @ Xdqwerty:
    how is wireless charging possible?
  • K3Nv2 @ K3Nv2:
    Dbz said everyone has raging energy senses
    +1
  • cearp @ cearp:
    you mean generally, how does the concept work?
    +1
  • K3Nv2 @ K3Nv2:
    Copper conducting electricity or something
  • Sicklyboy @ Sicklyboy:
    @Xdqwerty, power through a coil of wire causes an electromagnetic field to be generated. Another coil of wire can be set up to harness the power from that electromagnetic field and turn it into usable energy for charging a device
    Xdqwerty @ Xdqwerty: @Sicklyboy, 1) ohkay 2) https://www.youtube.com/watch?v=n5K3jc6Q3HU