- Home /
How would I store player data?
I need to store player data. Such as money, to a server(free server?). It will store things like money And thing like that, All I really need to store is ints and strings. Also i am releasing my game to steam greenlight, is there anyway to get a list of anyone who votes on my game so i can give them a free item?
The first one about story ints and strings in top priority right now.
Thanks!
-Applejuices
Answer by sweatyrat · Nov 13, 2014 at 09:58 PM
well i have no idea about integration with steam greenlight. but for storing game data and stats your best bet is to use an SQL database. for my games i have set up a free account at awardspace.com which allows you host an SQL database. then just use the WWW command in unity to post to it like you would in HTML. you would also need to write a very simple PHP script to handle the posts and requests but that would only be a few lines of code. this post is very helpful. unfortunatly he is not using the correct form of anti SQL injection in his example. i recommend looking into prepared statements for your final php script as they are much more secure. but for getting a working server up to test with this is everything you need.
Answer by FairGamesProductions · Nov 14, 2014 at 02:00 AM
I can't help with the first part, but I am also on Steam Greenlight, and from what I can tell, there is no way to know who voted Yes or No. It's all confidential.
Your answer
![](https://koobas.hobune.stream/wayback/20220613171443im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Where will those XML files be stored if the platform of this game is Web Player...? 1 Answer
What is this data that keeps saving when i load my game? 0 Answers
How i could display or use data from another program 0 Answers
How can I get the information of terrain designed in unity? 0 Answers
How to get data from player in game through internet 1 Answer