I’m sure this has been asked before, but how do I create user accounts for a standalone game, where I can store info, like int’s, floats, strings, ect. what is the most efficient way to do it?
There is a simple system in this thread that might be enough to get you started. However, you may need to look deeper into this if you have any significant security requirements and you will probably need to know at least some basic SQL to construct your own format for the account data.
Is there on thats more centered for MySQL? I would prefer to use that, for that is for PHP.
you can’t talk directly to mysql, you need to use the WWW class to talk to php and then the php connects to mysql
oh, ok
Is there anything else? any tutorials?
NOTE: I have seen the noob to pro networking tutorial, I dont want that
bump?
A tutorial for mysql ? Not seen one around. Basicly if you know how the php talks to mysql, you should know what to do with the WWW class.
anything on php talking to mysql? on other topics other than unity?
for php talking to mysql there are thousands of tutorials on the web actually, just search for them ![]()
when it comes to unity talking to php, give the highscore example on the unifycommunity wiki (also often mentioned here on the boards) a go, its simple yet you will learn all you need and can know ![]()
so, the ultimate question is, if I dont know networking or user accounts, where should I start?
I suggest you start on basic tutorials on the net about php to mysql. Once you have that working as you want, start looking at the WWW class or like Dreamora said, the highscores example.
ok, thanks for your guy’s help!!
In order to do anything with WWW, PHP and MySQL… you need to have a web server in some form, whether it is a local, virtual web server like XAMPP for windows, or a live web server (I have decent through 1and1 that costs probably $100/year, if that).
Once you have that, this tutorial on the community wiki is probably the most comprehensive introduction to using Unity with PHP/MySQL, because it covers all aspects (setting up the mysql database/tables on your server, writing the php script to post and retrieve the data, and writing the WWW script in Unity to pull the info into your game): unifycommunity.com
Thats not true, I did once MySQL talking with Unity directly, Zumwalt sent me a MySQL.dll for using the MySQL API (I think that how it calls).
But with Unity 3 I still cant use it, it returns me errors.
yes, if you write your own plugin you can do that if you own a pro license