Question about networking
Hello everyone. I'm trying to write a MMO game, trying to write a connection to the MySQL server through a dedicated UE4, but apparently that is not possible, since I always new mistakes. So I decided to try to divide the logic on two servers: the first server (dedicated server UE4) will synchronize the movement, interaction, and so on, and the second server will interact with the database. Please tell me if I'm doing the right thing? Because of the two servers will not suffer optimization? Can someone tell me how to write the interaction with the database server on a dedicated UE4?
asked Jan 19 '17 at 12:20 AM in C++ Programming
What you want to do instead is write your data access layer using an appropriate system (not UE4). A WebAPI would be a good choice. If you are using mySQL as your database then you may want to look into using PHP to write your WebAPI. If you search on Google you can find thousands of examples showing how to use PHP to build an API to interact with MySQL. Then you can access this WebAPI easily from blueprints in UE4 using the free VaREST plugin. Personally I prefer Microsoft SQL server so I wrote my WebAPI with Microsoft .NET and MVC.
answered Jan 19 '17 at 12:40 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here