Created
February 11, 2012 11:23
-
-
Save johnhmj/1798865 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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