I've started to design a commercial Client/Server game in Unity and I need server-side saves players data for later analysis and web consultation (like battle.net). Is there a best practice to achieve this? Can I use MongoDb for a commercial game?
closed as off-topic by Josh Petrie♦ Sep 29 '14 at 15:46This question appears to be off-topic. The users who voted to close gave this specific reason:
|
|||
|
I will only answer to your first question (as I don't have a clue about MongoDB + commercial game). Unity3D has a set of classes to communicate through HTTP. They are not perfect but they exists and (usually) work. Have a look at WWW class, to set up a connection, and also at WWWForm to send requests and data to your server using HTTP. Once your game will be able to read and write data via HTTP you will have to write the server side logic to save this data into your database. Note that it's also possible to communicate through C# classes such as System.Net.WebClient, if you need to use commands not allowed by Unity I hope it helps. |
|||||||||
|