Forums
Test Tube Studios
Welcome, Guest
Please Login or Register.    Lost Password?
How To: Set up a local server for private play
(1 viewing) 1 Guest
Do you need help with running the maps or setting up a server? Post here and our members will give you a hand.
Go to bottom
TOPIC: How To: Set up a local server for private play
#233
zonker3210
Senior Member
Posts: 50
graphgraph
User Offline Click here to see the profile of this user
How To: Set up a local server for private play 1 Year, 3 Months ago Karma: 1
The following post provides instructions for running a local serve-and-play instance of America's Army and is intended for people who wish to test new maps without having to find a server online.

The usual method of running a map offline is to open a command window (using the ~ key) in the AA game and typing:

Code:

open MAP_NAME_HERE


That does work but some maps do not behave the way their makers intended. For example, this AA forum thread shows some problems caused when you play EFA_Bodyguard's "SF Summit Assault" map in offline mode...

http://forum.americasarmy.com/viewtopic.php?t=282007&page=2

If your computer is up to the challenge, you can use the following steps to run a AA server on your PC and then join it via the LAN tab. I tried each method and can confirm that running a local serve-and-play instance will resolve the issues detailed in the AA forum thread referenced above.

Just for the record, I'm running a Q6700 Quad Core processor with 3.25 Gb of RAM along with an NVIDIA GeForce 8800 GT video card. I've not experienced any major performance problems running in serve-and-play mode, but your mileage may vary.

For the purposes of this tutorial, I'm going to use the current beta version of EFA_Bodyguard's excellent "SF Summit Assault" map in my examples. You may change the instructions to use a different map if you like.

Also, most people's America's Army installations are located under the "C:Program FilesAmerica's Army" folder. So when I refer to, say, the AAMaps folder I'm really referring to the "C:Program FilesAmerica's ArmyMaps" folder or the equivalent.

*** TWO IMPORTANT NOTES! ***
  • First, always make backup copies of files before editing them!

  • Second, I'm not liable for any problems you experience after following the instructions below. Use at your own risk!

/*****************************************************************/

Okay, let's get started...

1.) Open your favorite text editor (Notepad works just fine) and add this line:

Code:

server.exe LAN SF_Summit_Assault_BV1.aao log=server.log ini=server.ini


2.) Save the file with the name "RunServer_local.bat" and place it in your "AASystem" folder.

3.) Create a backup copy of your SERVER.INI file from your "AASystem" folder and rename it "SERVER.INI.BACKUP".

4.) Use your favorite text editor to open your SERVER.INI (not the backup!) and edit each of the sections shown below. For example, find the "Engine.AccessControl" section and edit the value of the "AdminPassword" line. Do that for each of the following sections...

Code:

[Engine.AccessControl]
AdminPassword=YOUR_PASSWORD_HERE

PlayerAdmin=PLAYER_ADMIN_NAME,PLAYER_ADMIN_PASSWORD

[Engine.GameInfo]
TimeLimit=65

[AGP_Gameplay.AGP_GameMultiPlayer]
; Whether multiplayer cheats are enabled.  MP Cheats are not allowed on official servers.
bMPCheatsEnabled=True

; When true, bOpenAllWeaponClassSlots will make every weapon class available selectable.
bOpenAllWeaponClassSlots=True



5.) Save the updated "SERVER.INI" file.

That's pretty much of the configuration all you need to get started!

To run the map, you just double-click on the "RunServer_local.bat" file you created in steps 1-2. If all is working correctly, you'll see a command window open and a whole bunch of information will scroll by as the server loads and starts the map.

While the server is loading, go ahead and start the AA game, if you haven't already done so. I prefer to log in and go to the AA Browser the same as if I was connecting to an externally-hosted server. In the AA Browser, go to the LAN tab...once your server has loaded the map, it will appear here. Personally, I prefer to add my game ID in the "LAN Player Name" field at the bottom of the screen.

You should be able to connect to your local server using the LAN tab in the AA Browser and the result should be indistinguishable from connecting to an externally-hosted server.

Once you're done with the game and you want to close down the server, just bring up the command window that shows the server information. Then use CTRL+C (hold down the CTRL key and press the C key) and you'll see the following prompt...

Code:

Terminate batch job (Y/N)?


Press "y" and press ENTER. The command window will disappear.

/*****************************************************************/
HOW TO CHANGE THE MAP: If you want to run a different map, just use your favorite text editor t open the "RunServer_local.bat" file created in steps 1-2 and update it with the correct map file name...

Code:

server.exe LAN MAP_FILE_NAME.aao log=server.log ini=server.ini


/*****************************************************************/
TROUBLESHOOTING:
  • You launch the "RunServer_local.bat" file you created in steps 1-2 but it disappears after a few seconds...chances are you don't have the correct file name for your map. Make sure that the appropriate map file exists in your "AAMaps" folder.

  • The game is slow/choppy....this might be due to your system itself. Try closing unused applications and processes. For example, I prefer to disable Punkbuster on my local server since I am the only one using it. To disable Punkbuster on the server (not the client!), edit the pbsvgame.cfg file in the "AASystempb" folder (create a backup copy first!) and use "sv_punkbuster 0". To enable Punkbuster on the server (not the client!), use "sv_punkbuster 1". If pbsvgame.cfg has not yet been created, you can just create it with notepad and just put in this one line: "sv_punkbuster 0" (without the quotes) to disable PB on your server.


Hope this helps!
 
Logged Logged
  The administrator has disabled public write access.
#240
TitanTree
Founder of AAOTTS
Administrator
Posts: 314
graph
User Offline Click here to see the profile of this user
Gender: Male YouTube Location: Melbourne, Australia Birthday: 02/17
Re:How To: Set up a local server for private play 1 Year, 3 Months ago Karma: 5
Good post Zonker well said, thanks for taking the time out to write it. Would you like to make it an article on the site?
 
Logged Logged
  The administrator has disabled public write access.
#241
={EFA}=BodyGuard=
Map Author
Posts: 21
graphgraph
User Offline Click here to see the profile of this user
Re:How To: Set up a local server for private play 1 Year, 3 Months ago Karma: 1
Nice work zonker Hooah!
 
Logged Logged
  The administrator has disabled public write access.
#242
zonker3210
Senior Member
Posts: 50
graphgraph
User Offline Click here to see the profile of this user
Re:How To: Set up a local server for private play 1 Year, 3 Months ago Karma: 1
Sure, I don't mind it being posted as an article. Do you want me to go ahead and submit it as such? I'm guessing it's pretty much a copy-and-paste into the "Submit an article" page, right? If you'd prefer to post it yourself, that's fine with me, though. Especially since I'm not sure what values are needed for some of the fields (is end date needed? what's appropriate metadata? display on front page? alias?!).

Anyhow, I hope it proves helpful to some!
 
Logged Logged
  The administrator has disabled public write access.
#277
TitanTree
Founder of AAOTTS
Administrator
Posts: 314
graph
User Offline Click here to see the profile of this user
Gender: Male YouTube Location: Melbourne, Australia Birthday: 02/17
Re:How To: Set up a local server for private play 1 Year, 3 Months ago Karma: 5
Thanks mate I just did it on your behalf, and setup your user as the author. Cheers mate, its a good clear How To.

TT
 
Logged Logged
  The administrator has disabled public write access.
Go to top

Donations Progress

View donor messages and progress updates.

Visit the Donation Center.

Updated to work with Internet Explorer.


Online Now

We have 5 guests and 1 member online
  • Wraiths_Scouse
Hora Mundial Module content
YouTube Channel
Follow Us On Twitter
comments rss
forums rss
maps rss