View Full Version : Number of players
vyloveny
2nd March 2006, 14:04
Hi,
what's easiest way of querying server for actual number of players?
cu,
Maio
the_angry_angel
2nd March 2006, 14:18
Just 1 server, or total number of players online?
Either way its via the PubStats (See: http://www.lfsforum.net/showthread.php?t=183). In particular you're interested in the output of this: http://www.lfsworld.net/pubstat/get_stat2.php?version=1.2&action=hosts. What that does is output the details of all servers, and all racers online on each.
Depending on what language you're doing this in, will depend on the library we can suggest to help you do all this. I suggest looking at the "Useful links" in http://www.lfsforum.net/showthread.php?t=106.
vyloveny
9th March 2006, 08:37
thanks for reply. i managed to code my own lfs status query using insims. i was just curious if LFS support some standard query protocol like GameSpy or All Seeing Eye common for other dedicated servers.
the_angry_angel
9th March 2006, 09:12
Not natively built into the server, I'm afraid.
Dygear
10th March 2006, 02:53
The problem with the Game spy way of doing things is that you send just an 11 charter string to the server and it will spew out atlest 50 times that ammout. You can do a very simple DoS attack like that.
vBulletin® v3.7.1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.