America’s Army: Proving Grounds Windows Server Setup Guide

America’s Army: Proving Grounds Windows Server Setup Guide 1 - steamsplay.com
America’s Army: Proving Grounds Windows Server Setup Guide 1 - steamsplay.com

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:
 
 
America's Army: Proving Grounds Windows Server Setup Guide - Acquiring the Server Files - F1A92E7
 
Go to your local files for the server:
 
 
America's Army: Proving Grounds Windows Server Setup Guide - Acquiring the Server Files - F974046
 
Open the Binaries folder:
 
America's Army: Proving Grounds Windows Server Setup Guide - Acquiring the Server Files - C71622FOpen the Win32 folder:
 
America's Army: Proving Grounds Windows Server Setup Guide - Acquiring the Server Files - 5154911Make note of the install location, as we will need this in the Task Scheduler:
 
 
America's Army: Proving Grounds Windows Server Setup Guide - Acquiring the Server Files - 92BCD9B
 
 
 

Task Scheduler

Open the Task Scheduler: (windows key, type: Task Scheduler)
 
 
America's Army: Proving Grounds Windows Server Setup Guide - Task Scheduler - F815702
 
 
Add a folder to contain all the AA:PG tasks:
 
America's Army: Proving Grounds Windows Server Setup Guide - Task Scheduler -
 
America's Army: Proving Grounds Windows Server Setup Guide - Task Scheduler - 81CA611
 
 
Create a task:
 
 
America's Army: Proving Grounds Windows Server Setup Guide - Task Scheduler - 2A2A08F
 
 
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.
 
 
America's Army: Proving Grounds Windows Server Setup Guide - Task Scheduler - E5C60E6
 
 
Add an Action:
 
 
America's Army: Proving Grounds Windows Server Setup Guide - Task Scheduler - 5B1D52B
 
 
Setup the Action (find the AAGameServer.exe location we saved in the previous section):
 
 
America's Army: Proving Grounds Windows Server Setup Guide - Task Scheduler - 5316834
 
Program/script:
 
“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?

 
 
 

Windows Firewall

Open the Windows Firewall: (windows key, type: Firewall)
 
 
America's Army: Proving Grounds Windows Server Setup Guide - Windows Firewall - 7257BF3
 
Select “Allow an app or feature through Windows Defender Firewall”
 
America's Army: Proving Grounds Windows Server Setup Guide - Windows Firewall - 3F6D934Press the “Allow another app…” button
 
 
America's Army: Proving Grounds Windows Server Setup Guide - Windows Firewall - 0E83E6C
 
Press the “Browse…” button and navigate to your AAGameServer.exe. Then press “Open”.
 
 
America's Army: Proving Grounds Windows Server Setup Guide - Windows Firewall - 250236C
 
The “AAGameServer.exe” should now show as allowed on your firewall list.
 
 
 

Starting/Stopping the Server

America's Army: Proving Grounds Windows Server Setup Guide - Starting/Stopping the Server - BFC5325
 

  • “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

America's Army: Proving Grounds Windows Server Setup Guide - (Optional) Automatic log file cleanup - 8E55514
 
This is a simple way to add automated log cleanup using the task scheduler.
 
 
America's Army: Proving Grounds Windows Server Setup Guide - (Optional) Automatic log file cleanup - 016F2C8
 
 
America's Army: Proving Grounds Windows Server Setup Guide - (Optional) Automatic log file cleanup - D064015
 
 
America's Army: Proving Grounds Windows Server Setup Guide - (Optional) Automatic log file cleanup - A956674
 
 
America's Army: Proving Grounds Windows Server Setup Guide - (Optional) Automatic log file cleanup - 8123251
 
ForFiles
 
/p “C:\AAPG\DedicatedServer_Win32\AAGame\Logs” /s /d -7 /c “cmd /c del /q @file”
 
 
Command Info:
 

  • 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.
 
 
America's Army: Proving Grounds Windows Server Setup Guide - (Optional) Automatic Startup/Restart - 2AED010
 
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:
 
 
America's Army: Proving Grounds Windows Server Setup Guide - (Optional) Automatic Startup/Restart - FF9FC76
 
Now go to the Settings tab, and use the image below for reference.
 
 
America's Army: Proving Grounds Windows Server Setup Guide - (Optional) Automatic Startup/Restart - D5F4FB8
 
 
 

(Optional) Options for Multiple Servers

America's Army: Proving Grounds Windows Server Setup Guide - (Optional) Options for Multiple Servers - 03F0FEA
 
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.
 
 
America's Army: Proving Grounds Windows Server Setup Guide - (Optional) Options for Multiple Servers - 3D736BA
 
 
America's Army: Proving Grounds Windows Server Setup Guide - (Optional) Options for Multiple Servers - 006F040
 
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!
 
 
Cheers,
 
 
Kartigan
 
 

Written by Kartigan

 
 
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!
 


Be the first to comment

Leave a Reply

Your email address will not be published.


*