[(Client)Mod] Client Side Protection [csm_protection]

User avatar
DS-minetest
Member
 
Posts: 1022
Joined: Thu Jun 19, 2014 19:49
Location: in front of my pc (which is at home)
GitHub: DS-Minetest
In-game: DS

[(Client)Mod] Client Side Protection [csm_protection]

by DS-minetest » Mon Jun 05, 2017 21:40

Client Side Protection

The player can't cheat anymore through walls, doors or roofs with this.

This mod can be used as mod and as clientmod.
The server and the client have to have it to make it work.

It would be really nice if servers install this mod. They can force their players to use this mod by kicking them on violate.

Depends: csm_com

License: CC0

Download
Github
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

User avatar
ExeterDad
Member
 
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
Location: New Hampshire U.S.A
In-game: ExeterDad

Re: [(Client)Mod] Client Side Protection [csm_protection]

by ExeterDad » Mon Jun 05, 2017 23:47

Could you possibly give some more details about this mod? Sounds interesting even though I'm not sure exactly what it's capable of.
 

User avatar
DS-minetest
Member
 
Posts: 1022
Joined: Thu Jun 19, 2014 19:49
Location: in front of my pc (which is at home)
GitHub: DS-Minetest
In-game: DS

Re: [(Client)Mod] Client Side Protection [csm_protection]

by DS-minetest » Tue Jun 06, 2017 08:56

When the player tries to dig a protected node, normally the node is away for some time. Until it's back the player can walk through walls, doors and roofs. If this client- and server-side mod is installed (on both, client and server), the client is stopped client-side from digging the node. => It will never disappear.
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

User avatar
duane
Member
 
Posts: 1274
Joined: Wed Aug 19, 2015 19:11
Location: Oklahoma City
GitHub: duane-r

Re: [(Client)Mod] Client Side Protection [csm_protection]

by duane » Tue Jun 06, 2017 11:08

So how do you stop them from just changing the client mod?
Believe in people and you don't need to believe anything else.
 

User avatar
DS-minetest
Member
 
Posts: 1022
Joined: Thu Jun 19, 2014 19:49
Location: in front of my pc (which is at home)
GitHub: DS-Minetest
In-game: DS

Re: [(Client)Mod] Client Side Protection [csm_protection]

by DS-minetest » Tue Jun 06, 2017 11:22

duane wrote:So how do you stop them from just changing the client mod?

If a player has this mod, he will never violate protection (so, trigger the event). This means you can simply add very hard punishment (like kicking).
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

User avatar
duane
Member
 
Posts: 1274
Joined: Wed Aug 19, 2015 19:11
Location: Oklahoma City
GitHub: duane-r

Re: [(Client)Mod] Client Side Protection [csm_protection]

by duane » Wed Jun 07, 2017 01:26

DS-minetest wrote:If a player has this mod, he will never violate protection (so, trigger the event). This means you can simply add very hard punishment (like kicking).


But if he wants to violate protection, all he has to do is modify (or just remove) the client mod, or am I missing something? If you're going to punish him based on easily modifiable code that he has to install, he's got a strong motivation to change that code to something he won't get punished for.
Believe in people and you don't need to believe anything else.
 

User avatar
ExeterDad
Member
 
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
Location: New Hampshire U.S.A
In-game: ExeterDad

Re: [(Client)Mod] Client Side Protection [csm_protection]

by ExeterDad » Wed Jun 07, 2017 01:48

duane wrote:
DS-minetest wrote:If a player has this mod, he will never violate protection (so, trigger the event). This means you can simply add very hard punishment (like kicking).


But if he wants to violate protection, all he has to do is modify (or just remove) the client mod, or am I missing something? If you're going to punish him based on easily modifiable code that he has to install, he's got a strong motivation to change that code to something he won't get punished for.

I'm not understanding the logic of this either. I'm trying to though :)
 

User avatar
DS-minetest
Member
 
