Export Information from Game

Hi Guys, I’m just finishing my masters project at Vienna Uni. I made a game that takes into account players choices and creates a psychological profile.

I need to get this data so I can analyze it, so I need the game to send me these variables. I can convert them in a single string, really doesn’t matter.

Now I need some ideas how to export this info. Either via Android’s export menu, sending me an email, sms, via a http database. I really don’t know. Please any pointers?

Hey,

without going into further detail, I can tell you the necessary steps. First, you want to serialize the data to a json or xml, or whatever format you prefer.
Example:
https://docs.unity3d.com/Manual/JSONSerialization.html

It does not really matter, as long as the server that is receiving the request understands the data. The next step is to send the serialized string as content to your server. I would suggest you write a function in your backend code, that runs on your server, that accepts a post request. Then you send a post request from the game to the server with your serialized string as the content of the request (look up how to do that in c#). Your server can now receive the information in the request body and evaluate the information. Make sure that your application can use the internet of the device. Therefore you have to set the permission in an manifest.xml file. If you use network features, in your code, Unity should do this for you. If not try to add it manually. I do not know how to do it and have never done it with untiy, but here is the link for Unitys manifest information:

This is only relevant for Android devices. iOS devices may have another permission system. I havent worked with iOS devices, so I don’t know.

Another possibility is to send the serialized string as email. I don’t know how you want to receive the data. But simply look up how to do this stuff with c# and I think you will find a solution.