Poodletooth-iLand/astron/win32/start-ai-server.bat

36 lines
1.1 KiB
Batchfile
Raw Normal View History

2015-03-03 16:10:12 -06:00
@echo off
2015-05-22 22:47:35 -05:00
cd ../..
2015-03-03 16:10:12 -06:00
rem Read the contents of PPYTHON_PATH into %PPYTHON_PATH%:
set /P PPYTHON_PATH=<PPYTHON_PATH
rem Define some constants for our AI server:
set MAX_CHANNELS=999999
set STATESERVER=4002
set ASTRON_IP=127.0.0.1:7100
set EVENTLOGGER_IP=127.0.0.1:7198
rem Get the user input:
set /P DISTRICT_NAME="District name (DEFAULT: Nuttyboro): " || ^
set DISTRICT_NAME=Nuttyboro
set /P BASE_CHANNEL="Base channel (DEFAULT: 401000000): " || ^
set BASE_CHANNEL=401000000
echo ===============================
2015-05-16 20:04:41 -05:00
echo Starting Toontown Stride AI server...
2015-03-03 16:10:12 -06:00
echo ppython: %PPYTHON_PATH%
echo District name: %DISTRICT_NAME%
echo Base channel: %BASE_CHANNEL%
echo Max channels: %MAX_CHANNELS%
echo State Server: %STATESERVER%
echo Astron IP: %ASTRON_IP%
echo Event Logger IP: %EVENTLOGGER_IP%
echo ===============================
:main
%PPYTHON_PATH% -m toontown.ai.ServiceStart --base-channel %BASE_CHANNEL% ^
--max-channels %MAX_CHANNELS% --stateserver %STATESERVER% ^
--astron-ip %ASTRON_IP% --eventlogger-ip %EVENTLOGGER_IP% ^
--district-name "%DISTRICT_NAME%"
goto main