inexorgame-obsolete / deprecated-cube-engine-inexor

UNMAINTAINED: Please have a look at the vulkan-renderer
https://inexor.org
zlib License
12 stars 1 forks source link

Implement a master server scheme in JS #197

Open koraa opened 9 years ago

koraa commented 9 years ago

Can we do something decentralized even?

Croydon commented 9 years ago

20

Fohlen commented 7 years ago

Since we agreed to this previously, @aschaeffer and I have talked a lot about a scheme for decentralized server lists.

Below is the protocol proposal:

Karma

Karma is a sort of rating, that every node in the network has.

Karma protocol

We need to decide on a way to protocol karma, since we don't want to read 5000 lines lasting .json documents. Ideas are welcomed.

Spam prevention / intrusion

There are generally two intrusion mechanism that we can build into the network

Karma ranking

Below, we need to discuss actions that we will want to determine karma for, and a virtual scala that rates them. I suggest that the scala ranges from 0 to 14 (like the pH scala), which comes (more or less) naturally for everyone, in so far as that you can tell, something is good (below 7) or bad (less than 7)

Action Rating
connect 7
bad ping / connection lost 5
kicked 4
banned 2
cheats 0

(many more can follow here) Keep in mind that the table design might be inaccurate. Most of the actions will trigger a bi-directional, however some (such as cheating, a server doesn't cheat ofc.) are not.