StaTee teeworlds statistics version 0.3.0
This is now the total new program for the teeworlds statistics. It is optimal for linux servers. More features and a very fast main program. Please follow the steps at "Short Installation Guide" to install the program.Download
PHP-script for the websitex86_64 binary
x86 binary
Source
Requirements:
- Teeworlds-server version 0.5.X
- Any http-server
- PHP (with enabled magic-quotes)
- MySQL-Server
- MySQL-Client-lib
- Linux x86/x86_64
Short Installation Guide
- Create a new Database on your MySQL-Server.
- Download the binary for your architecture and store it in the folder of the teeworlds server.
- Extract the downloaded archive by typing "tar -xzf StaTee-bin-0.3.0.tar.gz".
- Take all options from the statee_sample.cfg into your custom teeworlds-config and modify the options to your needs. All of the options are needed to let the program run. Take care that you does not change the sv_max_clients while the server runs. That could cause a segmentation fault. On every server statee_sv_id has to be another number between 1 and 65000 or so.
- If you want to load old log-files (from teeworlds servers higher than 0.5.0) please rename the log to "statee_server<statee_sv_id>.log". <statee_sv_id> has to be the value you defined in the config. WARNING: sv_max_clients has to be greater than the value defined in the config from the old server, that produced the log. The file is deleated after the program read it. The reading can take some minutes. DON'T START STATEE AT THIS POINT!!!
- Switch to your web folder (for example /var/www/).
- Store the PHP-script to this point.
- Extract it here: "tar -xzf StaTee-website-0.3.0.tar.gz".
- Edit the file setup.php and replace all by your data.
- Edit the file config.php.
- Run your browser and browse to the location of the script setup.php (for example http://localhost/setup.php). If it shows you "It works" all is fine.
- Delete the file setup.php.
- Now you can switch to your teeworlds folder again.
- NOW you can run your servers with "./statee <CONFIG_FILE>". Please wait for one or two seconds if you run your servers the first time with that configs to avoid problems at the inserting of a new server in the database. The next time you can start all servers without a pause between. If you use more than one new server id you have to pause between again.
- Now have fun using the statistics
Server configuration file
Here are some options you should insert into your server-config for statee:- statee_mysql_host hostname of the mysql-server
- statee_mysql_user user of the mysql-server
- statee_mysql_pwd password for the mysql-user
- statee_mysql_db mysql database
- statee_mysql_port port of the mysql-server (let this free if the host is localhost)
- statee_sv_id an id for the teeworlds-server (every teeworlds server needs an own id)
- statee_sv_description a description displayed on the website
- statee_sv_binary the way you would start the teeworlds-binary (./teeworlds_srv)
- statee_chatlog what chat-messages should be logged by statee please give a number (0=all, 1=all user messages, 2=only server messages, 3=only team messages, 4=nothing, 5=no team messages, 6=no team or server messages)
- statee_gametype if you are using a mod with statee this specifies how statee handles the mod, as "DM","TDM","CTF","BALL"
- sv_teeworlds the normal maprotation from teeworlds