Re: A kewl Script, for you someone to test, and show me the results
| From: | Jeffrey Paul | Date: | Sat, 29 Sep 2001 14:17:20 +0000 |
| Subject: | Re: A kewl Script, for you someone to test, and show me the results | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-69291@lists.php.net to get a copy of this message | ||
At 06:47 AM 9/29/2001, Andrew Brampton wrote:
NO, Doesn't read the logs, actually connects to the HL server, and reads the players/scores.. Programs like GameSpy do it.. its not that hard to actually do.. I looked into it a while ago, and all you do is connect to the server, send a simple command and it returns a list of players/scores, and you can eventually reteive info like current map, time left, and all the server settings... U can see a CGI Perl example of it here: http://www.half-life.ewetel.net/cgi-bin/hlds_ld.cgi?212.6.108.253:60010 Bramp P.S I may have to make a script to do this for HL in PHP... would anyone like that?Actually, it does just read the logs. hlds_ld is an administration tool for halflife dedicated servers, and that's the cgi interface to it. It does nothing with the halflife protocol. However, there's a program called qstat which speaks tribes/halflife/quake/quake2/quake3/quakeworld/etc protocols and will output the information you want. I think it would be easier to call that then parse the results to do what you want with it. let me know if you need further help, -j --------------------------------------------------------
Jeffrey Paul sneak@datavibe.net (877) 748 3467 ICQ: 14295546 AIM: kw34hd1 NXTL/DC: 130*21*16749PGP: 0xF50BB9D7 A21AFD828C30EC77CCCC545DA0B3F501F50BB9D7