Documentation
HomePage
Requirements :
1) Mysql client and server
Installation :
1) Get the source code in download section (use SVN for teeworlds 0.5)
2) Create a mysql database and setup with the script sql/teewars.sql (or sql/teestat.sql) with the command :
mysql -D <base> -p -u <user> < sql/teewars.sql
3) Enter "make" in the directory to launch the compilation
NB: If you have a 64 bits version of mysqlclient library, build with :
make LDFLAGS="-L/usr/lib64/mysql"
4) Copy the binary file "teestat" in the teeworld_srv directory
Running (teestat v0.2/0.3 and SVN) :
1) Create a fifo with "mkfifo stats"
2) Run the teeworld server : "./teeworld_srv > stats &"
3) Edit config file "teestat.conf"
3) Run teestat with : "./teestat -d -l logfile -c teestat.conf stats" ('-d' for daemon mode, see ./teestat -h)
use -s option if you want to see the Teeworlds server outputuse -r option if you're experiencing high CPU usage while teestat is running (seems to happen very rarely)
4) You can use php scripts from php/ on your website (change mysql and language config in file conf.php)
1) Edit the teestat.po file (located in the php/ directory) and translate each line.
2) Create two subdirectory in locale/ as follow
locale/lang_LANG/LC_MESSAGES
Where lang_LANG is the language in which you translated the file. (execute the command locale if you don't know exactly how it should be written)
3) Save the file teestat.po in this directory.
4) Execute the command: msgfmt -o teestat.mo teestat.po
5) The website should be translated in this language, if you correctly edited the conf.php file
6) Please send us the teestat.po file. ![]()

Teestat