View Single Post
Re: real time server stats
Old
  (#11)
BAStumm
Member
 
BAStumm's Avatar
 
Status: Offline
Posts: 138
Join Date: Jan 2004
Location: Spokane, WA USA
Default Re: real time server stats - 21-01-2004

edit: OOPS it brought me directly to page two and i thought this was a new topic...

anyway, getting data from HLTV would be nearly impossible.

/edit



I thought I showed you my hlwebtv deal?

http://spokaneteamfortress.com/hlwebtv/

HLWebTV will be a part of the phpUA project from http://unitedadmins.com and should be available mid February. The hlwebtv portion of phpUA is being dubbed WATCH.

Real Time is simply a matter of combining php and jscript to keep redrawing the data you wish to display. Create a "face" first which is your data container (tables, divs, whatever) and include "id" assignments in those. Then when you have new data to display off your socket you just use the jscript document.getElementById stuff to manipulate your data containers (or move images around the screen or whatever).

What data you wish to display changes what else you must do. If your happy with name, frags and time then just query direct to the HL server (default port 27015). If you want exteded data you need some other method to get the data. Log parsing perhaps, Halfd, a mm plugin, whatever...

PHPUA's WATCH feature uses an MM plugin I am creating (nearly finished). This page, http://spokaneteamfortress.com/stats/ queries halfd. Watch that page for a minute, the data does update when frags or deaths increase or players join or leave or whatever...







Last edited by BAStumm; 21-01-2004 at 18:44..
  
Reply With Quote