my highscore server is almost done now and it has all the features I need (well, soon anyway). my plan is to release it for free for everyone to use.
- the server has a nice GUI with the scores presented in nice JTables and JTabbedPanes and stuff.
- it supports all games and can be customized. standard settings include player name, place and score, but it’s simple to add more fields (JList, add/edit/remove buttons). you can for instance add fields for FPS, Java version and so on.
- one mouse click starts the server on port 1200 (can be changed)
- logging is presented in a JTextArea along with time stamp (also saved in a logfile)
- different PLAFs
- on the client side all you have to do is to instantiate a Score object with 3-n parameters and instantiate a HighscoreClient object with ip and port to send to and finnally calling a method called sendScore().
performance is ok at the moment. I haven’t done much real-life testing, just running test programs with for-loops sending randomized scores. it works well with a couple of test programs sending 10000 scores each. the database consists of Vectors of Vectors and saved in regular text files. for games only storing ~100 entries this should not be a problem. at the moment i use Serialization, but everything is encapsuled so i might move to sending bytes manually instead (a highscore is not that big anyway so it might not be worth the effort).
below are the features i’m gonna implement next
- sorting of data (score, name etc)
- export to HTML
- sending back a highscore list to client
- possibly graphs using some graph lib
anyway, what features do you want/need in a highscore server? any other comments?
i’ll put a public preview online soon along with a short user manual.