Setting up master servers *nicely* on hosted account

Started by
5 comments, last by leiavoia 20 years, 1 month ago
Sooner or later i''ll have to program some sort of master server for my game to list currently active internet games. Okay, so how to go about it if i don''t own a dedicated server but i *do* pay for a regular shared-hosting web server? I''ve asked the host what they will and will not allow on their machine, but the only other alternative that is guaranteed to work is to write something in PHP/MySQL real quick. My question is, is that a good way to do it? Anything wrong with sending an HTTP request for info and having the server serve it like a webpage would be served? (as an alternative to some kind of always-listening custom C++ thing)
Advertisement
what kind of game?
turn-based strategy. maximum of 4 players per game. All i want to do is list games in progress and games you can join. I'm not looking to set up some mega MMORPG server, just a "who's playing" list so you can join a game that is looking for players.

[edited by - leiavoia on February 27, 2004 12:03:03 AM]
I think PHP/SQL solution would be perfect...
yeah thats the best solution I think too. If you have the expertise, you can write a launcher in java or active x and launch your application from the web page.

-ddn
what would a launcher do?

What i''m thinking is, i''m a client and i run the game from my desktop like any other game. Client sends HTTP request to http://www.mysite.com/mygame/get_server_list.php and parses the output once received. Now it knows where to connect for games.

Or, i''m a server starting a new game. My game starts a server and calls
http://www.mysite.com/mygame/new_server.php?name=SuperDude&description=Cool+4+player+game+all+bonuses
to log the game in on the global level.

That''s my idea. Of course, i have absolutely no understanding of how to get data from a "web page" to my game on the desktop. I can write both apps on both sides, but how to communicate the data is beyond me at this point.
Yeah that's a good idea too. Last time i looked at it, we wanted to do something with a more unified web interface. Player logs into web site, gotos server list, clicks onto server and app auto-launch. It was suppose to ease the UI and make it more friendly for the non-gammer. But if your already targeting experienced gammers, browsing the meta list within the app is just as good.

You can use the http protocol, to get and set data from a website. Windows has the http interface wrapper functions to make it easier for you to do that.

Good Luck!

-ddn

[edited by - ddn3 on February 28, 2004 4:09:41 PM]

This topic is closed to new replies.

Advertisement