How to setup your Half Life 1 server for Psychostats

From PsychoWiki

Jump to: navigation, search

You need to setup your game server to produce logs with information that psychostats can use. This is how its done with Counter Strike 1.6 and Condition Zero, it should be the same for Day of Defeat 1.3, Team Fortress Classic and any other Half Life 1 based mod.

You will need to edit some files to enable plugins, change configs etc, to do this download the required file from the game server with an ftp program and using a text editor like notepad make your changes then reupload the file.

Contents

[edit] Server.cfg

Open your server.cfg found in your main game directory (for cs1.6 this will be the cstrike folder) and add these lines:

log on
mp_logfile 1

These lines tells the game server to log the game info to file so psychostats has something to read. Now to fill the logs with usefull information for psychostats we need to enable some sort of stats logging.

Below you will find instructions on how to enable the stats logging features of amxmodx, amx and statsme. You only need to use one of these methods and they will all produce logs with all the required info for psychostats to work properly including headshot, accuracy information. If you do use any of these you will also need to add this line to your server.cfg:

mp_logdetail 0

If mp_logdetail is set to anything other than 0 when either amxmodx, amx or statsme is running some of the game information will be recorded twice which will affect the accuracy of your stats.

[edit] Amx Mod X (amxx)

For servers using amxmodx open your plugins.ini file found in your addons/amxmodx/configs/ folder and enable the stats_logging plugin. To enable a plugin you need to remove the semicolon from in front of the plugin name.

Before, plugin not running:

;stats_logging.amxx; weapons stats logging (CSX Module required!)

After, plugin now running:

stats_logging.amxx; weapons stats logging (CSX Module required!)

Now open your modules.ini file found in the same folder as the plugins.ini and enable the csx module by also removing the semicolon from in front of it. Please note the new versions of amxmodx does this automatically.

[edit] Amx Mod (amx)

For servers using amx open your plugins.ini file found in your addons/amx/config folder and enable the stats_logging plugin. To enable a plugin you need to remove the semicolon from in front of the plugin name.

Before, plugin not running:

;stats_logging.amx   ; weapons stats logging (CSStats Module required!)

After, plugin now running:

stats_logging.amx   ; weapons stats logging (CSStats Module required!)

Now open your modules.ini file found in the same folder as the plugins.ini and enable the CS Stats module by also removing the semicolon from in front of it, you will also need to add the CS stats module to metamod's plugins.ini, an example file is given with your amx download.

[edit] Stats Me

Follow the documentation for statsme found here: http://docs.unitedadmins.com/statsme/en/

[edit] If you dont use Amx Mod X, Amx Mod or Stats Me

If your not using Amx Mod X, Amx Mod or Stats Me then you can set mp_logdetail to either 1,2 or 3 in your server.cfg.

  • Setting it to 1 = damage and kills from the enemy is logged.
  • Setting it to 2 = damage and kills against team mates are logged.
  • Setting it to 3 = both of the above are logged.

The only negative with using mp_logdetail instead of a dedicated stats plugin is that it does not log all of the information that psychostats uses such as headshots and accuracy, these fields will be left blank or show a 0 in psychostats.

[edit] Finished

Now that your server is producing logs with all the required info all you need to do is point your psychostats install to the logs, for counter strike this would be the cstrike/logs folder. If your server does not have a logs folder then run it for a couple of rounds with "log on" in your server.cfg and a folder will be created.