2022-05-11 15:37:11 +08:00
|
|
|
@echo off
|
2023-04-08 05:08:03 -05:00
|
|
|
|
2022-05-11 15:37:11 +08:00
|
|
|
echo Nomifactory GTCEu Port / Pack mode switcher
|
|
|
|
|
2023-04-08 05:08:03 -05:00
|
|
|
setlocal
|
2022-05-11 15:37:11 +08:00
|
|
|
set normalCfgPath=%~dp0config-overrides\normal
|
|
|
|
set expertCfgPath=%~dp0config-overrides\expert
|
|
|
|
set targetPath=%~dp0config
|
|
|
|
|
|
|
|
echo Set pack mode
|
|
|
|
echo N: normal
|
|
|
|
echo E: expert (hard)
|
|
|
|
choice /c NE /m "selection"
|
|
|
|
|
|
|
|
if "%errorlevel%" == "1" goto copyNormal
|
|
|
|
if "%errorlevel%" == "2" goto copyExpert
|
|
|
|
|
|
|
|
:copyNormal
|
|
|
|
robocopy "%normalCfgPath%" "%targetPath%" *.* /e /nfl /ndl
|
2023-04-08 05:08:03 -05:00
|
|
|
|
|
|
|
rem If server.properties exists, update server config
|
|
|
|
IF EXIST server.properties (move "%targetPath%\server.properties" .\)
|
|
|
|
echo normal > .mode
|
2022-05-11 15:37:11 +08:00
|
|
|
goto end
|
2023-04-08 05:08:03 -05:00
|
|
|
|
2022-05-11 15:37:11 +08:00
|
|
|
:copyExpert
|
|
|
|
robocopy "%expertCfgPath%" "%targetPath%" *.* /e /nfl /ndl
|
2023-04-08 05:08:03 -05:00
|
|
|
|
|
|
|
rem If server.properties exists, update server config
|
|
|
|
IF EXIST server.properties (move "%targetPath%\server.properties" .\)
|
|
|
|
echo expert > .mode
|
2022-05-11 15:37:11 +08:00
|
|
|
|
|
|
|
:end
|
2023-04-08 05:08:03 -05:00
|
|
|
rem if server.properties is left over in the config path, remove it
|
|
|
|
IF EXIST "%targetPath%/server.properties" DEL "%targetPath%\server.properties"
|
2022-05-11 15:37:11 +08:00
|
|
|
echo Switch completed
|
|
|
|
pause
|
2023-04-08 05:08:03 -05:00
|
|
|
exit
|