StandAlone Server with SQL database for all clients

Hi guys,

I need some multiplayer hierarchy in my game, but I dont know how to start.

I read, multiplayer game (using Client/Server architecture) has some steps. I will talk about Login. So, when Client connects to the server (Every client connects to the same server, where are games, rooms - and now i dont know if its called MasterServer). Main problem is: Client should ask server to connect to database, server should be only “machine”, who can connect to SQL database. If he find, what client wanted, he will send him required data.

I though, I will download MasterServer and I will modify code, add some class to connect SQL, but it’s written in C++. My vision is something like image below

My second problem is communication between 2 (3 with MasterServer) projects. I want to have standalone server, or I can have only another Scene and then build? But I still dont know how to connect it together. I googled and “youtubed” some tutorials (I’ve seen a lot of them) but i still nothing.

Thank you for your hints and help :wink: and sorry for my english :slight_smile:

I suggest you look at writing your own “Backend Server” for this. The Unity master server is only built for connecting multiplayer games (and NAT punchthrough). Nothing more.

I’ve done this before using Node.js, which was quite interesting. I suggest you create a backend, web server, using something like node.js or python. Then use the WWW class to do authentication :slight_smile: