Advertisement

[java] High score server

Started by June 27, 2001 03:24 AM
4 comments, last by nowan 23 years, 7 months ago
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
Hi,

I have a High Score Server available for download (with source code) on my web site. Take a look if you are interested

- Hodglim
Homepage
- HodglimHomepage
Advertisement
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
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
- HodglimHomepage
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?
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
- HodglimHomepage

This topic is closed to new replies.

Advertisement