VSP Stats Game Log Processor - Quake 3 ExcessivePlus Community version 0.45-xp-1.1.2, based on the VSP Stats Processor 0.45 by Myrddin.
Related GitHub repository: https://github.com/evilru/quake3-vsp-stats.
- copy docker-compose.yml and docker-compose.override.yml to your disk into the same folder
- configure the container (see below)
- run the docker stack
docker-compose up -d
The configured games.log will be checked every 15 minutes for new games.
The following configuration options need to be done in the docker-compose.yml.
Mount your games.log.
Needs to be placed in the volumes section of the web service.
services:
web:
volumes:
- /path/to/your/games.log:/vsp/games.log
Make sure to set username and password for the database!
services:
db:
environment:
MYSQL_USER:
MYSQL_PASSWORD:
web:
environment:
DB_USERNAME:
DB_PASSWORD:
The parser can be configured with the following ENV variabels. They need to be placed in evnironment section of the web service.
default: q3a-osp
The parser supports the following values:
q3a Quake 3 Arena
q3a-battle Quake 3 Arena BattleMod
q3a-cpma Quake 3 Arena CPMA (Promode)
q3a-freeze Quake 3 Arena (U)FreezeTag etc.
q3a-lrctf Quake 3 Arena Lokis Revenge CTF
q3a-osp Quake 3 Arena OSP
q3a-ra3 Quake 3 Arena Rocket Arena 3
q3a-threewave Quake 3 Arena Threewave
q3a-ut Quake 3 Arena UrbanTerror
q3a-xp Quake 3 Arena Excessive Plus
default: 1
Check uniqueness of game start date, set to 0 if log doesn't have server date information
default: vsp_
The table prefix used in the database
default: db
This is the internal hostname of the dockerhost, no need to change that
default: vsp
If not available, this database will be created on the first run.
Should be the same as MYSQL_DATABASE.
Username used to connect to the database.
Should be the same as MYSQL_USER.
Password used to connect to the database.
Should be the same as MYSQL_PASSWORD.
No default value, to enable this feature, set a password with at least 6 characters.
All VSP commands can be called from the commandline and from the browser. The docker image comes with the following cronjob.
The webinterface is available under the following url: http://yourserver.com/vsp.php.
The VSP Stats page can be configured with the following ENV variabels. They need to be placed in evnironment section of the web service.
default: HERE GOES YOUR SERVER TITLE
default: Your Server Name and IP goes here
default: Your Game and Mod type goes here
default: List your admins here
default: List your E-Mail and/or IM account here
default: http://my.web_site_goes_here.com
default: My web site name goes here
default: My quote goes here
default: fest
The skin value will be stored in a cookie, this value will be used if no cookie is present.
The theme supports the following values:
- avalanche
- avalanche-b
- avalanche-i
- camo
- cyber
- evilsmurfs
- f8tal-b
- fest
- ignited
- sssp
- swat
- twat
- xp
Mount your own images.
Needs to be placed in the volumes section of the web service.
services:
web:
volumes:
- /path/to/your/server.gif:/vsp/pub/images/server.gif
- /path/to/your/logo.gif:/vsp/pub/images/logo.gif
You can configure the vsp container like you would do it without docker by adding additional configuration files.
Please note: only the cfg-default.php in the container will pickup the environment variables.
-
Create a copy of pub/configs/cfg-default.php, update the database configuration and set a different table_prefix.
Mount it into the image.services: web: volumes: - /path/to/your/cfg-ra3.php:/vsp/pub/configs/cfg-ra3.php
-
Mount your games.log
services: web: volumes: - /path/to/your/ra3.log:/vsp/ra3.log
-
Copy the import script and add a call for your configuration
php /vsp/vsp.php -c /vsp/pub/configs/cfg-ra3.php -l q3a-ra3 -p savestate 1 ra3.log
-
Mount your import script
services: web: volumes: - /path/to/your/import.sh:/vsp/docker/import.sh
-
Call it from the browser
http://yourserver.com/pub/themes/bismarck/index.php?config=cfg-ra3.php