Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (762)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (847)
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  
  Cookies?  Preferences?  Persistance?  (Read 6691 times)
0 Members and 1 Guest are viewing this topic.
Offline stefanha

Senior Newbie

I love YaBB 1G - SP1!

« Posted 2002-10-19 11:35:37 »

In an online game where you don't want to keep every person's save game data (especially if they just show up once and try the game out, never to return again) on the server, what options are there to store data on the client?

Some Preferences API (I think I read about it)?

I don't think cookies are supported, but combined with CGI scripts you can empower your applet to do cookies.  I think it should be possible with JavaScript on the page as well.  The applet would call the JavaScript functions to read and write cookies.  However, I don't think this is supported on many browsers?  Hopefully I am wrong...

Thanks for answering my newbie questions Wink
from, Stefan
Offline MickeyB

Senior Devvie

my game will work, my game will work!

« Reply #1 - Posted 2002-10-19 23:26:39 »

I store them on the server and run weekly(biweekly) checks and if no return, they get removed form the player list.

oh and must agree with the comment from Breakfast...cgi app on a java site.  Smiley


Current Project:
Offline wayreth

Innocent Bystander

nuff' said

« Reply #2 - Posted 2002-10-21 13:07:27 »

As a general idea:

* If the game has any kind of "local installation" (if it is an application or something like that) store the data locally.
The user/player can delete it at will.

* if the game is purely an "online game" (applet or no local install) save the data at the server (DB or something). The user/player could delete it under demand ... and the idea of weekly / biweekly delete is very good. Even if you can store the data at cookies or some kind of "temporal" resource ... it could be delete "by accident" or without user's knowledge ... and it could be very frustrating.

Just an idea.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline pepe

Junior Devvie

Nothing unreal exists

« Reply #3 - Posted 2002-10-21 13:41:05 »

Storing game data on the client would lead to easy cheating... IMHO, forget it.

Home page:
GoSub: java2D gamechmark
Offline nabetse

Senior Newbie

I love YaBB 1G - SP1!

« Reply #4 - Posted 2002-10-22 19:44:25 »


 I've done a merge between a chat and a place where you can play simple multiplayer games, maybe the idea would be useful.

 I don't store nothing in client nor server, because the games don't really need to much data.

Offline stefanha

Senior Newbie

I love YaBB 1G - SP1!

« Reply #5 - Posted 2002-10-24 04:42:14 »

Okay, thanks.  I just want to try to stay away from a server, because I don't have one Wink.  Well if you use encryption, you will at least make it a lot harder for the client to cheat (and obfusticate your class files, of course).

Offline swpalmer

JGO Coder

Exp: 12 years

Where's the Kaboom?

« Reply #6 - Posted 2002-10-25 18:16:30 »

I like the encryption idea.  Use a public key to encrypt the data stored on the client.  Only the server has the private key, so only it is able to decode it.  That should work out OK and then you don't need a huge database.

Offline Breakfast

Senior Devvie

for great justice!

« Reply #7 - Posted 2002-11-01 07:20:45 »

If you are going to store it on the server and delete it weekly or whatever you might want to have an automated emailer built in to the system to say "your account has been inactive for the last X days- if you don't return today your save game will be deleted." or words to that effect.
Offline marrs

Junior Newbie

Java games rock!

« Reply #8 - Posted 2002-11-03 08:58:07 »

You might consider using Java Web Start. It has several possibilities for storing user settings either on the server or on the client.
Pages: [1]
  ignore  |  Print  

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

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

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

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

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

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

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

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

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

Solater (445 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!