Miscellaneous

Installation of Perl modules on Gnu/Linux

Note:
Users have reported that on some debian systems the libyaml-perl package needs be installed too to get the installation of the packages done.

Manual installation

Make sure you download the right module for your perl version

  1. Get the DBI Perl Module: http://www.cpan.org/modules/by-module/DBI/
  2. Get DBD-Mysql Perl Module: http://www.cpan.org/modules/by-module/Mysql/
  3. Get the Config Tiny Module: http://www.cpan.org/modules/by-module/Config/

Install the DBI module first and then the DBD-MySQL module.

shell> tar -xzvf modulename.tar.gz
shell> cd modulename

shell> perl Makefile.PL
shell> make
shell> make test
shell> make install

Repeat the above commands for every module you have to install.

Automatic installation via CPAN

Launch the CPAN modul:

shell> perl -MCPAN -e shell

If you run the cpan command for the first time you will be asked for some information first. After the use the following commands:

cpan> install Bundle::DBI
then:
cpan> install Bundle::DBD::mysql
then:
cpan> install Config::Tiny

 

Installation of Perl modules on Windows

Manual installation

Make sure you download the right module for your perl version.

  1. Get the DBI Perl Module:http://ppm4.activestate.com/idx/DB.html (Search there for DBI)
  2. Get the DBD-MySQL Module: http://ppm4.activestate.com/idx/DB.html (Search there for DBD-MySQL)
  3. Get the Config-Tiny Module: http://ppm4.activestate.com/idx/CM...CO.html (Search there for Config-Tiny)

As the result you should have two ppmx files saved to your HD.

Then use the ppm command to install the ppmx modules:

C:\> cd path/to/save/location/of/modules
C:\>ppm install DBI-version.ppmx
C:\>ppm install DBD-mysql-version.ppmx
C:\>ppm install Config-tiny-version.ppmx

Make sure you keep the order of the commands.

Installation from the Internet

It is the same as above, but you do not need to download the modules.
Just juse the following commands:

C:\>ppm install dbi
C:\>ppm install dbd-mysql
C:\>ppm install config-tiny

Import from log files

If you have old log files from your server you can import those into HLStats.
First you need to configure HLStats and add the game, from which the log files are.

Add a server for this game and use the IP:Port from the server from which the log files are.
Go to the location where hlstats.pl is saved. Then type the following command:

cat /path/to/log/files/*.log | ./hlstats.pl --stdin -m MODE -i SERVERIP -p SERVERPORT -t >/dev/null 2>&1

Options are: