Server setup using the windows task manager to run an AA:PG server.
Acquiring the Server Files
Put the following link: steam://install/203300 –  in a web browser to download the server tool
And/or find it in your Steam library:
Go to your local files for the server:
Open the Binaries folder:
Open the Win32 folder:
Make note of the install location, as we will need this in the Task Scheduler:
Open the Task Scheduler: (windows key, type: Task Scheduler)
Add a folder to contain all the AA:PG tasks:
Create a task:
Depending on your computer setup, you may need to “Change User or Group…”. I recommend consulting a friend familiar with user accounts if the account you log in with has any issues with running the server.
Add an Action:
Setup the Action (find the AAGameServer.exe location we saved in the previous section):
“steamapps\common\AAPG Dedicated Server\Binaries\Win32\AAGameServer.exe”
Add arguments (optional):
-connectip=127.0.0.1 -port=7778 -voipport=8765 -SQP=27015 -log=Server_PrivateServer1_7778.log -servername=”AAPG Private Server 1″ -aauregion=2
The given options:
- “connectip” should be set to your external ip address which can be acquired at: https://www.whatismyip.com/ – [whatismyip.com]
- “port” is for game traffic, 7778 is default
- “voipport” is for game voip, 8765 is default (this is limited to 32 connections)
- “SQP” is for talking to Steam, 27015 is default
- “log” sets a custom name for the log file (include the port in the name if running multiple)
- “servername” is the name of the server, including in Steam’s server list
- “aauregion” Is always set to 2. TODO – does it need this?
Open the Windows Firewall: (windows key, type: Firewall)
Select “Allow an app or feature through Windows Defender Firewall”
Press the “Allow another app…” button
Press the “Browse…” button and navigate to your AAGameServer.exe. Then press “Open”.
The “AAGameServer.exe” should now show as allowed on your firewall list.
Starting/Stopping the Server
- “Run” the task when you want the server on
- “End” the task to stop the server
- “Disable” the task to stop the server, and prevent the automatic restart
(Optional) Automatic log file cleanup
This is a simple way to add automated log cleanup using the task scheduler.
/p “C:\AAPG\DedicatedServer_Win32\AAGame\Logs” /s /d -7 /c “cmd /c del /q @file”
- ForFiles: Selects and runs a command on a file or set of files. This command is most commonly used in batch files.
- /p specifies the path to the folder
- /s allows the command to also check subdirectories
- /d tells the command how many days a file is allowed to exist, and to delete anything older than “-7” 7 days old
- /c sets the command to run on each file, that is over 7 days old
- cmd /c says to execute a command
- del, is the command we want (delete), and it is in “/q” quiet mode (it will not prompt for actions)
- @file inserts the file that “ForFiles” identified as over 7 days old
(Optional) Automatic Startup/Restart
Go back to the task that you created to start your server.
We can add another trigger to the task, so that if the server crashes, it will cause the server to run again after a minute. Press the “New…” button. Then use the settings in the image below:
Now go to the Settings tab, and use the image below for reference.
(Optional) Options for Multiple Servers
The last topic we have is how to use the Task Scheduler to run multiple servers, using the same game folder. The “-configsubdir” parameter on the AAGameServer.exe allows you to specify which folder to use for each server. You also need to use “-log=LogName.log” so that your servers do not attempt to use the same log file.
Here is an example set of “Add arguments (optional):” for your “Start a program” Action on each task:
-configsubdir=PrivateServer1 -connectip=127.0.0.1 -port=7778 -voipport=8765 -SAP=8778 -SQP=27015 -log=Server_PrivateServer1_7778.log -servername=”AAPG Private Server 1″ -aauregion=2
-configsubdir=PrivateServer2 -connectip=127.0.0.1 -port=7779 -voipport=8766 -SAP=8779 -SQP=27016 -log=Server_PrivateServer2_7779.log -servername=”AAPG Private Server 2″ -aauregion=2
In the above you should note the need for a unique “configsubdir”, a unique “servername”, as well as differing port values.
The last thing to do is add the folders, as you named them in the arguments. Then copy all the game’s default*.ini files into those folders.
Run the game server for the first time, as it will generate 4 files: PCServer-*.ini. Then stop the game server. Those are the 4 files you can use to modify settings.
Second star to the right and straight on till morning
I hope this guide helps those less familiar with computers get a little further in having a chance to admin their own experience. Thank you for enjoying our game!
Hope you enjoy the post for America’s Army: Proving Grounds Windows Server Setup Guide, If you think we should update the post or something is wrong please let us know via comment and we will fix it how fast as possible! Thank you and have a great day!
- Check All America's Army: Proving Grounds Posts List
Leave a Reply