Archived

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

Peter Svensson

[java] Save hiscor on a server.

Recommended Posts

Peter Svensson    122
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
Guest Anonymous Poster   
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
Jim_Ross    122
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