Page 1 of 1

[Mod] Disable sneak glitch [1.1.0] [no_sneak_glitch]

PostPosted: Mon Oct 20, 2014 15:00
by Wuzzy
Disable sneak glitch
This mod disables the sneak glitch for all players automatically when they join. Make Minetest more suitable for action-style games.

See the Sneaking article in the Community Wiki to learn more about the sneak glitch in detail.

To summarize, the sneak glitch allows you to climb up at insane speeds while holding both the sneak key and the jump key while you stand at the corner of structures like this one:
Image

There is also an old bug in Minetest which allows you to negate all fall damage while holding down the sneak key if you fall on a slab (or similar) or the edge of a block. Using this mod gets rid of this, too (coincidentally).

In my opinion both these behaviours are unacceptable for any action-themed game, especially the latter one. This is the reason why this mod exists.

When this mod is enabled, sneaking will now only make you walk slower. If you walk close to an edge of a block, sneaking will not stop you there, instead you will simply walk over the edge eventually.

However, I do understand that in some circumstances it may be desirable to keep the sneak glitch intentionally enabled. If this is the case for you, simply do not use this mod. :-)



Re: [Mod] Disable sneak glitch [1.0.0] [no_sneak_glitch]

PostPosted: Mon Oct 20, 2014 15:26
by rubenwardy
Please explain the sneak glitch.

Re: [Mod] Disable sneak glitch [1.0.0] [no_sneak_glitch]

PostPosted: Mon Oct 20, 2014 23:59
by gamergardencat
Maybe Wuzzy is thinking about this https://github.com/minetest/minetest/issues/1692

Re: [Mod] Disable sneak glitch [1.0.0] [no_sneak_glitch]

PostPosted: Tue Oct 21, 2014 00:25
by Wuzzy
The sneak glitch is a weird behaviour which makes it possible to jump up absurd heights by building blocks in a special way.
A common structure abusung this glitch is the so-called “sneak elevator”. It looks like this:
Image
To abuse the sneak glitch, stand at that corner and hold both the sneak key and the jump key. You will jump up the entire structure.
There may be other structures which abuse this glitch, but I don’t know them.

I am one of those who think this glitch is stupid. That’s what the mod is for. Simply activate the mod and strange structures like the sneak elevator won’t work anymore.


Technically: What this mod does is simply setting sneak_glitch to false for all players via set_physics_override. This is probably one of the smallest Minetest mods ever, but it works. :-)
Yep, Minetest does not fix the sneak glitch, instead it makes it configurable, because apparently some players do want it. o_O

Re: [Mod] Disable sneak glitch [1.0.0] [no_sneak_glitch]

PostPosted: Tue Oct 21, 2014 00:49
by Evergreen
Wuzzy wrote:The sneak glitch is a weird behaviour which makes it possible to jump up absurd heights by building blocks in a special way.
A common structure abusung this glitch is the so-called “sneak elevator”. It looks like this:
-- snip --
To abuse the sneak glitch, stand at that corner and hold both the sneak key and the jump key. You will jump up the entire structure.
There may be other structures which abuse this glitch, but I don’t know them.

I am one of those who think this glitch is stupid. That’s what the mod is for. Simply activate the mod and strange structures like the sneak elevator won’t work anymore.


Technically: What this mod does is simply setting sneak_glitch to false for all players via set_physics_override. This is probably one of the smallest Minetest mods ever, but it works. :-)
Yep, Minetest does not fix the sneak glitch, instead it makes it configurable, because apparently some players do want it. o_O
Did you ever think that it is actually useful? I used to use it all the time on redcrab's server. (but I suppose that spawned from the fact you couldn't 'fast' up a ladder back then)

Re: [Mod] Disable sneak glitch [1.0.0] [no_sneak_glitch]

PostPosted: Tue Oct 21, 2014 00:50
by kaeza
Wuzzy wrote:because apparently some players do want it. o_O

http://xkcd.com/1172/

:^P

Re: [Mod] Disable sneak glitch [1.0.0] [no_sneak_glitch]

PostPosted: Tue Oct 21, 2014 02:35
by LazyJ
kaeza wrote:http://xkcd.com/1172/

:^P



Bingo, kaeza. ;)

No matter what you do, whatever "it" is, it will disrupt someone's work-flow somewhere.

From what I've observed, the sneak-glitch is generally used by more advanced Minetest miners and builders.

Those that use handhelds can't use the sneak-glitch yet, as far as I know.

I also find the sneak-glitch quite useful:
  • for mining,
  • for reaching the tops of MoreTrees to harvest the whole tree instead of leaving "floating" trees littering the landscape,
  • for building taller more complex builds,
  • and for creating sky-builds.

Re: [Mod] Disable sneak glitch [1.0.0] [no_sneak_glitch]

PostPosted: Tue Oct 21, 2014 07:11
by Minetestforfun
I will try it soon, thank you for your work !

Re: [Mod] Disable sneak glitch [1.0.0] [no_sneak_glitch]

PostPosted: Tue Oct 21, 2014 07:19
by rubenwardy
It is used all the time on redcrab. I think of it as hand holds and foot holds to climb up on. It's faster than ladders.

Re: [Mod] Disable sneak glitch [1.0.0] [no_sneak_glitch]

PostPosted: Tue Oct 21, 2014 09:32
by CWz
rubenwardy wrote:It is used all the time on redcrab. I think of it as hand holds and foot holds to climb up on. It's faster than ladders.


notsure about that. with 0.4.7 clients you can run up ladders. i think a race would so which is faster.

Re: [Mod] Disable sneak glitch [1.0.0] [no_sneak_glitch]

PostPosted: Tue Oct 21, 2014 12:03
by Evergreen
CWz wrote:
rubenwardy wrote:It is used all the time on redcrab. I think of it as hand holds and foot holds to climb up on. It's faster than ladders.


notsure about that. with 0.4.7 clients you can run up ladders. i think a race would so which is faster.

Hm, I might actually do a video on that. Thanks for the idea.

Re: [Mod] Disable sneak glitch [1.0.0] [no_sneak_glitch]

PostPosted: Thu Oct 23, 2014 17:16
by Hybrid Dog
The "sneak glitch" isn't absurd. The "green yeti", previous skin, had different movement extremities, with which the player was able to use sneak elevators, walk out a wall he stuck in, …

Re: [Mod] Disable sneak glitch [1.0.0] [no_sneak_glitch]

PostPosted: Sun Oct 26, 2014 16:20
by Dragonop
Really?! This mod...
...uh, this mod.
Sorry Wuzzy, I like your attitude, and the way you explain, and your mods, and stuff...
...but, this mod is ridiculous, the players that use this ''glitch'' are the most experienced ones, even griefers don't now how to use it.
I only teach things like ''how to use the fast priv'' and how to protect, and how to use the sneak glitch; only to the most trusted players.
I'm mad now, things like this, made to screw people up.
This mod, only ruins the most experienced players, it doesn't even affect other players, only the most experienced ones.

Re: [Mod] Disable sneak glitch [1.0.0] [no_sneak_glitch]

PostPosted: Sun Oct 26, 2014 16:21
by Dragonop
Hybrid Dog wrote:The "sneak glitch" isn't absurd. The "green yeti", previous skin, had different movement extremities, with which the player was able to use sneak elevators, walk out a wall he stuck in, …

What is the ''green yeti''?

Re: [Mod] Disable sneak glitch [1.0.0] [no_sneak_glitch]

PostPosted: Sun Oct 26, 2014 17:40
by Wuzzy
The “green yeti” probably refers to the legacy player graphic used in older Minetest (and minetest_game) versions.

You can view it here:
https://raw.githubusercontent.com/minet ... player.png

Re: [Mod] Disable sneak glitch [1.0.0] [no_sneak_glitch]

PostPosted: Sun Oct 26, 2014 17:47
by kaeza
Dragonop wrote:Really?! This mod...
...uh, this mod.
Sorry Wuzzy, I like your attitude, and the way you explain, and your mods, and stuff...
...but, this mod is ridiculous, the players that use this ''glitch'' are the most experienced ones, even griefers don't now how to use it.
I only teach things like ''how to use the fast priv'' and how to protect, and how to use the sneak glitch; only to the most trusted players.
I'm mad now, things like this, made to screw people up.
This mod, only ruins the most experienced players, it doesn't even affect other players, only the most experienced ones.

Personally, I do prefer disabling the sneak glitch for myself, because it adds to the survival aspect. That said, this is a personal preference, and I wouldn't try to persuade players that like having it.

It would be nice to have the an option (via `minetest.conf`) to either keep no sneak glitch global, or per-user. (on that note, we need some kind of "client-specified configuration protocol", so clients can change settings that affect all servers, without having to set their options on each server).

Re: [Mod] Disable sneak glitch [1.0.0] [no_sneak_glitch]

PostPosted: Sun Oct 26, 2014 20:48
by Wuzzy
Dragonop, your paranoia makes me sick. Nobody forces anyone to not use the sneak glitch. Just don’t use the mod if you really want the sneak glitch so badly. And don’t join servers that use this mod. The choice is up to you.
And you don’t have to be really experienced to know how the sneak glitch works, it’s quite a simple concept to grasp, actually. You delude yourself if you think that this is some sacred knowledge only accessible to the elite. It’s not.
And you really sound crazy as you sad that this mod “screws people up”.

Re: [Mod] Disable sneak glitch [1.0.0] [no_sneak_glitch]

PostPosted: Thu Nov 12, 2015 11:53
by amadin
Very much needed mod, thanks

Version 1.0.1

