Hello everyone,
I’m currently planning a multi player game. The game itself will feature dedicated servers which will (by now) only run on my servers.
The dedicated servers register at a master server who keeps a list of all servers and their games.
I only want registered players to be able to connect to the dedicated servers.
What would be the best structure to ensure this?
My current idea is to “force” the player to log onto the master server. Player credentials are checked through username and password. The player gets a list of games/servers to which he can connect.
Once he selects a game/server, the client will try to log onto the game/server. That game/server has to counter check if the client who wants to connect may do so.
I have 2 choices:
a) since all the dedicated servers will run on my hardware farm, I grant direct DB connection to the dedicated servers.
b) I pass all critical messages (such as XP points gained or unlocked weapons) through the master server who then handles the appropriate DB commands.
What’s your opinion on this? I see several pros/cons for both. But then, perhaps someone who has already done some dedicated server ↔ DB server code, could give his insights into this.
Have fun and thanks for your help ![]()