Page 1 of 1

Re: Making a live server query page on a website

Posted: Thu May 10, 2012 11:21 pm
by tuia
Basically, you need to query your BF1942 server on GameSpy port, by default port 23000, with, for example, "\status\" or "\info\" queries. Then you need to parse that information. You can accomplish that with PHP language. I think there are some open-source tools, where you can look at the code, but I can't recall them, now.

Re: Making a live server query page on a website

Posted: Thu May 10, 2012 11:29 pm
by tuia
Some example programs written in PHP that fulfill your needs: http://www.brainpecker.com/projects.php

Re: Making a live server query page on a website

Posted: Tue Aug 28, 2012 4:53 pm
by fo0k
basically just photoshop and the info from tuia above. also take a look at www.greycube.com the creator of this site has made a number of php driven app's and plugins including the lgsl (live game server list). This queries the bf1942 server to display info on a webpage. an example of this is on many e107 sites including http://www.is82.com

Re: Making a live server query page on a website

Posted: Tue Aug 28, 2012 6:46 pm
by tuia
I believe you need to fetch the servers list from master.gamespy.com and then query each server there with a "\status\" packet to the GameSpy port. Take a look at http://aluigi.org/papers.htm#gslist, it's a great tool. Type in command prompt "gslist.exe -n bfield1942swd" and it will show all BF1942 SW Demo servers. Gslist has lots of supported games and the code is available for you to read.