Download
Summary
Features
Requirements
Installation
Configuration of tribesserverstat.pl and tribesserverstatindex.pl (if applicable)
$settings{configfile} is the location of your tribesserverstat.conf (or tribesserverstatindex.conf if editing tribesserverstatindex.pl) file. For example, /home/httpd/tribesserverstat.conf. Note that you put the pathname to tribesserverstat.conf, not the URL.
Configuration of tribesserverstat.conf and tribesserverstatindex.conf (if applicable). tribeserverstatindex.conf has fewer options, but the ones that are there are essentially the same as the tribesserverstat.conf file. Both files are WELL documented.
template is the full path to your template file. Make sure you use forward slashes, even if you are running Windows (i.e. c:/wwwroot/tribesserverstat.template).
defrefresh is the default number of seconds the web browser should automatically reload this script. The lower the number, the higher the load on your web server.
minrefresh is the minimum number of seconds in which the web browser can automatically reload this script. The lower the number, the higher the load on your web server. (Only REALLY useful if refresh is specified as a URL option. See URL Options Below.)
maxplayername is the maximum number of characters in a players name that will be shown in the player list. For example, if set to 15 then player "ir0x0redyourm0mandshel0vedit" would display as "ir0x0redyourm0m...".
serverip needs to be set to the IP address of your game server.
serverport needs to be set to the port number of your game server.
qstatpath is the directory where qstat or qstat.exe is located. Make sure you use forward slashes, even if you are running Windows (i.e. c:/qstat).Do not include the actual qstat executable in this setting, just the directory where it lives.
imagepath is the full directory path to where your map and icon images are stored. Make sure you use forward slashes, even if you are running Windows (i.e. c:/wwwroot/images).
imageurl is the URL to where your images are stored (i.e. http://www.yourdomain.com/images). Relative URLs are fine, too (i.e. /images).
admins is a comma-delimited list of your admin's names. Any player in the player list whose name matches a name you configure here will have a small red dot after their name in the player list.
timezone is the 3-letter abbreviation of your timezone WITHOUT daylight savings time (i.e. PST for Pacific Standard Time).
dsttimezone is the 3-letter abbreviation of your timezone while in daylight savings time, or leave blank if you (or your geographic region) chooses not to observe daylight savings time (i.e. PDT for Pacific Daylight Time).
*color is where you set the colors of the different player types generated by QStat's -htmlnames option. To avoid breaking things, don't set any of the values to the default of another (i.e. defaults of QStat are aliascolor=blue, playercolor=white, botcolor=green, tribecolor=yellow, so DON'T set aliascolor=white, for example).
debug, if set to 1, will display additional debugging information on the web page. WARNING - this should generally be left off.
Configuration of tribesserverstat.template
There are several Cascading Style Sheet (CSS) elements referenced by tribesserverstat:
body { background-color: #404040; padding: 0 0 0 0; margin: 2 2 2 2 } defines your page background and margins.
a:link { text-decoration: none; color: #404040 } defines how hyperlinks are displayed.
a:visited { text-decoration: none; color: #404040 } defines how visited hyperlinks are displayed.
a:active { text-decoration: none; color: #E0E0E0 } defines how active (clicked) hyperlinks are diplayed.
a:hover { text-decoration: none; color: #E0E0E0 } defines how hyperlinks pointed at by the mouse are displayed. As far as I know, this property only works for MSIE.
.serverinfo { background-color: #707070 } is the background color for the server information section.
.mapinfo { background-color: #707070 } is the background color for the map information section.
.playerlist { background-color: #707070 } is the background color for the player score list.
.teamlist { background-color: #505C9B; color: #C0C0C0 } is the background color and font color for the team score list.
.ruleslist { background-color: #707070 } is the background color for the server rules and settings list.
.ruleon { color: #303030 } is the color of the "on" rule bullet.
.ruleoff { color: #009900 } is the color of the "off" rule bullet.
.admin { color: #880000 } is the color of the bullet displayed after an admin's name in the player list.
.map {border-style: solid solid solid solid; border-width: 3; border-color: #606060 } defines how the map image is displayed.
There are also several tribesserverstat variables you may reference:
$settings{refresh} is the number of seconds until the web page will automatically refresh.
$settings{imageurl} is the URL to your images directory.
$settings{tssversion} is the version number of tribesserverstat.pl.
$servername is the name of your game server.
$curplayers is the number of currently active players on your game server.
$maxplayers is the maximum allowed number of players on your game server.
$mapname is the name of the map currently running on your game server.
$mapimage is the image of the map currently running on your game server.
$playerinfo is the player information table (player name, kills, and time on server).
$rulesinfo is the server rule and settings information table.
$debug will show a debug section listing set variables.
URL Options
server specifies the server IP address and port number.
version specifies the version of Tribes running on the server. The value can ONLY be Tribes or Tribes2. Any other value will break things.
refresh specifies the time (in seconds) between refreshes of the page. If this number is less than the minrefresh setting in the .conf file, the minrefresh value will be used instead.
The tribesserverstatindex.pl script allows only for the specifying of the refresh option. All others will be ignored.
Examples of use:
http://www.augustknights.com/cgi-bin/tribesserverstatindex.pl?refresh=240 will make the tribesserverstatindex.pl page refresh every 4 minutes (240 seconds).
http://www.augustknights.com/cgi-bin/tribesserverstat.pl?server=63.161.23.180:28000&version=Tribes2&refresh=60 will make the tribeserverstat.pl page monitor the Tribe2 server at 63.161.23.180:28000, refreshing the page once per minute (every 60 seconds).
Note that the version option must be specified with the server option in order for tribesserverstat.pl to function properly. tribesserverstat will NOT correctly detect the version of Tribes running on the target server. This is NOT a bug, this is the script operating as designed.
Too late for "-T" option at c:\inetpub\scripts\tribesserverstat.pl line 1.This is due to the fact that one minor modification needs to be made to tribesserverstat.pl in order for it to work on a Win32 platform (THANKS, ZIPPY!):
How do I add custom images for maps that aren't in the standard distribution?
Why is it that there is one player in the playerlist that doesn't get color attributes with is name/clan tag?
UPDATE: This QStat bug is fixed in version 2.4d and later (though 2.4e is required if monitoring a patch level 24834 or later server).
Why doesn't the team score increment above 0 until it reaches 3? Oh, and, why do only 55 players show up in the player list?
y out of my control. Sorry for any hassle this might cause.
Why doesn't TSS work with Operating System X or Web Server Y?
Support
History
1.1 | added Dr. Chmod's Tribes 1 screenshot pack to the standard distribution fixed a few cosmetic things that were bugging me tested to ensure compliance with T2 patch level 24834 |
1.01 | fixed all the stuff I broke for Windows users (sorry...) |
1.0 | added support for multiple servers added support for Tribes 1 server queries added support for QStat's -htmlnames option (applies to T2 server queries only) added a bunch of silly graphics fixed a couple of minor typos in the code and the documentation removed a couple of bits of extraneous code added expiration META tags to the generated HTML changed the name due to the increased scope of the project felt brave enough to claim this stuff is non-BETA |
0.52 | removed some unneeded code in t2serverstat.pl removed references to t2log.pl in t2serverstat.pl and t2serverstat.conf added missing screenshot for map Santuary to images replaced default.jpg with something less, well, dumb |
0.51 | minor update to include support for QStat 2.4c |
0.5 | initial release |
To Do
better support for mission types other than CTF
decoding of the "status" rule to give some useful information about the server
(hmm...I'm sure there's more...suggestions are always welcome...)
csserverstat was conceived and scripted by Kendokan. Thanks to [taCo]GrinGo and [GEX]MadMatt for contributing heavily to the creation of cslog.pl, and Unit for not only alpha-testing everything under Windows, but actually making it work. Additional thanks to Marco Grimm and Niklas Aldergren who turned cslog.pl into something that's actually useful, and Nathan Woodcock for testing it under FreeBSD. Thanks, guys.