Dedicated Server Setup: Difference between revisions

From Empires Wiki
Jump to navigation Jump to search
No edit summary
Line 3: Line 3:
== Dedicated Server (Windows) ==
== Dedicated Server (Windows) ==
=== Downloading ===
=== Downloading ===
First of all you need the [http://steampowered.com/download/hldsupdatetool.exe HLDS Update Tool]. This is what we use to update/download the server. You will also need Empires Dedicated Server from the [http://www.empiresmod.com/drupal/node/14 Download Page].
==== Server Files ====
 
* First of all you need the [http://steampowered.com/download/hldsupdatetool.exe HLDS Update Tool]. This is what we use to update/download the server.
If you want to use [http://www.sourcemod.net/ SourceMod], make sure you download it before going any further.
*You will also need Empires Dedicated Server from the [http://www.empiresmod.com/drupal/node/14 Download Page].
==== Plugins ====
If you want to use [http://www.sourcemod.net/ SourceMod], make sure you download it before going any further. SourceMod is required for several commonly-used plugins.


=== Installing ===
=== Installing ===
* First we need to download the SDS (Source Dedicated Server). To download we open up hldsupdatetool.exe and download the tool to an arbitrary location on your machine, for example:  
* First we need to download the SDS (Source Dedicated Server). To download we open up '''hldsupdatetool.exe''' and download the tool to an arbitrary location on your machine, for example:  
  C:\HL2DS
  C:\HL2DS
* When you have finished installing the update tool open the install folder in a command prompt and type:
* When you have finished installing the update tool open the install folder in a command prompt and type:
  hldsupdatetool.exe -command update -game "orangebox" -dir C:\HL2DS   
  hldsupdatetool.exe -command update -game "orangebox" -dir C:\HL2DS   


* If that doesnt work or your stuck or having trouble getting orangebox then you can go [http://www.srcds.com/db/engine.php?subaction=showfull&id=1097362093&archive= HERE] for a more indepth tutorial on how to get it.
* If that doesn't work, are stuck or are having trouble getting orangebox, then you can go [http://www.srcds.com/db/engine.php?subaction=showfull&id=1097362093&archive= HERE] for a more in-depth tutorial on how to install it.


{{Tip|Make sure you replace C:\HL2DS with your install path if it's different.}}
{{Tip|Make sure you replace C:\HL2DS with your install path if it's different.}}


This will download all files necessary to host an orange box server (and Empires). And remember to "Go get yourself a cup of coffee." as valve said, this will take some time
This will download all files necessary to host an orange box server (and Empires). And remember to "Go get yourself a cup of coffee." as Valve said; this will take some time!


* Install the Empires Dedicated Server files to "C:\HL2DS\orangebox\empires" (use your own install path).
* Install the Empires Dedicated Server files to "C:\HL2DS\orangebox\empires" (use your own install path).
* Create a shortcut of '''srcds.exe''' and place it where you want then go to properties of the shortcut. Add the following to the end of the shortcut target:  
* Create a shortcut of '''srcds.exe''' and place it where you want. Then go to the properties of the shortcut. Add the following to the end of the shortcut target:  
  -game empires +maxplayers 14 -port 27015 -console +map emp_canyon -autoupdate
  -game empires +maxplayers 14 -port 27015 -console +map emp_canyon -autoupdate
It sould look like this;
It should look like this:
  srcds.exe -game empires +maxplayers 14 -port 27015 -console +map emp_canyon -autoupdate
  srcds.exe -game empires +maxplayers 14 -port 27015 -console +map emp_canyon -autoupdate
{{Tip|You can adjust your port and maxplayers via the shortcut or the ''server.cfg'' file.}}
{{Tip|You can adjust your port and maxplayers via the shortcut or the ''server.cfg'' file.}}
Line 40: Line 42:


== Dedicated Server (Linux) ==
== Dedicated Server (Linux) ==
Linux server is unsupported. Valve's version of Source 2007 engine for Linux is too slow to handle any decent amount of players.
Linux server is unfortunately unsupported. Valve's version of the Source 2007 engine for Linux is too slow to handle any decent amount of players, and becomes unstable very, very quickly.


== Tip and Tricks ==
== Tip and Tricks ==
=== Modularise server.cfg settings ===
=== Customize server.cfg settings ===
As the server.cfg (amongst others) can be overwritten during upgrade and you may wish to have your server run in different "modes" such as password protected clan match/practice, increase resource rates for "tank wars", etc it's best to treat your server.cfg as "read-only" and any default settings you wish to have place them in a unique filename e.g. myserver.cfg then add a single line to the end of server.cfg "exec myserver.cfg"
As the server.cfg (amongst others) can be overwritten during upgrade and you may wish to have your server run in different "modes" such as password protected clan match/practice, increased resource rates for "tank wars", etc, it is best to treat your server.cfg as "read-only".
 
Any default settings you wish to use can be placed in a separate file such as "myserver.cfg". At the end of server.cfg, you can then add the line "exec myserver.cfg".
 
This way, server.cfg will then run myserver.cfg and override any server.cfg settings.


This way server.cfg will then run myserver.cfg and override any server.cfg settings.
Loading various server "modes" can then be done by calling them in the server console:
For example to set your server's hostname you'd add the following to myserver.cfg
<pre>
hostname "My Empires Server"
</pre>


In addition to myserver.cfg you can then create modified files to accommodate your various server "modes" which can either be called via
<pre>
<pre>
rcon exec tankwars.cfg
rcon exec tankwars.cfg
</pre>
</pre>
Or if you want this mode to automatically survive a map change/server restart, add another line to server.cfg below your "exec myserver.cfg" entry.


If you want a mode to be automatically loaded after map change / server restart, you can add another line to server.cfg below the "exec myserver.cfg" entry.


== Related Links ==
== Related Links ==
* [http://server.counter-strike.net/server.php?cmd=cmdall General HL2 Directives/Commands]
* [http://server.counter-strike.net/server.php?cmd=cmdall General HL2 Directives/Commands]
* [http://www.sourcemod.net/ SourceMod]
* [http://www.sourcemod.net/ SourceMod]

Revision as of 17:55, 23 May 2012

Home > Dedicated Server Setup

Dedicated Server (Windows)

Downloading

Server Files

  • First of all you need the HLDS Update Tool. This is what we use to update/download the server.
  • You will also need Empires Dedicated Server from the Download Page.

Plugins

If you want to use SourceMod, make sure you download it before going any further. SourceMod is required for several commonly-used plugins.

Installing

  • First we need to download the SDS (Source Dedicated Server). To download we open up hldsupdatetool.exe and download the tool to an arbitrary location on your machine, for example:
C:\HL2DS
  • When you have finished installing the update tool open the install folder in a command prompt and type:
hldsupdatetool.exe -command update -game "orangebox" -dir C:\HL2DS  
  • If that doesn't work, are stuck or are having trouble getting orangebox, then you can go HERE for a more in-depth tutorial on how to install it.
Tip Tip: Make sure you replace C:\HL2DS with your install path if it's different.

This will download all files necessary to host an orange box server (and Empires). And remember to "Go get yourself a cup of coffee." as Valve said; this will take some time!

  • Install the Empires Dedicated Server files to "C:\HL2DS\orangebox\empires" (use your own install path).
  • Create a shortcut of srcds.exe and place it where you want. Then go to the properties of the shortcut. Add the following to the end of the shortcut target:
-game empires +maxplayers 14 -port 27015 -console +map emp_canyon -autoupdate

It should look like this:

srcds.exe -game empires +maxplayers 14 -port 27015 -console +map emp_canyon -autoupdate
Tip Tip: You can adjust your port and maxplayers via the shortcut or the server.cfg file.
Tip Tip: More command-line options are available at the Valve Developer Community Wiki.

Configuration

Next, edit your mapcycle.txt and server.cfg files to your liking.

Warning  Warning: When editing your server.cfg remember to change your rcon_password and hostname directives!
rcon_password "pass"  //Your rcon password
hostname "Servername" //The name of your server

These are the most important settings to change, there are more in the cfg so test around what is best for you.

Starting

You should now be able to double-click your server shortcut, which will start up your dedicated server.

Dedicated Server (Linux)

Linux server is unfortunately unsupported. Valve's version of the Source 2007 engine for Linux is too slow to handle any decent amount of players, and becomes unstable very, very quickly.

Tip and Tricks

Customize server.cfg settings

As the server.cfg (amongst others) can be overwritten during upgrade and you may wish to have your server run in different "modes" such as password protected clan match/practice, increased resource rates for "tank wars", etc, it is best to treat your server.cfg as "read-only".

Any default settings you wish to use can be placed in a separate file such as "myserver.cfg". At the end of server.cfg, you can then add the line "exec myserver.cfg".

This way, server.cfg will then run myserver.cfg and override any server.cfg settings.

Loading various server "modes" can then be done by calling them in the server console:

rcon exec tankwars.cfg

If you want a mode to be automatically loaded after map change / server restart, you can add another line to server.cfg below the "exec myserver.cfg" entry.

Related Links