@echo off
:menu
cls
echo ################################
echo Menu:
echo ################################
echo --------------------------------
echo 1. Start CH1 - Calpheon
echo 2. Start CH2 - Serendia
echo 3. Close
echo --------------------------------
echo ################################
set /p choice=Select an option (1-3):
if "%choice%"=="1" (
call :start "CH1" "FieldServer CH1 - Calpheon"
) else if "%choice%"=="2" (
call :start "CH2" "FieldServer CH2 - Serendia"
) else if "%choice%"=="3" (
exit
) else (
echo Invalid option. Try again.
timeout /t 3 >nul
goto :menu
)
exit /b
:start
set "server=%1"
set "title=%2"
echo Starting %server%...
timeout /t 3 >nul
@echo off
title %title%
cd GameServerData
if exist DataSheet_Server.xlsm (
echo Deleting existing DataSheet_Server.xlsm...
del DataSheet_Server.xlsm /f
) else (
echo DataSheet_Server.xlsm doesn't exist. Going to the next step...
)
timeout /t 3 >nul
cd "Custom\%server%" && xcopy DataSheet_Server.xlsm "..\..\" /y
cd "..\..\..\"
cd bin64
echo Starting %title%...
timeout /t 3 >nul
start CrimsonDesertServer_ReleaseOp_x64_Corsair_Ida NotDaemon
echo %title% has been started, do not start the next channel until the first one is fully loaded.
timeout /t 20 >nul
goto :menu