• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Keavon · Dec 30, 2010 at 04:07 AM · serverphpleaderboardsqlscoreboard

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!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1

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!

Comment
Add comment · Show 8 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Keavon · Dec 30, 2010 at 06:11 PM 0
Share

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! -Keavon

avatar image Keavon · Dec 30, 2010 at 06:20 PM 0
Share

The link you gave me for Filezilla, is that the regular download, or is that a different version that does kinda what MyPhpAdmin does?

avatar image Justin Warner · Dec 30, 2010 at 09:59 PM 0
Share

Um... Filezilla is a FTP, meaning it'll let you post your PHP/HTML/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... MyPhpAdmin is for MYSql, 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)...

avatar image Keavon · Dec 31, 2010 at 07:22 AM 0
Share

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.

avatar image Keavon · Dec 31, 2010 at 07:11 PM 0
Share

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?

Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Retrieving online highscores (following a guide) 1 Answer

Problem reaching highscore board - crossdomain.xml issue? 1 Answer

php, sql security 3 Answers

Web Player build leaderboard returns blank data when integrated the game in Facebook page. 0 Answers

PHP Connect to Unity Server and send an RPC 2 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges