Making a live server query page on a website

Post Reply
tuia
Posts: 129
Joined: Tue Sep 06, 2011 12:36 pm
Location: Lisbon, Portugal

Re: Making a live server query page on a website

Post 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.
tuia
Posts: 129
Joined: Tue Sep 06, 2011 12:36 pm
Location: Lisbon, Portugal

Re: Making a live server query page on a website

Post by tuia »

Some example programs written in PHP that fulfill your needs: http://www.brainpecker.com/projects.php
User avatar
fo0k
Posts: 1433
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: Making a live server query page on a website

Post 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
tuia
Posts: 129
Joined: Tue Sep 06, 2011 12:36 pm
Location: Lisbon, Portugal

Re: Making a live server query page on a website

Post 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.
Post Reply