Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


Simple Physics Game Client Hack Prevention


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 HappyBirthday   Members   -  Reputation: 100

Like
0Likes
Like

Posted 23 June 2011 - 05:13 AM

Hello everyone,

I am in the process of developing a Physics Puzzle game which has a LEADER BOARD system.

What I want to know is how can I prevent the client from sending the server fake scores ?

One of solutions I got was to just transfer the 'co-ordinates' and 'force' with which a Ball was launched and then simulate the result on the server side.
This leads to a lot of new questions :

Since the Time Step will not be same on the client and the server will I get the same solution ? (or is there a way to have the same Time Step ?)

And the biggest question is how do we implement such a thing .. I mean to take the co-ordinates from the user and run the game again on my server with the given co-ordinates ? (If 100 users are playing at a time then 100 copies of the game are running on my server ?)

I am all lost .. Please help me ..

Thanks a lot :)

Sponsor:

#2 wildboar   Members   -  Reputation: 281

Like
1Likes
Like

Posted 23 June 2011 - 05:49 AM

I suggest you read http://gafferongames.com/game-physics/fix-your-timestep/
Will answer a lot of your questions

#3 HappyBirthday   Members   -  Reputation: 100

Like
0Likes
Like

Posted 23 June 2011 - 06:10 AM

Yeps that helped me with the Time Step thing ..

but how do we Implement this kind of transfer of information from the Client to the Server and vice-verse ?

#4 hplus0603   Moderators   -  Reputation: 5723

Like
0Likes
Like

Posted 23 June 2011 - 02:32 PM

but how do we Implement this kind of transfer of information from the Client to the Server and vice-verse ?


Either by using raw sockets (socket(), connect(), bind(), listen(), accept(), recv(), send(), select()) or by using a library suitable for your environment.
The FAQ has a list of various libraries.
enum Bool { True, False, FileNotFound };




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS