Getting info on server to a webpage.
Me and some 20-30 friends have a Battlefield 1942 clan sortof thing going. We have about 5 people who take turns in hosting the servers. I''d like to be able to get info on if the server is running or not onto a homepage and if possible know how many people are playing, what map they are playing and so on. Is this hard to do and where should I start? I know the IP´s of these people of course.
Setup a proxy server that is connected to a MySQL database. The servers, when turned on, send a message to the proxy that they''re live and the entry for the server is then added. When the server goes down, a message is sent to remove it from the listing.
Clients then connect to the proxy which forwards the requests to the actual game server and keeps track of how many are connected.
Setting up a proxy will be the hard part since I don''t believe the source for BF1942 is available to tinker with.
In your case, it would be best to post a schedule on a static page and then adhere to that schedule. "Friday IP *.*.*.* will be hosting from 7am to 5pm" or whatever. Then post a historical count of how many people played in over a certain period of time like 24 hours.
Something like this can''t really be an after thought. If you want real time server and player info it really needs to be built into the game.
Ben
[ IcarusIndie.com | recycledrussianbrides.com ]
Clients then connect to the proxy which forwards the requests to the actual game server and keeps track of how many are connected.
Setting up a proxy will be the hard part since I don''t believe the source for BF1942 is available to tinker with.
In your case, it would be best to post a schedule on a static page and then adhere to that schedule. "Friday IP *.*.*.* will be hosting from 7am to 5pm" or whatever. Then post a historical count of how many people played in over a certain period of time like 24 hours.
Something like this can''t really be an after thought. If you want real time server and player info it really needs to be built into the game.
Ben
[ IcarusIndie.com | recycledrussianbrides.com ]
![Will Post For Food](https://www.paypal.com/images/x-click-but21.gif)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement