Another method is to have the server send out a generated hash code of
some sort to the client (that expires after a set time); for the
client to encrypt the score using the code and send it back.

Yet another mentioned on FlashCoders is to do the above, but send
(along with score and name) game statistics - number of levels played,
number of bullets fired, number of coins picked up or whatever and let
the server do some basic sanity checking (there's no way he could have
got 12000000 by picking up one coin!)

Annoyingly, looks like the FlashGameCoders archives for the last few
months are broken, so I can't point you at those...

HTH,
 Ian

On 9/12/06, Danny Kodicek <[EMAIL PROTECTED]> wrote:

> Hello everyone!
> I have a huge problem. I have made a game which also
> has a highscore feature, and I have some kid who is
> always cheating and submitting fake scores. I was
> checking this list and i have found a discussion on
> this theme from 2003. I am just interested, has
> anything changed since 2003? What is the best way to
> protect the highscore?

Depends on your game to some extent. If they've found a bug in the game
which enables them to get an artificially high score, there's nothing to do
but fix the bug. But if they're doing it by just sending their own call to
the server, bypassing your game altogether, then you can avoid this by
adding some kind of encryption to the score. One method, for example, is to
send the server three pieces of information: the score, the system clock
time, and some number which combines the two in a secret way known only to
you. (You could also encrypt the score itself, in order to make it even
harder for the user to outguess you)

Danny

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to