Advertisement
Guest User

Untitled

a guest
Mar 4th, 2016
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.86 KB | None | 0 0
  1. @echo off
  2. if not exist "%~dp0tobeinstalled" md "%~dp0tobeinstalled"
  3. if not exist "%~dp0Update\version.ext" echo 0.34>"%~dp0Update\version.txt"
  4. if exist set /p ver=<"%~dp0Update\version.txt"
  5. if not exist "C:\Program Files (x86)\Microsoft XNA" goto XNA
  6. if exist "C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley" set d=C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley"& goto start
  7. if exist "D:\Program Files (x86)\Steam\steamapps\common\Stardew Valley" set d=D:\Program Files (x86)\Steam\steamapps\common\Stardew Valley"& goto start
  8. if exist "E:\Program Files (x86)\Steam\steamapps\common\Stardew Valley" set d=E:\Program Files (x86)\Steam\steamapps\common\Stardew Valley"& goto start
  9. if exist "C:\Games\Stardew Valley" set d=C:\Games\Stardew Valley& goto start
  10. if exist "D:\Games\Stardew Valley" set d=D:\Games\Stardew Valley& goto start
  11. if exist "E:\Games\Stardew Valley" set d=E:\Games\Stardew Valley& goto start
  12. echo couldnt find Game, are you sure it installed?
  13.  
  14. :XNA
  15. echo Warning you dont seem to have installed the XNA Framework this is a common but with Steam
  16. echoe.
  17. if exist "%d%:\Program Files (x86)\\Steam\steamapps\common\Stardew Valley\_CommonRedist\XNA\4.0" goto XNA2
  18. echo Sadly Steam didnt download it either, you can get it here
  19. goto end
  20.  
  21. :XNA2
  22. echo Luckily Steam already downloaded it, do you want to install it now? (j/n)
  23. if %choose%==y goto yes1
  24. if %choose%==n goto no1
  25. :yes1
  26. "%d%:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\_CommonRedist\XNA\4.0\xnafx40_redist.msi"
  27. goto select
  28. :no1
  29. echo Ok you can find the file in "%d%:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\_CommonRedist\XNA\4.0"
  30. goto end
  31.  
  32.  
  33. :start
  34. if not exist "%appdata%\StardewValley\Mods" goto mods
  35. goto start1
  36.  
  37. :mods
  38. md "%appdata%\StardewValley\Mods"
  39. xcopy "%~dp0Mods" "%appdata%\StardewValley\Mods" /s /e /y
  40. rmdir /S/Q "%~dp0Mods"
  41. goto start1
  42.  
  43. :start1
  44. if not exist "%appdata%\StardewValley\ErrorLogs" md "%appdata%\StardewValley\ErrorLogs"
  45. if not exist "%~dp0Update" md "%~dp0Update"
  46. echo ************************************
  47. echo **** Stardew Valley Mod Manager ****
  48. echo **** ****
  49. echo **** Version 1.01 by Yuuki ****
  50. echo ************************************
  51.  
  52. :select
  53. echo.
  54. echo [0] Changelog
  55. echo [1] Install Mod from tobeinstalled Folder
  56. echo [2] delete Mod
  57. echo [3] Install/Update SMAPI
  58. echo [4] Launch SMAPI
  59. if not exist "%~dp0Mods" goto select1
  60. echo [5] Modding Tools
  61. :select1
  62. echo anything else = end
  63. echo
  64. set asw=9
  65. set /p asw="Please Select: "
  66. if %asw%==0 goto changelog
  67. if %asw%==1 goto install
  68. if %asw%==2 goto delmod
  69. if %asw%==3 goto update
  70. if %asw%==4 goto launch
  71. if not exist "%~dp0node" goto end
  72. if %asw%==5 goto moding
  73. goto end
  74.  
  75.  
  76. :install
  77. xcopy "%~dp0tobeinstalled" "%appdata%\StardewValley\Mods\" /Y
  78. del /S/Q "%~dp0tobeinstalled\*.*"
  79. echo new mods installed
  80. echo.
  81. goto select
  82.  
  83. :delmod
  84. cd /d %appdata%\StardewValley\Mods\
  85. ls
  86. set /p file=which one (use Tab to scroll through them):
  87. set /p choose=are you sure (y/n):
  88. if %choose%==y goto yes
  89. if %choose%==n goto no
  90. goto end
  91. :yes
  92. del /Q/S "%appdata%\StardewValley\Mods\%file%"
  93. goto select
  94. :no
  95. goto select
  96.  
  97. :update
  98. if not exist "%~dp0Update\StardewModdingAPI.exe" echo there are no files in the Update folder & goto select
  99. xcopy "%~dp0Update\StardewModdingAPI.exe" "%d%:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\" /Y
  100. del /Q/S "%~dp0Update\StardewModdingAPI.exe"
  101. xcopy "%~dp0Update\steam_appid.txt" "%d%" /Y
  102. del /Q/S "%~dp0Update\steam_appid.txt"
  103. xcopy "%~dp0Mods" "%appdata%\StardewValley\Mods\" /s /e /y
  104. rmdir /S/Q "%~dp0Update\Mods"
  105. del /Q/S "%~dp0Update\use.txt"
  106. echo Version succsesfully updated
  107. echo.
  108. goto select
  109.  
  110. :launch
  111. if not exist "%d%\StardewModdingAPI.exe" echo StardewModdingAPI.exe not found! & goto select
  112. echo launching game, please wait.
  113. call "%d%\StardewModdingAPI.exe"
  114. echo game closed!
  115. goto select
  116.  
  117. :moding
  118. if not exist "%~dp0node" goto end
  119. echo Moding Tools Menu
  120. echo This Feature is WIP
  121. echo.
  122. echo [1] Unpack
  123. echo [2] Repack
  124. set asw=0
  125. set /p asw="Please Select: "
  126. if %asw%==1 goto unpack
  127. if %asw%==2 goto repack
  128. echo.
  129. goto end
  130.  
  131. :unpack
  132. echo please wait, this can take a while.
  133. cd node
  134. call xnb_node.cmd -q extract "%~dp0content" "%~dp0unpacked"
  135. echo unpacking done!
  136. echo you can find the files in unpacked
  137. cd ..
  138. goto select
  139.  
  140.  
  141. :repack
  142. echo please wait, this could take a while!
  143. cd node
  144. call xnb_node.cmd -q pack "%~dp0unpacked" "%~dp0content"
  145. echo repacking complete!
  146. cd..
  147. rmdir /S/Q "%~dp0unpacked" & md "%~dp0unpacked"
  148. goto select
  149.  
  150. :changelog
  151. echo Version 1.01
  152. echo -fixed some errors.
  153. echo -added XNB Un/repack function (to activate this option just place Xnb_node.bat and the app folder in ../node)
  154. echo -you now can launch SMAPI directly from here.
  155. echo.
  156. echo Version 1.00
  157. echo -initial release
  158. echo.
  159. goto select
  160.  
  161. :end
  162. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement