Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- if not exist "%~dp0tobeinstalled" md "%~dp0tobeinstalled"
- if not exist "%~dp0Update\version.ext" echo 0.34>"%~dp0Update\version.txt"
- if exist set /p ver=<"%~dp0Update\version.txt"
- if not exist "C:\Program Files (x86)\Microsoft XNA" goto XNA
- if exist "C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley" set d=C& goto start
- if exist "D:\Program Files (x86)\Steam\steamapps\common\Stardew Valley" set d=D& goto start
- if exist "E:\Program Files (x86)\Steam\steamapps\common\Stardew Valley" set d=E& goto start
- echo couldnt find Game, are you sure it installed?
- :XNA
- echo Warning you dont seem to have installed the XNA Framework this is a common but with Steam
- echoe.
- if exist "%d%:\Program Files (x86)\\Steam\steamapps\common\Stardew Valley\_CommonRedist\XNA\4.0" goto XNA2
- echoe Sadly Steam didnt download it either, you can get it here
- goto end
- :XNA2
- echo Luckily Steam already downloaded it, do you want to install it now? (j/n)
- if %choose%==y goto yes1
- if %choose%==n goto no1
- :yes1
- "%d%:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\_CommonRedist\XNA\4.0\xnafx40_redist.msi"
- goto select
- :no1
- echo Ok you can find the file in "%d%:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\_CommonRedist\XNA\4.0"
- goto end
- :start
- if not exist "%appdata%\StardewValley\Mods" goto mods
- goto start1
- :mods
- md "%appdata%\StardewValley\Mods"
- xcopy "%~dp0Mods" "%appdata%\StardewValley\Mods" /s /e /y
- rmdir /S/Q "%~dp0Mods"
- goto start1
- :start1
- if not exist "%appdata%\StardewValley\ErrorLogs" md "%appdata%\StardewValley\ErrorLogs"
- if not exist "%~dp0Update" md "%~dp0Update"
- echo ************************************
- echo **** Stardew Valley Mod Manager ****
- echo **** ****
- echo **** Version 1.01 by Yuuki ****
- echo ************************************
- :select
- echo.
- echo [0] Changelog
- echo [1] Install Mod from tobeinstalled Folder
- echo [2] delete Mod
- echo [3] Install/Update SMAPI
- echo [4] Launch SMAPI
- if not exist "%~dp0Mods" goto select1
- echo [5] Modding Tools
- :select1
- echo anything else = end
- echo
- set asw=9
- set /p asw="Please Select: "
- if %asw%==0 goto changelog
- if %asw%==1 goto install
- if %asw%==2 goto delmod
- if %asw%==3 goto update
- if %asw%==4 goto launch
- if not exist "%~dp0node" goto end
- if %asw%==5 goto moding
- goto end
- :install
- xcopy "%~dp0tobeinstalled" "%appdata%\StardewValley\Mods\" /Y
- del /S/Q "%~dp0tobeinstalled\*.*"
- echo new mods installed
- echo.
- goto select
- :delmod
- cd /d %appdata%\StardewValley\Mods\
- ls
- set /p file=which one (use Tab to scroll through them):
- set /p choose=are you sure (y/n):
- if %choose%==y goto yes
- if %choose%==n goto no
- goto end
- :yes
- del /Q/S "%appdata%\StardewValley\Mods\%file%"
- goto select
- :no
- goto select
- :update
- if not exist "%~dp0Update\StardewModdingAPI.exe" echo there are no files in the Update folder & goto select
- xcopy "%~dp0Update\StardewModdingAPI.exe" "%d%:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\" /Y
- del /Q/S "%~dp0Update\StardewModdingAPI.exe"
- xcopy "%~dp0Update\steam_appid.txt" "%d%:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\" /Y
- del /Q/S "%~dp0Update\steam_appid.txt"
- xcopy "%~dp0Mods" "%appdata%\StardewValley\Mods\" /s /e /y
- rmdir /S/Q "%~dp0Update\Mods"
- del /Q/S "%~dp0Update\use.txt"
- echo Version succsesfully updated
- echo.
- goto select
- :launch
- if not exist "%d%:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\StardewModdingAPI.exe" echo StardewModdingAPI.exe not found! & goto select
- echo launching game, please wait.
- call "%d%:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\StardewModdingAPI.exe"
- echo game closed!
- goto select
- :moding
- if not exist "%~dp0node" goto end
- echo Moding Tools Menu
- echo This Feature is WIP
- echo.
- echo [1] Unpack
- echo [2] Repack
- set asw=0
- set /p asw="Please Select: "
- if %asw%==1 goto unpack
- if %asw%==2 goto repack
- echoe.
- goto end
- :unpack
- echo please wait, this can take a while.
- cd node
- call xnb_node.cmd -q extract "%~dp0content" "%~dp0unpacked"
- echo unpacking done!
- echo you can find the files in unpacked
- cd ..
- goto select
- :repack
- echo please wait, this could take a while!
- cd node
- call xnb_node.cmd -q pack "%~dp0unpacked" "%~dp0content"
- echo repacking complete!
- cd..
- rmdir /S/Q "%~dp0unpacked" & md "%~dp0unpacked"
- goto select
- :changelog
- echo Version 1.01
- echo -fixed some errors.
- echo -added XNB Un/repack function (to activate this option just place Xnb_node.bat and the app folder in ../node)
- echo -you now can launch SMAPI directly from here.
- echo.
- echo Version 1.00
- echo -initial release
- echo.
- goto select
- :end
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement