Advertisement
djacidfx

Rust Server Install Script

May 9th, 2023 (edited)
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 17.98 KB | Gaming | 0 0
  1. @echo off
  2. REM Rust Server Installer
  3. mode 130,25 & color 02
  4.  
  5. :intro
  6. title Rust Server Installer
  7. echo This script will install a Rust Server on your computer.
  8. echo.
  9. pause
  10. cls
  11.  
  12. :steamcmd
  13. title Installing SteamCMD...
  14. set steamcmd=C:\SteamCMD
  15. echo Enter the location you want SteamCMD installed (Default: C:\SteamCMD)
  16. echo.
  17. set /p steamcmd="Location: "
  18. echo.
  19. md "%steamcmd%"
  20. curl -SL -A "Mozilla/5.0" https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip --output "%steamcmd%"\SteamCMD.zip
  21. cd /d "%steamcmd%"
  22. powershell -command "Expand-Archive -Force SteamCMD.zip ./"
  23. del SteamCMD.zip
  24. cls
  25. echo SteamCMD installed!
  26. echo -------------------
  27.  
  28. :branch
  29. title Setting Up Your Server
  30. echo.
  31. echo Pick Your Server Branch
  32. echo.
  33. echo 1: Main Branch Server
  34. echo 2: Staging Branch Server
  35. echo.
  36. echo Note: There is no direct Oxide support for the Staging Branch. You will have to manually install it.
  37. echo.
  38. set /p choice="Enter 1 or 2: "
  39. if not '%choice%'=='' set choice=%choice:~0,1%
  40. cls
  41. if '%choice%' == '1' goto rustmain
  42. if '%choice%' == '2' goto ruststaging
  43. echo Please Enter 1 or 2.
  44. goto branch
  45.  
  46. :rustmain
  47. set forceinstall=C:\RustServer
  48. echo WARNING: Be sure there is not an existing Rust Server installation in this directory.
  49. echo The folder should either be empty or non-existent.
  50. echo.
  51. echo Enter the location you want the Rust Server installed (Default: C:\RustServer)
  52. echo.
  53. set /p forceinstall="Location: "
  54. md "%forceinstall%"
  55. cd /d "%forceinstall%"
  56. title Installing Rust Server...
  57. "%steamcmd%"\steamcmd.exe +force_install_dir "%forceinstall%" +login anonymous +app_update 258550 +quit
  58. REM Creating Update File (Release Server)
  59. (
  60.     echo @echo off
  61.     echo REM UpdateServer.bat
  62.     echo mode 110,20
  63.     echo color 02
  64.     echo title Updating Server...
  65.     echo "%steamcmd%"\steamcmd.exe +force_install_dir "%forceinstall%" +login anonymous +app_update 258550 +quit
  66.     echo echo.
  67.     echo echo Rust Updated!
  68.     echo echo.
  69.     echo choice /c yn /m "Do you want to run your server now?: "
  70.     echo IF ERRORLEVEL 2 exit
  71.     echo IF ERRORLEVEL 1 goto serverstart
  72.     echo :serverstart
  73.     echo mode 120,30
  74.     echo title %comspec%
  75.     echo StartServer.bat
  76. )>UpdateServer.bat
  77. cls
  78. echo Rust Server Installed!
  79. echo ----------------------
  80. echo.
  81. goto modchoice
  82.  
  83. :ruststaging
  84. set forceinstall=C:\RustStagingServer
  85. echo WARNING: Be sure there is not an existing Rust Server installation in this directory.
  86. echo The folder should either be empty or non-existent.
  87. echo.
  88. echo Enter the location you want the Rust Staging Branch Server installed (Default: C:\RustStagingServer)
  89. echo.
  90. set /p forceinstall="Location: "
  91. echo.
  92. md "%forceinstall%"
  93. cd /d "%forceinstall%"
  94. title Installing Rust Staging Server...
  95. "%steamcmd%"\steamcmd.exe +force_install_dir "%forceinstall%" +login anonymous +app_update 258550 -beta staging +quit
  96. REM Creating Update File (Staging Server)
  97. (
  98.     echo @echo off
  99.     echo REM UpdateServer.bat
  100.     echo mode 110,20
  101.     echo color 02
  102.     echo title Updating Server...
  103.     echo "%steamcmd%"\steamcmd.exe +force_install_dir "%forceinstall%" +login anonymous +app_update 258550 -beta staging +quit
  104.     echo echo.
  105.     echo echo Rust Staging Updated!
  106.     echo echo.
  107.     echo choice /c yn /m "Do you want to run your server now?: "
  108.     echo IF ERRORLEVEL 2 exit
  109.     echo IF ERRORLEVEL 1 goto serverstart
  110.     echo :serverstart
  111.     echo mode 120,30
  112.     echo title %comspec%
  113.     echo StartServer.bat
  114. )>UpdateServer.bat
  115. cls
  116. echo Rust Staging Server Installed!
  117. echo ------------------------------
  118. echo.
  119. goto modchoicestaging
  120.  
  121. :modchoice
  122. title Setting Up Your Server
  123.  
  124. echo 1: Oxide
  125. echo 2: Carbon
  126. echo 3: Vanilla (No Mods)
  127. echo.
  128. set /p mod="Would you like to install Oxide or Carbon?: "
  129. echo.
  130. if not '%mod%'=='' set mod=%mod:~0,1%
  131. cls
  132. if '%mod%' == '1' goto oxideinstall
  133. if '%mod%' == '2' goto carboninstall
  134. if '%mod%' == '3' goto mapchoice
  135. echo Please Enter 1, 2, or 3.
  136. echo.
  137. goto modchoice
  138.  
  139. :modchoicestaging
  140. title Setting Up Your Server
  141.  
  142. echo 1: Carbon
  143. echo 2: Vanilla (No Mods)
  144. echo.
  145. set /p mod="Would you like to install Carbon?: "
  146. echo.
  147. if not '%mod%'=='' set mod=%mod:~0,1%
  148. cls
  149. if '%mod%' == '1' goto carboninstallstaging
  150. if '%mod%' == '2' goto mapchoice
  151. echo Please Enter 1 or 2.
  152. echo.
  153. goto modchoicestaging
  154.  
  155.  
  156. :oxideinstall
  157. title Installing Oxide...
  158. curl -SL -A "Mozilla/5.0" "https://umod.org/games/rust/download" --output "%forceinstall%"\OxideMod.zip
  159. cd /d "%forceinstall%"
  160. powershell -command "Expand-Archive -Force OxideMod.zip ./"
  161. del OxideMod.zip
  162. REM Creating Update File (Oxide)
  163. (
  164.     echo @echo off
  165.     echo REM UpdateServer.bat
  166.     echo mode 110,20
  167.     echo color 02
  168.     echo title Updating Server...
  169.     echo "%steamcmd%"\steamcmd.exe +force_install_dir "%forceinstall%" +login anonymous +app_update 258550 +quit
  170.     echo echo.
  171.     echo echo Rust Updated!
  172.     echo pause
  173.     echo curl -SL -A "Mozilla/5.0" "https://umod.org/games/rust/download" --output "%forceinstall%"\OxideMod.zip
  174.     echo cd /d "%forceinstall%"
  175.     echo powershell -command "Expand-Archive -Force OxideMod.zip ./"
  176.     echo del OxideMod.zip
  177.     echo echo.
  178.     echo echo Oxide Updated!
  179.     echo echo.
  180.     echo choice /c yn /m "Do you want to run your server now?: "
  181.     echo IF ERRORLEVEL 2 exit
  182.     echo IF ERRORLEVEL 1 goto serverstart
  183.     echo :serverstart
  184.     echo mode 120,30
  185.     echo title %comspec%
  186.     echo StartServer.bat
  187. )>UpdateServer.bat
  188. cls
  189. echo Oxide installed!
  190. echo ----------------
  191. echo.
  192. goto mapchoice
  193.  
  194. :carboninstall
  195. title Installing Carbon...
  196. curl -SL -A "Mozilla/5.0" "https://github.com/CarbonCommunity/Carbon.Core/releases/download/production_build/Carbon.Windows.Release.zip" --output "%forceinstall%"\CarbonMod.zip
  197. cd /d "%forceinstall%"
  198. powershell -command "Expand-Archive -Force CarbonMod.zip ./"
  199. del CarbonMod.zip
  200. REM Creating Update File (Carbon)
  201. (
  202.     echo @echo off
  203.     echo REM UpdateServer.bat
  204.     echo mode 110,20
  205.     echo color 02
  206.     echo title Updating Server...
  207.     echo "%steamcmd%"\steamcmd.exe +force_install_dir "%forceinstall%" +login anonymous +app_update 258550 +quit
  208.     echo echo.
  209.     echo echo Rust Updated!
  210.     echo pause
  211.     echo echo.
  212.     echo choice /c yn /m "Do you want to update Carbon now?: "
  213.     echo IF ERRORLEVEL 2 goto start
  214.     echo IF ERRORLEVEL 1 goto carbonupdate
  215.     echo :carbonupdate
  216.     echo curl -SL -A "Mozilla/5.0" "https://github.com/CarbonCommunity/Carbon.Core/releases/download/production_build/Carbon.Windows.Release.zip" --output "%forceinstall%"\CarbonMod.zip
  217.     echo cd /d "%forceinstall%"
  218.     echo powershell -command "Expand-Archive -Force CarbonMod.zip ./"
  219.     echo del CarbonMod.zip
  220.     echo echo.
  221.     echo echo Carbon Updated!
  222.     echo :start
  223.     echo echo.
  224.     echo choice /c yn /m "Do you want to run your server now?: "
  225.     echo IF ERRORLEVEL 2 exit
  226.     echo IF ERRORLEVEL 1 goto serverstart
  227.     echo :serverstart
  228.     echo mode 120,30
  229.     echo title %comspec%
  230.     echo StartServer.bat
  231. )>UpdateServer.bat
  232. cls
  233. echo Carbon installed!
  234. echo ----------------
  235. echo.
  236. goto mapchoice
  237.  
  238. :carboninstallstaging
  239. title Installing Carbon...
  240. curl -SL -A "Mozilla/5.0" "https://github.com/CarbonCommunity/Carbon.Core/releases/download/production_build/Carbon.Windows.Release.zip" --output "%forceinstall%"\CarbonMod.zip
  241. cd /d "%forceinstall%"
  242. powershell -command "Expand-Archive -Force CarbonMod.zip ./"
  243. del CarbonMod.zip
  244. REM Creating Update File (Carbon Staging)
  245. (
  246.     echo @echo off
  247.     echo REM UpdateServer.bat
  248.     echo mode 110,20
  249.     echo color 02
  250.     echo title Updating Server...
  251.     echo "%steamcmd%"\steamcmd.exe +force_install_dir "%forceinstall%" +login anonymous +app_update 258550 -beta staging +quit
  252.     echo echo.
  253.     echo echo Rust Staging Updated!
  254.     echo echo.
  255.     echo choice /c yn /m "Do you want to update Carbon now?: "
  256.     echo IF ERRORLEVEL 2 goto start
  257.     echo IF ERRORLEVEL 1 goto carbonupdate
  258.     echo :carbonupdate
  259.     echo curl -SL -A "Mozilla/5.0" "https://github.com/CarbonCommunity/Carbon.Core/releases/download/production_build/Carbon.Windows.Release.zip" --output "%forceinstall%"\CarbonMod.zip
  260.     echo cd /d "%forceinstall%"
  261.     echo powershell -command "Expand-Archive -Force CarbonMod.zip ./"
  262.     echo del CarbonMod.zip
  263.     echo echo.
  264.     echo echo Carbon Updated!
  265.     echo :start
  266.     echo echo.
  267.     echo choice /c yn /m "Do you want to run your server now?: "
  268.     echo IF ERRORLEVEL 2 exit
  269.     echo IF ERRORLEVEL 1 goto serverstart
  270.     echo :serverstart
  271.     echo mode 120,30
  272.     echo title %comspec%
  273.     echo StartServer.bat
  274. )>UpdateServer.bat
  275. cls
  276. echo Carbon installed!
  277. echo ----------------
  278. echo.
  279. goto mapchoice
  280.  
  281. :mapchoice
  282. title Setting Up Your Server
  283. choice /c yn /m "Are you using a custom map file? (For normal/first time installs, you likely aren't): "
  284. cls
  285. IF ERRORLEVEL 2 goto startproc
  286. IF ERRORLEVEL 1 goto rusteditchoice
  287.  
  288. :rusteditchoice
  289. choice /c yn /m "Do you want to install the RustEdit DLL? (You usually need this for custom maps): "
  290. echo.
  291. IF ERRORLEVEL 2 goto startcustom
  292. IF ERRORLEVEL 1 goto rusteditinstall
  293.  
  294. :rusteditinstall
  295. title Installing RustEdit DLL...
  296. powershell -Command "Invoke-WebRequest https://github.com/k1lly0u/Oxide.Ext.RustEdit/raw/master/Oxide.Ext.RustEdit.dll -OutFile '"%forceinstall%"\RustDedicated_Data\Managed\Oxide.Ext.RustEdit.dll'
  297. cls
  298. echo RustEdit DLL installed!
  299. echo -----------------------
  300. echo.
  301. goto startcustom
  302.  
  303. :startproc
  304. cd /d "%forceinstall%"
  305. title Creating Your Startup File...
  306. set serverport=28015
  307. set /p serverport="Enter your server port (Default: 28015): "
  308. echo.
  309. set rconport=28016
  310. set /p rconport="Enter your RCON port (Default: 28016): "
  311. echo.
  312. set queryport=28017
  313. set /p queryport="Enter your server query port (Default: 28017): "
  314. echo.
  315. set identity=RustServer
  316. echo Don't have any spaces in the identity name!
  317. set /p identity="Enter your server identity (Default: RustServer): "
  318. echo.
  319. set seed=1337
  320. set /p seed="Enter your map seed (Default: 1337): "
  321. echo.
  322. set worldsize=4500
  323. set /p worldsize="Enter your world size (Default: 4500): "
  324. echo.
  325. set maxplayers=150
  326. set /p maxplayers="Enter the max players (Default: 150): "
  327. echo.
  328. set hostname=A Simple Rust Server
  329. set /p hostname="Enter your server's hostname (How it appears on the server browser): "
  330. echo.
  331. set description=An unconfigured Rust server.
  332. set /p description="Enter your server's description: "
  333. echo.
  334. set rconpw=ChangeThisPlease
  335. set /p rconpw="Enter your RCON password (make it secure!): "
  336. echo.
  337. set /p serverurl="Enter your Server URL (Ex: Your Discord invite link. Can be blank if you don't have one): "
  338. echo.
  339. echo Reminder: Your Header Image link MUST contain ONLY the picture, at 1024x512 size
  340. set /p headerimage="Enter your Server Header Image (Can be blank if you don't have one): "
  341.  
  342. REM Creating Start File (Procedural Map)
  343. (
  344.     echo @echo off
  345.     echo :start
  346.     echo RustDedicated.exe -batchmode ^^
  347.     echo -logFile "%identity%_logs.txt" ^^
  348.     echo +server.queryport %queryport% ^^
  349.     echo +server.port %serverport% ^^
  350.     echo +server.level "Procedural Map" ^^
  351.     echo +server.seed %seed% ^^
  352.     echo +server.worldsize %worldsize% ^^
  353.     echo +server.maxplayers %maxplayers% ^^
  354.     echo +server.hostname "%hostname%" ^^
  355.     echo +server.description "%description%" ^^
  356.     echo +server.headerimage "%headerimage%" ^^
  357.     echo +server.url "%serverurl%" ^^
  358.     echo +server.identity "%identity%" ^^
  359.     echo +rcon.port %rconport% ^^
  360.     echo +rcon.password %rconpw% ^^
  361.     echo +rcon.web 1
  362.     echo goto start
  363. )>StartServer.bat
  364.  
  365. REM Creating server.cfg (Procedural Map)
  366. md "%forceinstall%"\server\%identity%\cfg
  367. cd /d "%forceinstall%"\server\%identity%\cfg
  368. (
  369.     echo fps.limit "60"
  370. )>server.cfg
  371.  
  372. REM Creating Wipe File (Procedural Map)
  373. cd /d "%forceinstall%"
  374. (
  375.     echo @echo off
  376.     echo REM WipeServer.bat
  377.     echo mode 110,20
  378.     echo color 02
  379.     echo echo This file will allow you to wipe your server. Be sure you want to continue.
  380.     echo echo.
  381.     echo pause
  382.     echo echo.
  383.     echo choice /c yn /m "Do you want to wipe Blueprints?: "
  384.     echo IF ERRORLEVEL 2 goto wipemap
  385.     echo IF ERRORLEVEL 1 goto wipebp
  386.     echo :wipebp
  387.     echo echo.
  388.     echo echo WARNING: THIS WILL WIPE YOUR SERVER'S MAP, PLAYER, AND BLUEPRINT DATA. BE SURE YOU WANT TO CONTINUE.
  389.     echo pause
  390.     echo echo.
  391.     echo cd /d server/%identity%
  392.     echo del *.sav
  393.     echo del *.sav.*
  394.     echo del *.map
  395.     echo del *.db
  396.     echo del *.db-journal
  397.     echo del *.db-wal
  398.     echo goto finishbp
  399.     echo :wipemap
  400.     echo echo.
  401.     echo echo WARNING: THIS WILL WIPE YOUR SERVER'S MAP AND PLAYER DATA. BE SURE YOU WANT TO CONTINUE.
  402.     echo pause
  403.     echo echo.
  404.     echo cd /d server/%identity%
  405.     echo del *.sav
  406.     echo del *.sav.*
  407.     echo del *.map
  408.     echo del player.deaths.*
  409.     echo del player.identities.*
  410.     echo del player.states.*
  411.     echo del player.tokens.*
  412.     echo del sv.files.*
  413.     echo goto finishmap
  414.     echo :finishbp
  415.     echo echo.
  416.     echo echo Server has been Map and BP Wiped!
  417.     echo echo.
  418.     echo echo Be sure to change your map seed in your startup batch file!
  419.     echo echo Don't forget to delete any necessary plugin data!
  420.     echo echo.
  421.     echo pause
  422.     echo exit
  423.     echo :finishmap
  424.     echo echo.
  425.     echo echo Server has been Map Wiped!
  426.     echo echo.
  427.     echo echo Be sure to change your map seed in your startup batch file!
  428.     echo echo Don't forget to delete any necessary plugin data!
  429.     echo echo.
  430.     echo pause
  431. )>WipeServer.bat
  432.  
  433. REM Admin Check
  434. cls
  435. choice /c yn /m "Do you want to add yourself as an admin on the server now?: "
  436. cls
  437. IF ERRORLEVEL 2 goto finish
  438. IF ERRORLEVEL 1 goto admin
  439.  
  440. :startcustom
  441. cd /d "%forceinstall%"
  442. title Creating Your Startup File (Custom Map)...
  443. set serverport=28015
  444. set /p serverport="Enter your server port (Default: 28015): "
  445. echo.
  446. set rconport=28016
  447. set /p rconport="Enter your RCON port (Default: 28016): "
  448. echo.
  449. set queryport=28017
  450. set /p queryport="Enter your server query port (Default: 28017): "
  451. echo.
  452. set identity=RustServer
  453. echo Don't have any spaces in the identity name!
  454. set /p identity="Enter your server identity (Default: RustServer): "
  455. echo.
  456. set levelurl=https://www.dropbox.com/s/ig1ds1m3q5hnflj/proc_install_1.0.map?dl=1
  457. set /p levelurl="Enter your custom map URL (Must be a direct download link!): "
  458. echo.
  459. set maxplayers=150
  460. set /p maxplayers="Enter the max players (Default: 150): "
  461. echo.
  462. set hostname=A Simple Rust Server
  463. set /p hostname="Enter your server's hostname (How it appears on the server browser): "
  464. echo.
  465. set description=An unconfigured Rust server.
  466. set /p description="Enter your server's description: "
  467. echo.
  468. set rconpw=ChangeThisPlease
  469. set /p rconpw="Enter your RCON password (make it secure!): "
  470. echo.
  471. set /p serverurl="Enter your Server URL (Ex: Your Discord invite link. Can be blank if you don't have one): "
  472. echo.
  473. echo Reminder: Your Header Image link MUST contain ONLY the picture, at 1024x512 size
  474. set /p headerimage="Enter your Server Header Image (Can be blank if you don't have one): "
  475.  
  476. REM Creating Start File (Custom Map)
  477. (
  478.     echo @echo off
  479.     echo :start
  480.     echo RustDedicated.exe -batchmode ^^
  481.     echo -logFile "%identity%_logs.txt" ^^
  482.     echo -levelurl "%levelurl%" ^^
  483.     echo +server.queryport %queryport% ^^
  484.     echo +server.port %serverport% ^^
  485.     echo +server.maxplayers %maxplayers% ^^
  486.     echo +server.hostname "%hostname%" ^^
  487.     echo +server.description "%description%" ^^
  488.     echo +server.headerimage "%headerimage%" ^^
  489.     echo +server.url "%serverurl%" ^^
  490.     echo +server.identity "%identity%" ^^
  491.     echo +rcon.port %rconport% ^^
  492.     echo +rcon.password %rconpw% ^^
  493.     echo +rcon.web 1
  494.     echo goto start
  495. )>StartServer.bat
  496.  
  497. REM Creating server.cfg (Custom Map)
  498. md "%forceinstall%"\server\%identity%\cfg
  499. cd /d "%forceinstall%"\server\%identity%\cfg
  500. (
  501.     echo fps.limit "60"
  502. )>server.cfg
  503.  
  504. REM Creating Wipe File (Custom Map)
  505. cd /d "%forceinstall%"
  506. (
  507.     echo @echo off
  508.     echo REM WipeServer.bat
  509.     echo mode 110,20
  510.     echo color 02
  511.     echo echo This file will allow you to wipe your server. Be sure you want to continue.
  512.     echo echo.
  513.     echo pause
  514.     echo echo.
  515.     echo choice /c yn /m "Do you want to wipe Blueprints?: "
  516.     echo IF ERRORLEVEL 2 goto wipemap
  517.     echo IF ERRORLEVEL 1 goto wipebp
  518.     echo :wipebp
  519.     echo echo.
  520.     echo echo WARNING: THIS WILL WIPE YOUR SERVER'S MAP, PLAYER, AND BLUEPRINT DATA. BE SURE YOU WANT TO CONTINUE.
  521.     echo pause
  522.     echo echo.
  523.     echo cd /d server/%identity%
  524.     echo del *.sav
  525.     echo del *.sav.*
  526.     echo del *.map
  527.     echo del *.db
  528.     echo del *.db-journal
  529.     echo del *.db-wal
  530.     echo goto finishbp
  531.     echo :wipemap
  532.     echo echo.
  533.     echo echo WARNING: THIS WILL WIPE YOUR SERVER'S MAP AND PLAYER DATA. BE SURE YOU WANT TO CONTINUE.
  534.     echo pause
  535.     echo echo.
  536.     echo cd /d server/%identity%
  537.     echo del *.sav
  538.     echo del *.sav.*
  539.     echo del *.map
  540.     echo del player.deaths.*
  541.     echo del player.identities.*
  542.     echo del player.states.*
  543.     echo del player.tokens.*
  544.     echo del sv.files.*
  545.     echo goto finishmap
  546.     echo :finishbp
  547.     echo echo.
  548.     echo echo Server has been Map and BP Wiped!
  549.     echo echo.
  550.     echo echo Be sure to check your custom map link in your startup batch file!
  551.     echo echo Don't forget to delete any necessary plugin data!
  552.     echo echo.
  553.     echo pause
  554.     echo exit
  555.     echo :finishmap
  556.     echo echo.
  557.     echo echo Server has been Map Wiped!
  558.     echo echo.
  559.     echo echo Be sure to check your custom map link in your startup batch file!
  560.     echo echo Don't forget to delete any necessary plugin data!
  561.     echo echo.
  562.     echo pause
  563. )>WipeServer.bat
  564.  
  565. REM Admin Check
  566. cls
  567. choice /c yn /m "Do you want to add yourself as an admin on the server now?: "
  568. cls
  569. IF ERRORLEVEL 2 goto finish
  570. IF ERRORLEVEL 1 goto admin
  571.  
  572. :admin
  573. REM This is not a valid SteamID, don't worry!
  574. set steamid=12345678901234567
  575. echo If you do not know your SteamID, please go here: https://www.businessinsider.com/how-to-find-steam-id
  576. echo.
  577. echo Admin and Moderator users are stored in the users.cfg folder located here: %forceinstall%\server\%identity%\cfg
  578. echo.
  579. set /p steamid="Enter your Steam64 ID: "
  580.  
  581. cd /d "%forceinstall%"\server\%identity%\cfg
  582. (
  583.     echo ownerid %steamid% "unknown" "no reason"
  584. )>users.cfg
  585. cls
  586. goto finish
  587.  
  588. :finish
  589. echo All finished! You will see three batch files in %forceinstall%:
  590. echo.
  591. echo StartServer.bat is to launch your server.
  592. echo UpdateServer.bat is to update your server (and Oxide if it was installed) come force wipe.
  593. echo WipeServer.bat is to wipe your server. You will be given the choice of just a map or a full blueprint wipe.
  594. echo.
  595. choice /c yn /m "Do you want to run your new server now?: "
  596. echo.
  597. IF ERRORLEVEL 2 exit
  598. IF ERRORLEVEL 1 goto serverstart
  599.  
  600. :serverstart
  601. cd /d "%forceinstall%"
  602. mode 120,30
  603. title %comspec%
  604. StartServer.bat
Tags: rust
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement