How to seperate LoginServer and GameServer?
Here is what i have so far. I connected UE4 with a MySql Server via Mysqlcpp connecor (works perfectly fine). I do not have any Web server (php/java). I cooked a dedicated server and client, connection works. The Client starts the game and is on a local map for login purpose.
What i want to do next: Connect to a LoginServer, which checks if the user and password exists in the database. If so, create a HashID or something to identify the user+session. The User should then be able to select or create a character. The Gameserver has to be notified, that a new user joins the game with the Session ID. Then the user should be able to join the server.
The Big Question here is: How do i run a Gameserver where all the playing takes place, plus a Login/Characterscreen Server seperatley. Or at least run different maps on one machine. And how do i set up the communication? I don't want the client to talk to the Database server directly.
I know it is a bit more complicated. Maybe there is another way to set up Login,Characterselection,Gaming in an easier way, tell me. I appriciate any helpfull replies.
asked Oct 31 '14 at 11:12 AM in Using UE4
Okay first never , I mean NEVER , connect direct to the Database-Server. Its the "Road-To-Hell" , really. Second i would try to split Logi/Game-Server like this : Start Local-Only and connect via HTTPS to a Webserver that Wrap a Databaseserver. The Web/Databaseserver check your login and if valid sends you a session for your gameserver. Then do a simple Session-Connect-To-Server and you are fine. That is only a Scratch but maybe it give you ideas
answered Dec 24 '14 at 01:38 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here