Dedicated Server
You can launch a dedicated server from within the game itself, just like with Allied Assault, but this guide will take you through the basic steps that allow you to launch the server from an icon on your desktop without having to launch the game. This is especially useful if you have a computer with a low end video card which would not normally support the game since the video is not required for a dedicated server.
I expected to be able to setup the dedicated server following the same instructions as for Allied Assault, but it is a little different with Spearhead, and a little easier.
Spearhead installs within the same directories as Allied Assault After you have download and installed the patch and the dedicated server file, you will find the file moh_spearhead_server.exe in your MOHAA Directory.
In the MOHAA/mainta directory, the program also installs server config files for you (server.cfg). It installs the following:
| mohaa/mainta/ffa.cfg |
For free-for-all maps |
| mohaa/mainta/objective.cfg |
For Objective maps |
| mohaa/mainta/team.cfg |
For Team maps |
| mohaa/mainta/tow.cfg |
For Tug-of-war maps |
| mohaa/mainta/round.cfg |
For round-based-maps |
Open each of these config files and edit them, entering your server name and changing any other settings you wish for your server. Use Windows Notpad, edit the few fields and save. Note that for most of the settings, you just turn them on or off, 1=on and 0=Off.
You control your game settings through these Server Config files. There are also many other commands or settings you can add later... once you have your server running and you understand how to run it.
The last step to take is to setup the shortcut on your desktop.
This is much like Allied Assault. After you have installed the above files, go to your MOHAA directory and right click the file named moh_spearhead_server.exe , then "create short cut". It will be created in the same directory “shortcut to moh_spearhead_server.exe“
Move this short cut to your desktop (or where ever you want it for launching the server later).
Now, right click on this shortcut and edit properties. In the shortcut properties, there is a field called target (in Win XP) and you will see that it already has the path for the server.exe file. For a standard install, it will read "C:\Program Files\EA GAMES\MOHAA\moh_spearhead_server.exe" with the quotes and all. AFTER the quotes, add ONE space (important), then enter the following:
+set dedicated 1 +set ui_console 1 +set g_gametype2 +exec team.cfg Be careful to enter this correctly, AFTER the quote mark and a space. When done, click on Apply. Now, rename the shortcut to something appropriate, such as Spearhead Team Match Server.
For the other game types, I just copy and paste this shortcut, making a duplicate. Renamed the shortcut to another game name and edit the target in the properties so that the game type field has the correct number for the game, and the proper config file is used. For example, for the TOW game, the target field would be input as
+set dedicated 1 +set ui_console 1 +set g_gametype5 +exec tow.cfg
Repeat these steps for each game type above if you plan to run them all. This way you will have one shortcut for each game type.
Game Types, Number, and Config file.
Free For all (DM) = game type 1 - - Config file = ffa.cfg Team Based (TM) = game type 2 - - Config file = team.cfg Round Based = game type 3 - - Config file = round.cfg Objective Game = game type 4 - - Config file = objective.cfg Tug of War (TOW) = game type 5 - - Config file = tow.cfg
Notes or Comments The Spearhead CD is not required to be present when the dedicated server is executed.
I suggest that you set something for maxping to keep your games performing well. The default in the configs is 0 meaning people with very high pings can join.
The admin commands in Spearhead are the same as Allied Assault. You can find some of the very basic commands on my Server Admin page.
If using a router or other firewall that blocks ports, see my router setup page for port settings.
Copyright 2002-2006 TMMworld.com All Rights Reserved ( read more)
|