Skip to content

Instantly share code, notes, and snippets.

@johnhmj johnhmj/Launcher.bat
Created Feb 11, 2012

Embed
What would you like to do?
@ECHO OFF
SET ServerName=AA3Game.exe
SET MyUsername=RegistrationUsername
SET MyPassword=RegistrationPassword
SET MyIP=127.0.0.1
SET MyMaxPlayers=26
SET MyMaxSpectators=4
SET MyMap=Alley_day_cloudy
SET MyMissionType=VIP
SET MyMissionVariant=dev
CD c:\program files\steam\steamapps\common\america's army 3 dedicated server\Binaries\
IF NOT EXIST %ServerName% (
GOTO NotExist
) ELSE (
GOTO ServerRestart
)
: NotExist
ECHO.
ECHO Warning: AA3Game.exe does not exist
EXIT
: ServerRestart
ECHO.
ECHO (%time%, %date%) AA3GameServer is Running
SET now=%TIME:~0,2%
SET MyHour1=1
SET MyHour2=13
IF %now% GEQ %MyHour2% (
SET MyMap=Alley_day_cloudy
SET MyMissionType=VIP
SET MyMissionVariant=dev
) ELSE IF %now% GEQ %MyHour1% (
SET MyMap=Bridge_night_clear
SET MyMissionType=Classic
SET MyMissionVariant=dev
) ELSE (
SET MyMap=Alley_day_cloudy
SET MyMissionType=VIP
SET MyMissionVariant=dev
)
START "AA3GameServer Watchdog" %ServerName% server %MyMap%?GLOBAL?MissionType=%MyMissionType%?MissionSize=large?MissionTourID=inf?MissionVariant=%MyMissionVariant%?MaxPlayers=%MyMaxPlayers%?MaxSpectators=%MyMaxSpectators%?AuthServerUserName=%MyUsername%?AuthServerPassword=%MyPassword%?AuthServerIP=%MyIP% /STEAMSERVERIP=%MyIP%
EXIT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.