PostPosted: Mon Nov 30, 2015 19:59
by Wuzzy
Version 1.0.1 of this mod fixes an oversight: When you hold down the sneak key while falling, it was possible to negate all fall damage if you fell onto an node edge or a nodebox. I dub this “technique” (???) the “sneaky drop”. xD
Version 1.0.1 disables this weird (maybe buggy?) behaviour as well.

Now sneaking should only make you walk slower. If you walk towards an edge, sneaking will no longer stop you there; instead you just walk over the edge eventually.

Sneaking sure is very weird in Minetest. xD

But if you want to keep the classic sneaking with all its glitchyness, simply do not use this mod. You decide. :-)

PS: I have updated the initial post with a brief explanation of the sneak glitch.

Re: [Mod] Disable sneak glitch [1.0.1] [no_sneak_glitch]

PostPosted: Mon Nov 30, 2015 21:25
by kaadmy
How does this work?
Using player:set_physics_override({sneak_glitch=false}) doesn't seem to do anything; I'm guessing that this mod uses Lua to somehow disable it?

Re: [Mod] Disable sneak glitch [1.0.1] [no_sneak_glitch]

PostPosted: Mon Nov 30, 2015 21:33
by rubenwardy
kaadmy wrote:How does this work?
Using player:set_physics_override({sneak_glitch=false}) doesn't seem to do anything; I'm guessing that this mod uses Lua to somehow disable it?


This is the entire code for the mod:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_on_joinplayer(function(player)
   player:set_physics_override({sneak_glitch=false, sneak=false})
end)


https://github.com/rubenwardy/captureth ... h/init.lua

Re: [Mod] Disable sneak glitch [1.0.1] [no_sneak_glitch]

PostPosted: Tue Dec 01, 2015 18:36
by kaadmy
Ah, so it disables sneaking at edges, too. The sneak_glitch flag didn't seem to do anything when I tried it.

Release 1.1.0

PostPosted: Sat Jul 02, 2016 16:08
by Wuzzy
I just released version 1.1.0. This is a minor update which adds mod.conf and that's basically it.
I also added a Git repository (see first post).

By the way, I have written a new page on Sneaking in the Community Wiki.

Re: [Mod] Disable sneak glitch [1.1.0] [no_sneak_glitch]

PostPosted: Thu Aug 18, 2016 09:06
by ABJ
OK, this mod can add to survival, thanks. Although I personally like the sneak glitch very much. Also, I must note that disabling sneaking on edges doesn't prevent you from building out from the top. If you're careful, you can stand at the veeeeerrry edge, and your viewpoint will actually be slightly over the edge, just enough to place a block. I used this trick for a looooooong time till I discovered sneaking. I even used this to build some outcroppings at the top of a 100+node tall skyscraper.

Re: [Mod] Disable sneak glitch [1.1.0] [no_sneak_glitch]

PostPosted: Thu Aug 18, 2016 11:01
by Wuzzy
Yes, this standing over the edge thing is the main reason for sneaking and is intentionally not disabled by this mod. This mod does not disable sneaking, only the sneak glitch.

But technically it would be possible to “disable” sneaking altogether. This would also eliminate the edge thing. In this case, sneaking will still make you walk slower, but you will simply walk over block edges and fall while sneaking.

I don't feel like to integrate it into this mod, however, I wanted to keep it very lightweight. Maybe one day I'll release a mod which combines various little global gameplay settings like disabling sneak, disabling fall damage, adding suffocation, and more into one single mod and makes them accessible though the advanced settings.

Re: [Mod] Disable sneak glitch [1.1.0] [no_sneak_glitch]

PostPosted: Thu Aug 18, 2016 11:19
by ABJ
No, I meant the non-sneak-glitch way, where you can look slightly over the edge without using sneak.

Re: [Mod] Disable sneak glitch [1.1.0] [no_sneak_glitch]

PostPosted: Thu Aug 18, 2016 12:07
by Wuzzy
I thought that's what I meant.
But now I am confused, how can you walk at the edge without sneaking? Can you give a demonstration, screenshot or video?

Re: [Mod] Disable sneak glitch [1.1.0] [no_sneak_glitch]

PostPosted: Thu Aug 18, 2016 12:23
by ABJ
Yes you can. I'm not sneaking here.
Image

Re: [Mod] Disable sneak glitch [1.1.0] [no_sneak_glitch]

PostPosted: Thu Aug 18, 2016 13:34
by Wuzzy
OK, this is more related to the way how Minetest's camera and Minetest Game's player model work, which are both a bit weird. It is completely unrelated to sneaking or the sneak glitch.

Re: [Mod] Disable sneak glitch [1.1.0] [no_sneak_glitch]

PostPosted: Thu Aug 18, 2016 14:35
by ABJ
I mentioned it because being able to walk on edges IIRC is part of what makes up the sneak glitch.
Also, off-topic, but note the tens of thousands of everamzah coal grenades in the inventory.