Archived

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

[java] High score server

This topic is 6011 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 I''m having quite a lot of trouble setting up a high score server for a game I have developed. I was wondering if anyone knows where I might find some documentation/examples of this. Thanks for any suggestions. nowan

Share this post


Link to post
Share on other sites
Hi Hodglim,
Yes, I have looked at yours and had a go at trying to use it but failed. The problem is that I have no experience of running servers etc and I don't even know how to run a command line in order to get the thing up and running.
I have a completed game and I know where to put your code relating directly to the applet itself, but what else do I need?
Where is the high score information displayed. Do I create an html page that constantly updates with the high scores?
It's this side of things that has me confused.
Thanks for any help.

nowan

Edited by - nowan on June 28, 2001 4:48:34 AM

Share this post


Link to post
Share on other sites
Hi nowan,

To be able to use my High Score Server you need to have access to the web server that is hosting your applet (the High Score Server runs as a Java application (not applet) on the web server itself)

If your site/applets are hosted on someone elses web server then im afraid my High Score Server is no good to you.

If you are running your own web server and can run applications on it then you are all set, the documentation has details on how to set things up and get things running.

Regarding displaying the high scores from the server, again there is some example code in the documentation on how to do this. You could include this in the game applet itself, or write a seperate applet to retrieve scores from the server and display them. The code is very straightforward.

- Hodglim
Homepage

Share this post


Link to post
Share on other sites
Thanks. I think the problem is that I am using Freeserve so I''m not going to have any luck. Do you think there is a way of getting one up and running if I''m stuck with someone elses server?

Share this post


Link to post
Share on other sites
I dont think you can due to Java's built in security restrictions ie. a Java applet can only read/write to files stored on the same machine as the applet itself, and then only if the applet has been digitally signed. That is why I wrote the High Score Server as a Java application and let that write the high score tables to disk, I use Sockets to allow the applet to talk to the High Score Server to submit and retrieve the scores. Sockets still have the restriction that the High Score Server needs to be on the same host as the applet however.

I could be wrong, and if I am, please can someone put me right

- Hodglim
Homepage

Edited by - Hodglim on June 29, 2001 9:41:19 AM

Share this post


Link to post
Share on other sites