Implementation of the update TGM Status Script is a success. It queries a Soldier of Fortune 2 (really a Quake 3) server through UDP, then returns and formats server information. Sounds simple, but harder in practice.feedback
Keeping with clean, object oriented style, I'm working on customizable countdown code. The countdown would announce the opening and closing time of the server, since some servers have specfic playing hours.
Here's a snippet:
class timeToPlay {
// takes a schedule object as an arg
var $milenkoTime; var $currentTime; var $secondsToGo; var $ttg; var $serverUp;
function timeToPlay($schedule) {} function getSecondsToGo() {} function getTimeToGo() {} function showSeconds() { echo $this->ttg["seconds"]; }
function showMinutes() { echo $this->ttg["minutes"]; }
function showHours() { echo $this->ttg["hours"]; }
function getIsUp() { return $this->serverUp; } }
Pretty ugly already (not like I recieved formal instruction).
So what exactly do I want to do? Time for an unordered list...
- Display a "uptime" or "time to go" countdown for any specified date and time
- Display a "downtime" countdown for any specific date and time
- Allow a user to specific specific dates and time, schedules, or patterns (i.e. every Saturday and Sunday)
Suggestions, of course, are welcome. If I would ever get around to it, easiness would be a simple post on the FIN message board. But there's the next best thing (abet slightly more anonymous).download
Send a suggestion (with some sort of indicator of the TGM Status Script) to http://benzene.ods.org/index.php?direct=feedback. If you feel more comfortable with your own client, my e-mail address is provided within the same link.
If you wish to download the latest version of TGM Status Script, which is easily modifiable for Q3 servers...
- download the source: TGMStatus-v102.tar.gz
- check the digital signature: TGMStatus-v102.tar.gz.sig
No mention of Chi thus far. It is a shame. A collection of stars; a quiet, distant warmth. She is the night sky.