Skip to content

Instantly share code, notes, and snippets.

@johnhmj
Created August 4, 2012 12:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnhmj/3257144 to your computer and use it in GitHub Desktop.
Save johnhmj/3257144 to your computer and use it in GitHub Desktop.
@ECHO OFF
ECHO ==[ AA3GameServer Launcher for WatchDOG ]==
REM ==================================================
REM FC: Compares two files or sets of files and displays the differences between them
REM
REM put DefaultGame.ini and AINames.ini in folder C:\AA3 v330 Backup
REM it will restore the two files from C:\AA3 v330 Backup
REM
REM Program Files (x86) is a 32-bit applications folder on x64 system
REM
CD C:\Program Files (x86)\Steam\steamapps\common\america's army 3 dedicated server\AA3Game\Config
DEL AA3Game.ini
FC /b "C:\AA3 v330 Backup\DefaultGame.ini" DefaultGame.ini > "C:\AA3 v330 Backup\Log DefaultGame.txt"
IF %errorlevel%==0 (
echo "Log: DefaultGame.ini is Ready now!!!"
) ELSE IF %errorlevel%==1 (
copy /v "C:\AA3 v330 Backup\DefaultGame.ini" DefaultGame.ini
) ELSE (
echo "Log: DefaultGame.ini Error!!!"
)
FC /b "C:\AA3 v330 Backup\AINames.ini" AINames.ini > "C:\AA3 v330 Backup\Log AINames.txt"
IF %errorlevel%==0 (
echo "Log: AINames.ini is Ready now!!!"
) ELSE IF %errorlevel%==1 (
copy /v "C:\AA3 v330 Backup\AINames.ini" AINames.ini
) ELSE (
echo "Log: AINames.ini Error!!!"
)
TITLE AA3GameServer Launcher for WatchDOG
SET ServerName=AA3Game.exe
REM ==================================================
REM input your Authentication Username
REM
REM you should go to register your server on the official SERVER REGISTRATION page
REM
SET MyUsername=yourServerUsername
REM ==================================================
REM input your Authentication Password
REM
REM you should go to register your server on the official SERVER REGISTRATION page
REM
SET MyPassword=yourServerPassword
REM ==================================================
REM input your Server Address
REM
REM you should go to register your server on the official SERVER REGISTRATION page
REM
SET MyIP=255.255.255.255
REM ==================================================
REM input your Max players
REM
SET MyMaxPlayers=26
REM ==================================================
REM input your Max spectators
REM
SET MyMaxSpectators=4
REM ==================================================
REM input your Default map
REM
SET MyMap=Alley_day_cloudy
REM ==================================================
REM input your Mission type of default map
REM
SET MyMissionType=VIP
REM ==================================================
REM input your Mission variant of default map
REM
SET MyMissionVariant=dev
REM ==================================================
REM Program Files (x86) is a 32-bit applications folder on x64 system
REM
CD c:\Program Files (x86)\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%
REM ==================================================
REM 04:00am
REM
SET MyHour1=4
REM ==================================================
REM 04:00pm (16:00)
REM
SET MyHour2=16
IF %now% GEQ %MyHour2% (
SET MyMaxPlayers=26
SET MyMap=Alley_day_cloudy
SET MyMissionType=VIP
SET MyMissionVariant=dev
) ELSE IF %now% GEQ %MyHour1% (
SET MyMaxPlayers=26
SET MyMap=Bridge_night_clear
SET MyMissionType=co
SET MyMissionVariant=ai
) 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