Posts: 1022
Joined: Thu Jun 19, 2014 19:49
Location: in front of my pc (which is at home)
GitHub: DS-Minetest
In-game: DS

Re: [(Client)Mod] Client Side Protection [csm_protection]

by DS-minetest » Wed Jun 07, 2017 08:40

I found a problem, this only prevents from digging yet, not placing. But it's currently not really possible, I think.

There's a server-side function that is called when a player digs/places a protected node. On_punchnode the client mod asks the server mod via csm_com (which uses chat) if the punched node is protected. If it is protected, the server mod tells the client mod the position. The client mod saves this position. On_dignode the client mod checks if the position is the last position of that is told, that it's protected, if so, it returns true (the node is not digged). The server-side protection_violate function isn't called.
If the client mod is changed, that it doesn't return true, the node disappears but also the server-side protection_violate function is called. If the server kicks on this event the player, the one who has the mod (unmodified) doesn't get kicked, the one who hasn't gets kicked.
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

User avatar
ExeterDad
Member
 
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
Location: New Hampshire U.S.A
In-game: ExeterDad

Re: [(Client)Mod] Client Side Protection [csm_protection]

by ExeterDad » Wed Jun 07, 2017 11:17

^^ Thanks for explaining :) That's actually pretty clever.
Another question. Almost nobody uses CSM currently as it involves manually installing and configuring. Especially mobile users. How will this affect players that aren't using your mod at this time?
 

User avatar
DS-minetest
Member
 
Posts: 1022
Joined: Thu Jun 19, 2014 19:49
Location: in front of my pc (which is at home)
GitHub: DS-Minetest
In-game: DS

Re: [(Client)Mod] Client Side Protection [csm_protection]

by DS-minetest » Wed Jun 07, 2017 11:31

ExeterDad wrote:^^ Thanks for explaining :) That's actually pretty clever.
Another question. Almost nobody uses CSM currently as it involves manually installing and configuring. Especially mobile users. How will this affect players that aren't using your mod at this time?

It won't do anything. The only thing, that is different is that they see a chatmessage because of csm_com ("Psst, don't let your master hear this! Do you have csm_com?" I think).
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

User avatar
AntumDeluge
Member
 
Posts: 166
Joined: Sun Aug 07, 2016 05:42
GitHub: AntumDeluge
IRC: AntumDeluge

Re: [(Client)Mod] Client Side Protection [csm_protection]

by AntumDeluge » Sun Jul 09, 2017 18:48

I've been looking for a way to do this. Thank you.

Personally, I'd like to see this functionality built into the server code.
 

User avatar
DS-minetest
Member
 
Posts: 1022
Joined: Thu Jun 19, 2014 19:49
Location: in front of my pc (which is at home)
GitHub: DS-Minetest
In-game: DS

Re: [(Client)Mod] Client Side Protection [csm_protection]

by DS-minetest » Mon Jul 10, 2017 14:46

It could work much more reliable, also on place and without server mod if csm had something like an is_protected(pos) function.
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

User avatar
ManElevation
Member
 
Posts: 893
Joined: Tue Aug 02, 2016 22:04
Location: Madrid,Spain
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation
 

User avatar
azekill_DIABLO
Member
 
Posts: 7459
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

JTE
Member
 
Posts: 12
Joined: Sun Sep 07, 2014 14:59

Re: [(Client)Mod] Client Side Protection [csm_protection]

by JTE » Fri Feb 16, 2018 04:10

AntumDeluge wrote:Personally, I'd like to see this functionality built into the server code.

I couldn't agree more. Protected blocks have no reason to even be crack-able clientside, the server simply never attempts to actually communicate where protection areas exist until a block is broken, and minetest_game doesn't use the entire feature at all (even locked chests are just a different block type with an overwritten can_dig definition) so there are tons of mods which don't even respect it, and so on... I think it needs some love.
 


Return to Client-side modding



Who is online

Users browsing this forum: No registered users and 0 guests