[Mod] NoCheat [1.0.1] [nocheat]

Post Reply
sfan5
Moderator
Posts: 4093
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

[Mod] NoCheat [1.0.1] [nocheat]

by sfan5 » Post

NoCheat is a mod that can automatically ban or revoke interact of cheaters and hackers.

License
Code: GPLv2
Textures/Sounds: -
Dependencies:
none
Download:
1.0.1: https://dl.dropboxusercontent.com/u/302 ... t1.0.1.zip
1.0: https://dl.dropboxusercontent.com/u/302 ... eat1.0.zip
All versions of NoCheat need the latest git of Minetest from at least 2013-08-04(YYYY-MM-DD)
A win32 version is (currently) only available from me: Sfan5's Minetest Win32 Builds | Post #258

Privileges:
maycheat
The player may cheat and be undetected by NoCheat.
Commands:
/vlreset <playername>
Resets the VL of a player | Requires privs Privilege
/vlget <playername>
Outputs the current VL of a player | Requires privs Privilege
/grant <playername> maycheat
Allows a player to cheat | Requires privs Privilege
/revoke <playername> maycheat
Revoke the right to cheat from a player | Requires privs Privilege
Explanation:
When the minetest server detects cheating the NoCheat callback is run.
The callback gives a player a specific amount(can be changed using vlsettings) of VL(Violation Level), Cheating can be announced in public(public_notify) and|or to the cheater(player_notify).
If a players VL reaches the level specified by auto_limit he is either banned(autoban) or his interact privilege(can be changed using revokesettings) is revoked(autorevoke).
If a player is banned this action can be announced in public(public_ban_notify).

All settings can be changed in settings.lua
Thanks to:
celeron55 for making the anticheat system better
PilzAdam for helping me test my mod
Uberi for having the idea of revoking interact
Jordach for more ideas
Last edited by sfan5 on Mon Aug 05, 2013 11:56, edited 1 time in total.
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

User avatar
Bas080
Member
Posts: 398
Joined: Mon May 21, 2012 15:54
GitHub: bas080
IRC: bas080
In-game: bas080
Location: Netherlands

by Bas080 » Post

What is considered cheating?

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

Bas080 wrote:What is considered cheating?
https://github.com/minetest/minetest/bl ... .txt#L1147

User avatar
rubenwardy
Moderator
Posts: 6969
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

by rubenwardy » Post

Nice!
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
Bas080
Member
Posts: 398
Joined: Mon May 21, 2012 15:54
GitHub: bas080
IRC: bas080
In-game: bas080
Location: Netherlands

by Bas080 » Post

PilzAdam wrote:
Bas080 wrote:What is considered cheating?
https://github.com/minetest/minetest/bl ... .txt#L1147
Nice mod. I'm using this to avoid irritating glitch when server guests move to fast because of teleport <admin> <guest>.

User avatar
Cooper97
Member
Posts: 52
Joined: Thu Feb 21, 2013 19:55
Location: Germany

by Cooper97 » Post

Nice mod :-) but... why does it require the GIT version 0.4.7? Why does it not work with the stable version of Minetest 0.4.7?
And please make it so that the NoCheat mod works with Minetest 0.4.8 stable when 0.4.8 is released. And as improvement suggestion: If the mod works without bugs, it would be great if the NoCheat mod would be added by default.
Sorry for my bad english. (I am from germany.)

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

Cooper97 wrote:but... why does it require the GIT version 0.4.7? Why does it not work with the stable version of Minetest 0.4.7?
The anti-cheat code was recently fixed and improved, it now triggers a Lua event so mods like this can handle it.

sfan5
Moderator
Posts: 4093
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

Cooper97 wrote:If the mod works without bugs, it would be great if the NoCheat mod would be added by default.
I don't think it should be added by default.
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

Jordach
Member
Posts: 4534
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach
Location: Blender Scene

by Jordach » Post

NoCheat should be added to the servers that see FREQUENT PLAYERS daily. Not just the ones with one or two player; I mean like mauvebic's StarTest; that usually has 14 players on it.

For example; this mod should make it easier to revoke interact of chat spamming users to revoke their shout priv; this is a known thing where a 12yr old griefs; loses his interact; spams until he gets it back; revoking shout to these users would be a great benefit to the other clients connected to the server as it's less of a headache.

sfan5
Moderator
Posts: 4093
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

Update!
Changelog:
  • The privileges revoked when using autorevoke can now be configured using revokesettings
Download in OP
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

User avatar
Cooper97
Member
Posts: 52
Joined: Thu Feb 21, 2013 19:55
Location: Germany

by Cooper97 » Post

sfan5 wrote:
Cooper97 wrote:If the mod works without bugs, it would be great if the NoCheat mod would be added by default.
I don't think it should be added by default.
Minetest 0.4.7 has also an anti cheat protection by default, if you add
disable_anticheat = false to the config, but this cheat prevention is very simple, and with added by default I mean replacing the old, simple prevention by this mod.
Sorry for my bad english. (I am from germany.)

sfan5
Moderator
Posts: 4093
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

Which old simple protection?
This mod doesn't check player movement etc. all that is done by the engine
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

User avatar
Cooper97
Member
Posts: 52
Joined: Thu Feb 21, 2013 19:55
Location: Germany

by Cooper97 » Post

sfan5 wrote:Which old simple protection?
This mod doesn't check player movement etc. all that is done by the engine
If I enable the default cheat prevention in the config, and I move to fast on my server, it teleports me back an it say's in the server window anything like "cheat prevention, player Cooper97 moved to fast."
Sorry for my bad english. (I am from germany.)

sfan5
Moderator
Posts: 4093
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

Yeah thats right, that is done by the engine automatically.
If you'd read the code of my mod you'd know that it only counts the VL and doesn't teleport the player back
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

User avatar
Cooper97
Member
Posts: 52
Joined: Thu Feb 21, 2013 19:55
Location: Germany

by Cooper97 » Post

Ok. But I think this mod is very useful for all server. That is the reason for the idea to add this mod by default.
Sorry for my bad english. (I am from germany.)

User avatar
BrunoMine
Member
Posts: 1082
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine
Location: SP-Brasil
Contact:

by BrunoMine » Post

This means that hackers have minetest?
Someone explain this better?
My small square universe under construction ... Minemacro
Comunidade Minetest Brasil
www.minetestbrasil.com

User avatar
Zeg9
Member
Posts: 608
Joined: Fri Sep 21, 2012 11:02
Location: France

by Zeg9 » Post

brunob.santos wrote:This means that hackers have minetest?
Someone explain this better?
...someone tell him?
Last edited by Zeg9 on Wed Aug 28, 2013 08:17, edited 1 time in total.
I made a few (a lot of?) mods for minetest: here is a list.
See also the MT-Faithful texture pack (work in progress).

User avatar
BrunoMine
Member
Posts: 1082
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine
Location: SP-Brasil
Contact:

Re: [Mod] NoCheat [1.0.1] [nocheat]

by BrunoMine » Post

It seems that is not working.
I tested entering a server with active mod, but I broke a locked alien chest several times and nothing happened.

sfan5
Moderator
Posts: 4093
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

Re: [Mod] NoCheat [1.0.1] [nocheat]

by sfan5 » Post

This mod handles cheating detected by the Minetest engine, this doesn't include breaking some locked chest node.
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests