Quote:
But the server will reject an update only if it looks like the client is cheating - it shouldn't happen very often if you can find a good way how to determine it. The way how you do it is probably application specific - for example when the client generates big velocity on some of his objects, it can be seen like cheating in a game when you need to throw objects to the distance to achieve something. But in other games when these objects are more like decoration it won't matter.
Right, and that pretty close to how I originally thought this should be done. The problem is that even if it doesn't happen often, it can be very expensive to resolve via rollback, so you might get glitchy. More on this below, though.
Quote:
Ah, so it was your summary I posted?:)
You suggest to look at what? I looked at his slides, but there are not very detailed either...maybe if I saw some of the demos.
Nope, not my summary you posted, I was referring to my super brief summary in this thread. Honestly, the demos didn't explain much that's not in the slides, other than showing the authority passing between objects.
Quote:
And what if we sacrificed some of the precision/speed/number of objects?
The main problem here is that if you only roll back a piece of a stack or something like that, the rest of it might fall over. To roll back the whole stack could be too expensive, and to do it at a bigger time step or something like that could be unstable.
I'm starting to think that the best approach might be the following:
1) Trust the client's results, but perform a basic cheating check on them
2) If you encounter cheating (or massive simulation errors), you probably don't want that client on your server anyways, so just ban them - if your game relies on the clients to give you good results, don't even try to keep the faulty ones around!
3) Once you've banned the cheater, you can do a one-time rollback and resimulate, which will cause a small pause, but you can take that opportunity to tell the other players that someone has just been booted for cheating.
I'm pretty sure Glenn said in his talk that he doesn't think client cheat detection will ever really work right, so if you really need security you need to simulate everything on the server (which means either lag or rollback thanks to latency), but I don't think I agree - in practice, people just go for the easy targets. HL2 Deathmatch is not totally secure, and I think it does a lot on the client, but it's not overrun by cheaters. If you get clever enough with your server side reality checking, you can probably catch a high percentage of the cheats people will try.