home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


Cheating & open source, revisited

by Aardappel_ on 04/27/2005 07:54, 218 messages, last message: 06/16/2006 17:23, 188345 views, last view: 11/01/2024 17:29

As you all know, cheating is a problem for Cube being Open Source. Noone likes the current solution of the incompatible binaries, and I am getting to the point where I see the usefulness of having other people continue to work on Cube whenever I don't have the time.. currently that is problematic and would be much easier if the source to the official game could be truely open.

Multiplayer continues to be an important aspect of Cube, so we can't ignore cheating and simply hope that people won't change 1 line of code to enable god mode or permanent octa-damage, because they will (tell me something about human nature and the people on the interweb).

The solution can't come in the form of "cheat protection", this simply isn't possible with the current cube, and even if the entire gameplay code was moved serverside, is still fragile. Don't even suggest it... make sure you understand the nature of the client/server gameplay code before commenting.

The solution for Cube I feel has to be a social one. As you may remember, I designed a solution before:
http://wouter.fov120.com/rants/trusted_communities.html
The problem with this particular design is that it is too complex to set up, and too centralized. I would like to come up with a solution that is simpler, less implementation work, and can work with any group of people, centralized or not.

This is the idea I came up with sofar:

Every player that wants to play in a cheat free environment, can use a command in Cube to generate a set of key files. A key file is simply a file of, say, 10000 random bytes. The player then hands out these files to players he trusts... or rather, players he wants to trust him. (why there are multiple files will become clear later).

A server can either be in untrusted mode (default, works as before), or trusted mode. It can be set to trusted mode by the server admin, or voted by the players until the server empties. It will show up in the server browser as trusted.

If a player A & B connect to a trusted server, A looks up B's nickname in his folder of key files. If he finds a corresponding key file, he chooses a few random file offsets and reads the bytes there. It now sends a packet to B asking it for the bytes at those offsets. If B really is B, it can simply read its own keyfile and return the values. A now compares the values, and if they match, it sends a "I trust B" packet to the server. The hud shows which clients you trust, and for each client how many clients trust him in total. You are now sure that B really is who he says he is.

On a trusted server, people that after exchange of trust packets have gained no trust, can be booted from the server automatically. This allows you to play games with trusted people in your community, and have external people unable to be join the game.

asking for random offsets guarantees that untrustworthy clients or even servers never get to sniff keys. "Trust" is evaluated locally and for you only, so can't be spoofed.

The one problem would be handing your key file to someone who later turns out to be untrustworthy. This person could now impersonate you and appear to be you to all your trusted friends. Hence the multiple key files, so you can give a different key file to different people (or groups of people). That way, if the person "goes bad", he can't impersonate you towards your friends, as he doesn't have the keyfile your friends have.

The system is not perfect of course. You can still have 2 cheaters join together and trust eachother. Luckily cheaters hardly ever come in groups, and there are more complicated ways to protect even against this.

The biggest issue is the inconvenience of having to exchange key files, and especially to require new players to find existing players on forums/irc before they can sensibly play. I think it is bearable though, as you only need to do it once, and Cube multiplayer is a fairly closed community. And if servers are by default untrusted, you can give newcomers the benefit of the doubt until they behave suspicious.

What do you all think? Please think it through thoroughly before commenting (I am talking to you, Jean Pierre! :). I am especially interested in "holes" in this system, i.e. ways that cheaters could abuse it if they really wanted to.

Go to first 20 messagesGo to previous 20 messages    Board Index    Go to next 20 messagesGo to last 20 messages

#44: the real solution...

by Sparr on 05/23/2005 04:36

I think the real solution to the problem involves a little of everything. Take every idea here, implement it to SOME degree. Getting the right balance will be hard, but every method helps fix the weak points of another.

reply to this message

#45: Re: the real solution...

by kernowyon on 05/23/2005 10:28, refers to #44

Yep - good idea.
As mentioned, voting to kick people can be incorrectly or maliciously used against those players who are good - such as Insight or several other great players.
However, something needs to be done to rid Cube of the comedians who appear on a server then spout obscenities at everyone, or those people who are blatently cheating.
I do wonder how many of those "floaters" who dont have the correct map are new to the game and simply dont understand the /getmap function? Many times I have seen people asked to use the getmap command, only to see them typing getmap without the actual / command prompt bit. So it simply comes out as getmap repeated many times before someone puts them right. Same with name etc.
I like the radar idea - that would solve the invulnerability issues at least - which is something which seems to cause of lot of aggro in the servers. The number of times people are accused of cheating when they are simply victims of the invulnerability bug is amazing. Of course, some people do take advantage of it - but to be fair, its hard to tell you are invulnerable sometimes for a while.

reply to this message

#46: ..

by CC_machine on 05/24/2005 19:10

also dont forget that there are other types of cheating other than mods of cube, for example:

using a modded map to give the player an advantage (e.g. flood the map to enable flying to dodge rockets etc.)

