Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  features in a highscore server?  (Read 3871 times)
0 Members and 1 Guest are viewing this topic.
Offline mill

Junior Devvie

popcorn freak

« Posted 2003-03-22 12:26:37 »

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 Smiley
* 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.

Offline Matzon

JGO Knight

Medals: 19
Projects: 1

I'm gonna wring your pants!

« Reply #1 - Posted 2003-03-22 14:01:10 »

Why not store data in a relational database?

Offline mill

Junior Devvie

popcorn freak

« Reply #2 - Posted 2003-03-22 14:18:47 »

i dunno! i haven't done any database stuff so i don't know if i need it Smiley

hard to set up? hard to implement? worth the effort? benefits? faster? more reliable? will it get me more girls?

well, otherwise it migth be good to learn from.

(sorting is implemented now by the way)

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline leknor

Junior Devvie


« Reply #3 - Posted 2003-03-22 14:55:03 »

hard to set up?
Depends, something like Oracle or DB2 will be hard to setup but when you're using one of those it doesn't really matter, you have professionalls do the install.

I've never used it but this is probably the least effort on your part to start using a DB:

hard to implement?
I don't think so but I'm familiar with SQL already.

worth the effort? benefits? faster? more reliable? will it get me more girls?
If the high score table is getting more access than once every few seconds then it's probably worth it. You'll be able to do things like have a DB backend where many front ends query one soruce of scores. Reliablity will vary between products but they tend to go all out on reliability. A DB that looses data is useless to a company with important info like billing records. A high end DB will provide butt loads of tuning options which will let the DB be faster. Initially it will probably be slower but that is because the DB will need to be told how your data will be accessed and where to optimize. Speed is often sacraficed for reliability. I can only thing of one girl I impressed with my SQL knowledge. Normally it probably wouldn't have but she was taking a class on databases.

(sorting is implemented now by the way)
You should let the DB do the sorting. It can keep indexes that could be faster than whatever you're doing. Or it may do clustering of data so it doen't need to sort the full set of data. Lots of possibilites here.

SQL is designed to meet the needs of high end business. There is a lot of real power in a good SQL DB, a lot more than most people need. Probaly 90% of the people that use SQL only need 10% of it's features. Products like mySQL will appeal to most people because of their simplicity. If you go with a light weight DB and start wanting more remember there is a lot more to the iceberg than you can see.
Offline mill

Junior Devvie

popcorn freak

« Reply #4 - Posted 2003-03-23 13:10:31 »

sigh, it does indeed look nifty, but i'm also a bit terrified Smiley looks like it's too much new to learn at the moment.

i'd get all the data handling for free (such as adding data, removing data, sorting, searching etc), but all that is implemented already. i might try do store it in SQL when everything else is implemented.

Pages: [1]
  ignore  |  Print  

EgonOlsen (79 views)
2018-06-10 19:43:48

EgonOlsen (59 views)
2018-06-10 19:43:44

EgonOlsen (78 views)
2018-06-10 19:43:20

DesertCoockie (261 views)
2018-05-13 18:23:11

nelsongames (159 views)
2018-04-24 18:15:36

nelsongames (158 views)
2018-04-24 18:14:32

ivj94 (901 views)
2018-03-24 14:47:39

ivj94 (162 views)
2018-03-24 14:46:31

ivj94 (813 views)
2018-03-24 14:43:53

Solater (177 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!