archgeus a révisé ce gist 2 years ago. Aller à la révision
1 file changed, 55 insertions
Black Desert Simple Field Starter.cmd (fichier créé)
| @@ -0,0 +1,55 @@ | |||
| 1 | + | @echo off | |
| 2 | + | ||
| 3 | + | :menu | |
| 4 | + | cls | |
| 5 | + | echo ################################ | |
| 6 | + | echo Menu: | |
| 7 | + | echo ################################ | |
| 8 | + | echo -------------------------------- | |
| 9 | + | echo 1. Start CH1 - Calpheon | |
| 10 | + | echo 2. Start CH2 - Serendia | |
| 11 | + | echo 3. Close | |
| 12 | + | echo -------------------------------- | |
| 13 | + | echo ################################ | |
| 14 | + | set /p choice=Select an option (1-3): | |
| 15 | + | ||
| 16 | + | if "%choice%"=="1" ( | |
| 17 | + | call :start "CH1" "FieldServer CH1 - Calpheon" | |
| 18 | + | ) else if "%choice%"=="2" ( | |
| 19 | + | call :start "CH2" "FieldServer CH2 - Serendia" | |
| 20 | + | ) else if "%choice%"=="3" ( | |
| 21 | + | exit | |
| 22 | + | ) else ( | |
| 23 | + | echo Invalid option. Try again. | |
| 24 | + | timeout /t 3 >nul | |
| 25 | + | goto :menu | |
| 26 | + | ) | |
| 27 | + | ||
| 28 | + | exit /b | |
| 29 | + | ||
| 30 | + | :start | |
| 31 | + | set "server=%1" | |
| 32 | + | set "title=%2" | |
| 33 | + | ||
| 34 | + | echo Starting %server%... | |
| 35 | + | timeout /t 3 >nul | |
| 36 | + | ||
| 37 | + | @echo off | |
| 38 | + | title %title% | |
| 39 | + | cd GameServerData | |
| 40 | + | if exist DataSheet_Server.xlsm ( | |
| 41 | + | echo Deleting existing DataSheet_Server.xlsm... | |
| 42 | + | del DataSheet_Server.xlsm /f | |
| 43 | + | ) else ( | |
| 44 | + | echo DataSheet_Server.xlsm doesn't exist. Going to the next step... | |
| 45 | + | ) | |
| 46 | + | timeout /t 3 >nul | |
| 47 | + | cd "Custom\%server%" && xcopy DataSheet_Server.xlsm "..\..\" /y | |
| 48 | + | cd "..\..\..\" | |
| 49 | + | cd bin64 | |
| 50 | + | echo Starting %title%... | |
| 51 | + | timeout /t 3 >nul | |
| 52 | + | start CrimsonDesertServer_ReleaseOp_x64_Corsair_Ida NotDaemon | |
| 53 | + | echo %title% has been started, do not start the next channel until the first one is fully loaded. | |
| 54 | + | timeout /t 20 >nul | |
| 55 | + | goto :menu | |
Plus récent
Plus ancien