believe me ive tried it before, and no-one even suspected me of cheating ( just for testing.. honest)

reply to this message

#47: ..

by makkE on 05/24/2005 21:02

I know that kinda stuff is pretty obvious.. but you should refrain in the future to even mention it ;) Don't tell them how to here..

reply to this message

#48: ..

by CC_machine on 05/26/2005 19:39

oops.. just thought id mention it cause you were asuming cube mods were the only way to cheat :P

reply to this message

#49: Re: ..

by jean pierre on 05/27/2005 07:19, refers to #48

Mine says different protocol when entering in a server with my MOD that is a good thing tough becouse i editted weapons and it isnt cool to have rocket launcher in multiplayer that does a bigger explosion that could kill 20 people on touch(if they're near)

reply to this message

#50: ..

by CC_machine on 05/27/2005 23:19

jean pierre have you uploaded your mod to quadropolis (http:\\www.cube.snieb.com)

reply to this message

#51: Re: ..

by jean pierre on 05/28/2005 07:06, refers to #50

Last time i tried it gaved me an error page really due to long time and i seriusly hate uploading too much so dont suppose to help but im sure Fusion is even better cause Lava MOD is just a pack of new lame graphics and different levels please dont ask me to upload it now(Il upload it maybe when Hell freezes over?)

reply to this message

#52: ..

by CC machine on 05/31/2005 17:17

question: everything physical (that is the player physics, not textures models and all that) is in the cube.exe inside the bin folder right? at least i think it is. if that is true, if someone is accused of cheating, then the server could upload his/her cube.exe and see if it is modded. scince the .exe is only 148 kb, it shouldnt take too much time to upload

What do you think of my idea?

reply to this message

#53: Re: ..

by eihrul on 05/31/2005 17:33, refers to #52

That still depends on the client to cooperate with the server. The client could just send over some other binary than itself and the server couldn't tell the difference.

reply to this message

#54: ..

by CC machine on 05/31/2005 18:44

i was having a good game of instagib team on map pyramids, and it disconnected and said:

illegal network message type(clientnum)
disconnected

what does this mean?

reply to this message

#55: ..

by >driAn<. on 05/31/2005 19:39

That means you told the server a wrong client number.

< 0 or > current players

That should not happen if the client and server use the original binary.

reply to this message

#56: ..

by Rick|FreeBSD on 05/31/2005 19:52

Actually it seems a bug in cube...I had it a few times too

reply to this message

#57: :(

by CC machine on 06/01/2005 00:43

spoiled my game, it was a good one, all players were at 10 frags each we were pretty well matched :(

reply to this message

#58: ..

by yanqui on 06/02/2005 11:34

why not shift important elements into a text file and md5sum the thing? md5summing a small file takes very little time, and the sum can be used to ensure that files are the same for all players. Take an md5sum from the server and require all players to have the same sum. Just a suggestion...

reply to this message

#59: Re: ..

by yanqui on 06/02/2005 11:43, refers to #52

what about linux? Also an MD5 hash would be just as effective and much smaller.

reply to this message

#60: ..

by yanqui on 06/02/2005 11:53

....sorry about the double post, it was a reply to #52. Windows bin files are going to be a different size than linux bin files. Theoretically depending on the libraries the linux user has installed linux bins could be different sizes without modification. Important variables should be moved into a text file that can be hashed and read on initialization.
I personally think that if a scripting engine were built that allowed more things to be put into external files seperate from the bin, security could be increased by hashing these files before logging on to a server. To increase security even more the server could send a randomly generated file that would then be hashed with the important files to make a master hash that would be very difficult to replicate.
This wouldn't make cheeting impossible, but it would make it infinitely more difficult. Cheeting would take more time and effort than just learning to play well.

reply to this message

#61: Re: ..

by Pxtl on 06/02/2005 14:17, refers to #58

Been thinking about this already. At some level there must be an opensource binary - it can fake the md5 sum, it can send alternate files (if the server does the sum).

Even if we ported the whole damn engine to Java so that we could ensure that the binaries are all exactly the same, you could still just have a binary that sends a fake. Plus, any program that binds to external libraries (like OpenGL) can still cheat other ways.

reply to this message

#62: Forced Map Downloads

by HopFrog on 06/02/2005 17:47

Would it be possible for servers to force map downloads? If so, that could eliminate any cheats formed by inconsistencies in maps. That wouldn't eliminate all problems, but it could eliminate some.

reply to this message

#63: Re: Forced Map Downloads

by HopFrog on 06/02/2005 17:48, refers to #62

I only mention that because cube maps are pretty small, and typically download very, very quickly.

reply to this message

Go to first 20 messagesGo to previous 20 messages    Board Index    Go to next 20 messagesGo to last 20 messages


Unvalidated accounts can only reply to the 'Permanent Threads' section!


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
58268973 visitors requested 76220656 pages
page created in 0.040 seconds using 10 queries
hosted by Boost Digital