server_windows.bat 562 Bytes
Newer Older
1 2 3
@echo off

setlocal
4
set executable=xonotic.exe
5 6 7 8 9 10 11 12 13 14 15 16 17 18

%~d0
cd "%~p0"

if exist %executable% goto good
if not exist ..\%executable% goto bad
if exist ..\data\server.cfg goto halfgood
goto bad

:bad
echo This script is not properly set up yet.
echo Please refer to the instructions in readme.txt.
echo In short:
echo - copy server.cfg to the data directory and adjust its settings
19
echo - move this file to the main directory of your Xonotic installation
20 21 22 23 24 25 26
pause
exit

:halfgood
cd ..

:good
27
.\%executable% -dedicated +serverconfig server.cfg %*