5041
mAAp Project / Re: BF-Style Conquest Objectives for AA
« on: Saturday, February 25, 2012, 19:27:51 PM »
Just stand in a radius around the objective. I can set radius and height of the area.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
@ECHO OFF
setlocal EnableDelayedExpansion
TITLE RunServer v3.2 for America's Army 2.8.5 by Spanky
COLOR 07
SET T0="#####################################################################"
SET T1=" _____ _____ "
SET T2="| __ \ / ____| v3.2"
SET T3="| |__) | _ _ _ __ | (___ ___ _ __ __ __ ___ _ __ "
SET T4="| _ / | | | | | '_ \ \___ \ / _ \ | '__| \ \ / / / _ \ | '__|"
SET T5="| | \ \ | |_| | | | | | ____) | | __/ | | \ V / | __/ | | "
SET T6="|_| \_\ \__,_| |_| |_| |_____/ \___| |_| \_/ \___| |_| "
SET T7="For America's Army 2.8.5 by Spanky @ AAO25.com"
ECHO !T0:"=!
ECHO !T1:"=!
ECHO !T2:"=!
ECHO !T3:"=!
ECHO !T4:"=!
ECHO !T5:"=!
ECHO !T6:"=!
ECHO !T7:"=!
ECHO.
ECHO !T0:"=!
ECHO.
ECHO WARNING:
ECHO HAVING THIS PROGRAM IN THE ASSIST INSTALLATION MAY GET YOU KICKED/BANNED
ECHO ONLY USE THIS PROGRAM IN A SEPARATE INSTALLTION FOR MAPPING AND DEV WORK
ECHO.
ECHO Usage:
ECHO After entering a username and map name, this program will start a LAN server.
ECHO It will then launch AA to join that LAN server automatically.
ECHO Upon closing AA, it will kill the server and return to the main menu.
ECHO If the server crashes or fails to start, this program will let you know.
ECHO.
PAUSE
GOTO Username
:Username
CLS
ECHO !T0:"=!
ECHO !T1:"=!
ECHO !T2:"=!
ECHO !T3:"=!
ECHO !T4:"=!
ECHO !T5:"=!
ECHO !T6:"=!
ECHO !T7:"=!
ECHO.
ECHO !T0:"=!
ECHO.
ECHO Type the username you wish to use in the LAN server.
SET /P U=Username:
GOTO Menu
:Menu
CLS
ECHO !T0:"=!
ECHO !T1:"=!
ECHO !T2:"=!
ECHO !T3:"=!
ECHO !T4:"=!
ECHO !T5:"=!
ECHO !T6:"=!
ECHO !T7:"=!
ECHO.
ECHO !T0:"=!
ECHO.
ECHO Your current username is %U%.
ECHO.
ECHO Type the name of the map you would like to load. ex. mp_pipeline
ECHO Don't include the .aao extension, just the filename of the map.
SET /P M=Map Name:
GOTO LoadServer
:LoadServer
CLS
ECHO !T0:"=!
ECHO !T1:"=!
ECHO !T2:"=!
ECHO !T3:"=!
ECHO !T4:"=!
ECHO !T5:"=!
ECHO !T6:"=!
ECHO !T7:"=!
ECHO.
ECHO !T0:"=!
ECHO.
ECHO Your current username is %U%.
ECHO.
ECHO Loading the server... Please wait...
START server.exe LAN %M%.aao log=server.log ini=server.ini
ECHO Waiting 2 seconds to verify server has started...
PING 1.1.1.1 -n 1 -w 2000 >NUL
TASKLIST /NH /FI "imagename eq server.exe" | FIND /I "server.exe" >NUL
SET NodLevel=%ERRORLEVEL%
IF %NodLevel%==1 (GOTO ServerStartFailed) ELSE ( GOTO ServerStarted)
:ServerStarted
ECHO Server has started, launching America's Army...
START armyops.exe 127.0.0.1?Username=%U%
PING 1.1.1.1 -n 1 -w 3000 >NUL
GOTO ClientRunningCheck
:ServerStartFailed
ECHO.
ECHO Server failed to start. Please check your server.ini and try again.
ECHO.
PAUSE
GOTO MENU
:ClientRunningCheck
CLS
ECHO !T0:"=!
ECHO !T1:"=!
ECHO !T2:"=!
ECHO !T3:"=!
ECHO !T4:"=!
ECHO !T5:"=!
ECHO !T6:"=!
ECHO !T7:"=!
ECHO.
ECHO !T0:"=!
ECHO.
ECHO Your current username is %U%.
ECHO.
ECHO America's Army server and client are running.
ECHO Waiting for the client to close...
PING 1.1.1.1 -n 1 -w 2000 >NUL
TASKLIST /NH /FI "imagename eq ArmyOps.exe" | FIND /I "ArmyOps.exe" >NUL
SET NodLevel=%ERRORLEVEL%
IF %NodLevel%==1 (GOTO ClientNotRunning) ELSE ( GOTO ClientRunningCheckServer)
:ClientRunningCheckServer
TASKLIST /NH /FI "imagename eq server.exe" | FIND /I "server.exe" >NUL
SET NodLevel=%ERRORLEVEL%
IF %NodLevel%==1 (GOTO ServerNotRunningClientIs) ELSE ( GOTO ClientRunningCheck)
:ServerNotRunningClientIs
ECHO.
TASKKILL /F /IM "ArmyOps.exe" >NUL
ECHO The game was closed because the server has crashed.
ECHO Consult the server.log file.
ECHO.
PAUSE
GOTO MENU
:ClientNotRunning
CLS
ECHO !T0:"=!
ECHO !T1:"=!
ECHO !T2:"=!
ECHO !T3:"=!
ECHO !T4:"=!
ECHO !T5:"=!
ECHO !T6:"=!
ECHO !T7:"=!
ECHO.
ECHO !T0:"=!
ECHO.
ECHO Your current username is %U%.
ECHO.
ECHO America's Army client has been closed, stopping the server...
TASKKILL /F /IM "server.exe" >NUL
PING 1.1.1.1 -n 1 -w 3000 >NUL
GOTO MENUECHO OFF
CLS
ECHO RunServer by Spanky from AAO25.com
ECHO.
ECHO This program will allow you to start a LAN server on any map.
ECHO It will then launch AA to join that server and wait for AA to close.
ECHO Upon closing AA, it will kill the server and return to the main menu.
ECHO.
GOTO MENU
:MENU
ECHO Type the name of the map you would like to load. ex. mp_pipeline
ECHO Don't include the .aao extension, just the filename of the map.
SET /P M=Map Name:
ECHO.
ECHO Loading the server... Please wait...
START server.exe LAN %M%.aao log=server.log ini=server.ini
ECHO Server started, launching America's Army...
START armyops.exe 127.0.0.1
PING 1.1.1.1 -n 1 -w 3000 >NUL
GOTO GameRunningCheck
:GameRunningCheck
CLS
ECHO America's Army is running, waiting for it to be closed...
PING 1.1.1.1 -n 1 -w 2000 >NUL
TASKLIST /NH | FIND /I "ArmyOps"
SET NodLevel=%ERRORLEVEL%
IF %NodLevel%==1 (GOTO GameNotRunning) ELSE ( GOTO GameRunningCheck)
:GameNotRunning
CLS
ECHO America's Army is closed, stopping the server...
TASKKILL /F /IM
server.exe"
PING 1.1.1.1 -n 1 -w 3000 >NUL
CLS
GOTO MENU