Just updated my NUSGrabber batch file.
New Features:
- Automatically grab game name from the tik database (must be predownloaded from that iso site and unzipped to \tickets)
- Automatically download updates for each game input (it will ask for each title if you wish to do so)
Previous Features:
- Batch download games using NUSGrabber.exe
- Automatically finds the correct title.tik from the \tickets folder and move it into the game install folder (must be predownloaded from that iso site)
- Automatically organizes downloads for use with wupinstaller mod y. Simply copy the install from the computer to the SD root to batch install games (only works with wupinstaller mod y)
Code:
@echo off
cd %~dp0
set nusdir=%~dp0
del download.bat
:setgamelist
SETLOCAL
cls
echo Type -1 to begin downloads, or add more below.
set /P id="Enter game ID: "
if "%id%" == "-1" goto end
set /p update="Download game updates? (y,n): "
for /d /r "%NusDir%\tickets" %%a in (*) do if /i %%~nxa==%id% set "tikLocation=%%a"
for %%a in ("%tikLocation%\..") do set "game=%%~na"
If not "%tikLocation%"=="" (
echo echo ----------------------------------------------- >> download.bat
echo echo Downloading %game% - %id% >> download.bat
echo echo ----------------------------------------------- >> download.bat
echo nusgrabber.exe %id% >> download.bat
echo echo ----------------------------------------------- >> download.bat
echo echo Grabbing Ticket File >> download.bat
echo echo ----------------------------------------------- >> download.bat
echo copy "%TikLocation%\title.tik" "%id%" >> download.bat
) else (
echo Error: ticket not found. Skipping ticket transfer.
pause
cls
set /P game="Enter game name: "
echo echo ----------------------------------------------- >> download.bat
echo echo Downloading %game% - %id% >> download.bat
echo echo ----------------------------------------------- >> download.bat
echo nusgrabber.exe %id% >> download.bat
)
echo echo ----------------------------------------------- >> download.bat
echo echo Renaming Folder %id% >> download.bat
echo echo ----------------------------------------------- >> download.bat
echo MOVE %id% "install\%game%" >> download.bat
set id=%id:00050000=0005000E%
set game=%game% Update
if /i %update:~0,1%==y (
echo echo ----------------------------------------------- >> download.bat
echo echo Downloading %game% - %id% >> download.bat
echo echo ----------------------------------------------- >> download.bat
echo nusgrabber.exe %id% >> download.bat
echo echo ----------------------------------------------- >> download.bat
echo echo Renaming Folder %id% >> download.bat
echo echo ----------------------------------------------- >> download.bat
echo MOVE %id% "install\%game%" >> download.bat
)
ENDLOCAL
goto setgamelist
:end
echo echo ----------------------------------------------- >> download.bat
echo echo Downloads Completed! >> download.bat
echo echo ----------------------------------------------- >> download.bat
echo pause >> download.bat
echo del download.bat >> download.bat
call download.bat
Simply download SetDownloads.bat from below and place into the same folder you have NUSGrabber.exe
I may modify it to also support JNUSTool in the future
https://mega.nz/#!5Vl3RAqT!ZlDDaVQuHJ18sSJjqarZqHZb96WL1Qefe-w0bsrsWAI
Edit: I have not fully tested this program, but with the proper tik database from that iso site in the tickets folder, I was able to get shovel knight and it's update to batch download and install.
If you encounter any bugs with this let me know