Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Peter Svensson

[java] Save hiscor on a server.

This topic is 6062 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi! Anyone knows how to save a hiscore list over the internet in java? We want to have only one "central" hiscore list. We are going to create an account on angelfire or somthing for the hiscore so the access security isnt a problem for us... Code or any suggestions are wellcomed... // Peter - Thanx!

Share this post


Link to post
Share on other sites
Advertisement
We''ve done it 2 ways, there are probably more.

1. TCP: open up a socket and send the score.
2. HTTP: send the score to a webserver using a special URL string

-M

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I just had this problem, and the solution that I found was to put readLine() into an inner class. You can create a thread inner class that only stay listen the socket response. When it receives the answer, stores in a variable and set another var to warn you that a new answer is there.
I apologize for my english...

Share this post


Link to post
Share on other sites
I would open an http connection to a php script. Speaking a simple protocol to the script, or using xml-rpc to send information about the score and the player''s name. Tossing in some sort of authentication token could stifle cheating. The web server script could easily access a database or falt file and save the information.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!