- Home /
Scoreboard/Leaderboard Script for both server and client?
[I was going to add a bounty, but not anymore. Please ignore the stuff about it, and I do not need a script anymore]
Hello everybody!
I am making a game that needs a scoreboard, but I am clueless to SQL's and servers past a simple FTP. I am basically asking for a script for both the client and server that will store and display the scores, and includes a reasonable php injection/hacking/cheating proofing. Also keep in mind that this is a benefit to the community, so not only will your get your bounty points, you will also help others than just me.
I have found information on this topic to help contributes. http://forum.unity3d.com/threads/16168-Leaderboards
So basically what I am asking for to win the bounty points is an answer containing the PHP code (or file, even better)(and how to use it and upload it to the server), the PHP file if you will use that, and the script to implement that will ask for a user's name, then pump it and the score up to a server. I will also need code that will retrieve and decrypt the scores from the server and display it on request.
Thank you! This sure sounds like a big thing to ask for, but I am willing to spend my bounty on it!
Answer by Justin Warner · Dec 30, 2010 at 05:24 AM
FTP:
http://filezilla-project.org/download.php?type=server
Scripts:
http://www.unifycommunity.com/wiki/index.php?title=Server_Side_Highscores
And I say don't bother with the bounty...
It's all right here... Really good too, and works. Also, you may need something with MD5 (I believe in Unity 3 I tested this out a while back and it said I needed it)
You can get that here:
http://answers.unity3d.com/questions/27935/md5-implementation-server-side-high-score-problems
Hope that helps!
Ok. Thank you very much! I will look into those now, and post questions here. I'll also edit my origional question to remove the part about the bounty. Thanks again! -$$anonymous$$eavon
The link you gave me for Filezilla, is that the regular download, or is that a different version that does kinda what $$anonymous$$yPhpAd$$anonymous$$ does?
Um... Filezilla is a FTP, meaning it'll let you post your PHP/HT$$anonymous$$L/CSS/Webfiles on your host... For a free host, you can use http://www.000webhost.com/ But they give you your FTP info, and you can post the PHP files it gives you on their, so you can access it online... $$anonymous$$yPhpAd$$anonymous$$ is for $$anonymous$$YSql, which the host I gave above gives you as well, that is to manage the databases that you create (Being your actual scores and names)...
Yes- that is what I thought. I already have a host, and am about to get a new one (unlimitedtree.com has a 1 time fee, and it's half price right now! It's $5 one time. Sorry if this counts as advertizing.). Thank you! I am going to follow the guide tomorrow.
Ok. So I have a question about that guide. When I edit the thing in addscore.php, what do I change? When it says mysql_host, mysql_user, and mysql_password, do I keep the thing at the beginning that says mysql_ and then enter my PW or just replace it or what?