Running a server: Difference between revisions

From FreeAllegiance Wiki
Jump to navigationJump to search
Line 16: Line 16:


{{Step|2|Install the server}}
{{Step|2|Install the server}}
[[Image:Online_Setup_Service.png|thumb|You must install the Server as a service for online play.]] Download the server pack from FreeAllegiance.org's [http://www.freeallegiance.org/downloads/ downloads section]. Proceed to install. Make sure you opt to install it as a service.
[[Image:Online_Setup_Service.png|thumb|You must install the Server as a service for online play.]] Download the R3 server pack from FreeAllegiance.org's [http://www.freeallegiance.org/downloads/ downloads section]. Proceed to install.
 
If you are making an online server, make sure you check the {{verbatim|Install as Service}} option.
 
Now that you have installed the R3 server, [http://fazdev.alleg.net/FAZ/R4Build/AllSrvR4.zip grab the R4 binaries] and overwrite the old files.


{{Substep|2.1|Update the artwork}}
{{Substep|2.1|Update the artwork}}

Revision as of 14:49, 27 January 2009

Allegiance works on a client-server system where players connect to centralized servers to play. You can put up your own servers on the Master Lobby (after getting it cleared with Tigereye) so that other players may play on it. You can also set up private LAN servers to test out new cores or hold LAN parties with your friends (without anyone's clearance ;)).

Running an online server

First off, there are a few things regarding Allegiance servers that needs to be clarified.

  • You will need access to the router or gateway that your server connects to. This is because the server requires port forwards if you don't have a public IP address when behind a router.
  • Setting up the server requires a fairly good knowledge of Windows and involves editing the registry. Do not attempt this if you are unsure of any of the steps involved. The guide will make it as simple as possible, but in-case you are unsure about anything, post in the Helpline.
  • If you plan on setting up a server for use in the main lobby for general use:
    • You need to get it cleared with the Administration. This is to prevent a long list of "My Game" servers cluttering the game lobby. Contact Tigereye for this.
    • It is a good idea to post in the forums and check for the lag the players get to your server's IP from different parts of the world. If your server has worse lag than the current servers, no one will play on them.


1 Prepare the computer

Make sure your server machine has the most recent Windows updates and DirectX runtimes.

If you are behind a router, you will need forward ports 2300-2400 UDP to the server machine.


2 Install the server
You must install the Server as a service for online play.

Download the R3 server pack from FreeAllegiance.org's downloads section. Proceed to install.

If you are making an online server, make sure you check the Install as Service option.

Now that you have installed the R3 server, grab the R4 binaries and overwrite the old files.

2.1 Update the artwork

Copy over the artwork directory from an up-to-date game client install over to the server's artwork directory. This is to ensure that the server has the most recent core and model files. Do not forget to do this.

These files you have to copy to server from client artwort directory:

  • .igc files (cores and maps)
  • .chv files (models/hitboxes)

The server doesn't need the following file types:

  • mdl files (config and textures)
  • wav/ogg files (sounds)
  • mml files (ingame help)


3 Configure the server
File:Online Setup Registry.png
This is what the 1.0 key should look like when you are done with this section.

Open up the "Run..." prompt (Windows+R), type in regedit and confirm with Ok. The Registry Editor will pop up. Now, a word of warning. The registry is Windows' brain. Any mistake you commit here could mean a dead Windows install. With that out of the way:

Make a backup of the registry before you do anything. From the "File" menu pick Export. Set Export range to "All" and save the file somewhere safe.

Now navigate to the following key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Games\Allegiance\1.0\Server

The games running on a server are determined by pairs of "GameN" and "CoreN" values, where N is an integer from 1 onwards. In specific: the n-th's game will be named after the value in "Gamen" and will run the core specified in "Coren". Choose which core(s) you want to run on the server and create keys for them.

For example, if you want your server to run a DN game, a GoDII game and a CC_03 game, you will have keys looking somewhat like this:

  • Game1: DN 4.60
  • Core1: dn_000460
  • Game2: GoDII R4
  • Core2: GoDII_R4
  • Game3: Community Core R3
  • Core3: cc_03

You may also want to change the MaxPlayersPerGame values, which sets the player limit on each game. Consult the Bandwidth Requirements in the server manual to see the number of players that your connection supports; the default is 8 and the maximum is 200. Make sure you set this number while in decimal mode.


Warn.png
Warning! Double and triple check your entries. A wrong entry will crash your server -- put special care on the core entries.


Info.png
Note If you are running the server on the BETA lobby, change the "CfgFile" key to:
http://fazdev.alleg.net/FAZ/FAZ.cfg

You can now close the Registry Editor.


6 Start the Server

From the Control Panel, pick "Administrative Tools" then "Services". If you can't find it, fire up the "Run..." dialog and run services.msc. Find and start the MS Allegiance Game Server service.

If all went well, the server will show up in the lobby that you chose.


7 Get TAG

If you are not running the server on the regular lobby, skip this section.

If you want to have stats reporting on your server, you'll need to install TAG on it. http://www.freeallegiance.org/forums/index.php?act=Msg&CODE=4&MID=225 Contact Tigereye] for more details. You'll also need to setup a couple of text files if you want to have the official ranks displaying on your server. The ranks.txt file can be obtained from Tigereye. It can also be manually built, but we'd suggest not doing that.


Finish!

Congratulations! Your server is now (hopefully) up and running!

Further reading

  • Zapper's Server Setup Crash Course. - This thread contains a large amount of information, some of which is not covered here.
  • This post by YourPersona explains the different Event IDs used by the server. These entries show up on the "Application Event Log" under "Administrative Tools". This information is valuable when troubleshooting server problems.