[Mod] NoCheat [1.0.1] [nocheat]

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

[Mod] NoCheat [1.0.1] [nocheat]

by sfan5 » Sun Aug 04, 2013 12:19

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/30267315/Minetest/nocheat1.0.1.zip
1.0: https://dl.dropboxusercontent.com/u/30267315/Minetest/nocheat1.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

by Bas080 » Sun Aug 04, 2013 12:48

What is considered cheating?
 

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

by PilzAdam » Sun Aug 04, 2013 12:56

 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Sun Aug 04, 2013 15:48

Nice!
 

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

by Bas080 » Sun Aug 04, 2013 22:27

PilzAdam wrote:
Bas080 wrote:What is considered cheating?

https://github.com/minetest/minetest/blob/master/doc/lua_api.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

by Cooper97 » Sun Aug 04, 2013 22:34

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

by PilzAdam » Sun Aug 04, 2013 23:08

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.
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Mon Aug 05, 2013 07:03

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)
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Mon Aug 05, 2013 11:16

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.

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Mon Aug 05, 2013 11:38

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

by Cooper97 » Wed Aug 07, 2013 06:58

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.)
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Wed Aug 07, 2013 07:17

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

by Cooper97 » Wed Aug 07, 2013 07:27

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.)
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Wed Aug 07, 2013 10:56

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

by Cooper97 » Wed Aug 07, 2013 11:32

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: 902
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine

by BrunoMine » Wed Aug 28, 2013 03:35

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

by Zeg9 » Wed Aug 28, 2013 08:17

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: 902
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine

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

by BrunoMine » Fri Mar 06, 2015 00:57

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.
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

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

by sfan5 » Wed Mar 11, 2015 10:25

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)
 


Return to Old Mods

Who is online

Users browsing this forum: No registered users and 5 guests

cron