I think theres no way to be sure the high score isnt fake.
but, just like with anything (locks on doors, cryptography, "the club"
people use on cars etc), there is no fool proof solution to this kind of
even if it wasnt open sourced, people could edit the memory your program was
using or decomipile/recompile.
luckily though, just like a lock on a door, maybe there is something that
makes it so 99.9% of the people out there arent able to fake high scores.
hopefully the other .1% are honest hehe (:
only way would be to make it more secure (this is a bad way i know) would be
to make the code around that section really complicated and do wierd stuff
to the score before it submits like xor/add/subtract/bit rotate/byte rotate
against wierd constants that are gotten through complex functions and
combined in wierd ways…
then, when the server gets it, it does the reverse and untangles the data
and gets the high score.
maybe someone has a better idea though (:> ----- Original Message -----
From: email@example.com (Stephen Sweeney)
Sent: Tuesday, December 30, 2003 11:04 AM
Subject: [SDL] OT - Score submission in OSS games…?
I’m just putting the finishing touches to another craaaaaaaaaaazy game I’m
making… and I was just thinking that it might be kind of nice to allow
people to submit their highscores…
Trouble is… I can’t think about how I could do this in an open source game
without people cheating!
Is it at all possible? I could the scores to be submitted over the internet,
but since the source is available, it is perfectly possible for someone to
submit a bogus score by changing the code.
Anyone got an clues on this?
SDL mailing list
SDL at libsdl.org