Sneak news and a temporary option for old move code

paramat
Developer
 
Posts: 2788
Joined: Sun Oct 28, 2012 00:05
Location: UK
GitHub: paramat
IRC: paramat

Sneak news and a temporary option for old move code

by paramat » Mon Apr 17, 2017 14:01

Sorry for the recent disruption, usually we manage to keep MT dev version usable but it has been very broken for many players recently. This is an example of the risk taken by using a dev version, i guess it has been a shock to those used to usable dev versions.

A temporary option for old move code (and therefore old sneak) has just been added (pull request details are here https://github.com/minetest/minetest/pull/5519). This gives us time to improve the new move code while keeping you happy. The idea is to remove the option again at the end of next release, which will probably be 0.5.0 therefore giving us an excuse to break some stuff.

The option has been added as an additional 'physics override' alongside the 'sneak' and 'sneak_glitch' overrides. The advantage of this is that the option can be either per-player or applied to all players dependent on what a server admin prefers.
To enable old move code for all players in a world use a mod with this code:

Code: Select all
minetest.register_on_joinplayer(function(player)
   local override_table = player:get_physics_override()
   override_table.new_move = false
   player:set_physics_override(override_table)
end)


Alternatively you can write a mod to set the option per-player and controlled by player chat command.

We have approximately replicated sneak ladders and 2-node sneak-jump in an option in new move code. This option is controlled by the 'sneak_glitch' physics override and is currently enabled by default, however it will be changed to disabled by default before 0.4.16 feature freeze (21st May). You can then control the option in the ways described above.

General sneak behaviour in new move code is improving with only a few remaining issues which are mostly minor (see details here https://github.com/minetest/minetest/issues/5438 and here https://github.com/minetest/minetest/issues/5535).

So we are fairly successful in moving sneak side effects from being bugs (with many related inseperable bugs) to being intentional and optional. However the new behaviour of general sneak and the sneak side effects will not, and probably cannot, be absolutely identical to the old code. We understand that there are constructions that rely on the specific old behaviour, for example parkour courses, so MT 0.5.0 is the obvious point where we can break stuff, until then the option for old code is there.
Last edited by paramat on Tue Apr 25, 2017 03:29, edited 1 time in total.
 

User avatar
Wuzzy
Member
 
Posts: 2379
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: Sneak news and a temporary option for old move code

by Wuzzy » Tue Apr 18, 2017 01:45

I have read your words, but I don't think I understood them.
What is this strange “old move code” you are talking about all the time? Is it arcane magic from the Elders?
I'm creating MineClone 2, a Minecraft clone for Minetest.
I made the Help modpack, adding in-game help to Minetest.
 

paramat
Developer
 
Posts: 2788
Joined: Sun Oct 28, 2012 00:05
Location: UK
GitHub: paramat
IRC: paramat

Re: Sneak news and a temporary option for old move code

by paramat » Wed Apr 19, 2017 00:23

The 'move code' is the code that determines how the player can move in response to the controls. The sneak code is contained within it, so when i mention 'move code' i am also referring to 'sneak code'.
 

User avatar
Linuxdirk
Member
 
Posts: 731
Joined: Wed Sep 17, 2014 11:21
Location: Germany
GitHub: dsohler
In-game: Linuxdirk

Re: Sneak news and a temporary option for old move code

by Linuxdirk » Wed Apr 19, 2017 10:01

"old move code" a.k.a. the buggy hacky shit that a lot of people are uber whiny about when it finally was fixed. :)
 

User avatar
Wuzzy
Member
 
Posts: 2379
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: Sneak news and a temporary option for old move code

by Wuzzy » Wed Apr 19, 2017 13:31

Lol.
Okay.
I'm creating MineClone 2, a Minecraft clone for Minetest.
I made the Help modpack, adding in-game help to Minetest.
 

User avatar
Sergey
Member
 
Posts: 665
Joined: Wed Jan 11, 2017 13:28
Location: Russia

Re: Sneak news and a temporary option for old move code

by Sergey » Thu Apr 20, 2017 15:13

Linuxdirk wrote:buggy hacky shit

"buggy hacky shit" translated* from English into Russian and then back gets "sloppy shit"
"sloppy shit" translated from English into Russian and then back gets "careless shit"
"careless shit" is constant :-) "careless shit" is "careless shit"

* translations were made with google translator
I am Russian. I am Atheist. I am Homophobe. I am Communist.
In other words, I am an ordinary Soviet man.
 

paramat
Developer
 
Posts: 2788
Joined: Sun Oct 28, 2012 00:05
Location: UK
GitHub: paramat
IRC: paramat

Re: Sneak news and a temporary option for old move code

by paramat » Tue Apr 25, 2017 03:35

In the new player movement code, the replications of sneak ladder and 2 node sneak jump are an option which is controlled by the 'sneak_glitch' physics override, the option is now disabled by default. To enable for all players use a mod with this code:

Code: Select all
minetest.register_on_joinplayer(function(player)
   local override_table = player:get_physics_override()
   override_table.sneak_glitch = true
   player:set_physics_override(override_table)
end)


Alternatively you can write a mod to set the option per-player and possibly controlled by player chat command.
 

User avatar
BBmine
Member
 
Posts: 2575
Joined: Sun Jul 12, 2015 22:51
Location: In the garbage can eating rotten bananas (Or rat poison if that's easier).
GitHub: BBmine
IRC: BBmine
In-game: Baggins

Re: Sneak news and a temporary option for old move code

by BBmine » Wed Apr 26, 2017 12:04

paramat wrote:In the new player movement code, the replications of sneak ladder and 2 node sneak jump are an option which is controlled by the 'sneak_glitch' physics override, the option is now disabled by default. To enable for all players use a mod with this code:

Code: Select all
minetest.register_on_joinplayer(function(player)
   local override_table = player:get_physics_override()
   override_table.sneak_glitch = true
   player:set_physics_override(override_table)
end)


Alternatively you can write a mod to set the option per-player and possibly controlled by player chat command.

So it's handled server-side? Then I guess I can feel safe about upgrading to 0.4.16 when it comes out :D
God's not dead!
"Potatoes have important proteins for you. You need potatoes in your diet to be healthy ! :D"--MY
Mods, Servers, and My Youtube Channel
"Baggins, why you cause so much trouble? You goof ball."--maike
"Together, we will make America great again!" --President Trump
The new forum that doesn't keep you from having fun:http://minetestofftopic.createaforum.com
 

User avatar
ClaudiusMinimus
Member
 
Posts: 42
Joined: Wed Jun 01, 2016 17:46
Location: Rocky Mountiains in the Western USA
GitHub: ClaudiusMinimus
IRC: ClaudiusMinimus
In-game: ClaudiusMinimus

Re: Sneak news and a temporary option for old move code

by ClaudiusMinimus » Wed Apr 26, 2017 15:06

paramat wrote:In the new player movement code, the replications of sneak ladder and 2 node sneak jump are an option which is controlled by the 'sneak_glitch' physics override, the option is now disabled by default. To enable for all players use a mod with this code:

Code: Select all
minetest.register_on_joinplayer(function(player)
   local override_table = player:get_physics_override()
   override_table.sneak_glitch = true
   player:set_physics_override(override_table)
end)


Alternatively you can write a mod to set the option per-player and possibly controlled by player chat command.


For those who are not developers, here is how I made this patch work:

  • Create a new folder/directory in your .minetest/mods directory (I called my "dev" for things I want to override in the dev build)
  • Create a new empty file named init.lua
  • Copy/paste the above code into the new file, then save and close
  • Enable the new mod (in my case, "dev") as you would any other mod

Your sneak ladders should work again.
ClaudiusMinimus

Follow my blog at: ClaudiusMinimus' Universe
Visit me at the incredible Illuna Universe
 

paramat
Developer
 
Posts: 2788
Joined: Sun Oct 28, 2012 00:05
Location: UK
GitHub: paramat
IRC: paramat

Re: Sneak news and a temporary option for old move code

by paramat » Thu Apr 27, 2017 02:10

BBmine wrote:So it's handled server-side? Then I guess I can feel safe about upgrading to 0.4.16 when it comes out :D

Yes physics override is server side in a mod, but a physics override gives the server admin the choice to either set the setting the same for all players, or set it per-player, or write a chat command to allow players to individually choose the setting for themselves. This flexibility is why we made this option and the 'old move code' option physics overrides.
 

User avatar
1248
Member
 
Posts: 108
Joined: Thu May 05, 2016 11:47
In-game: 1248 or Der1248

Re: Sneak news and a temporary option for old move code

by 1248 » Sun Jun 04, 2017 11:49

I think there is still one way in Minetest 0.4.16 to jump two blocks with sneak:
https://www.youtube.com/watch?v=nim5hO0UkEQ
Sorry for bad english
 

paramat
Developer
 
Posts: 2788
Joined: Sun Oct 28, 2012 00:05
Location: UK
GitHub: paramat
IRC: paramat

Re: Sneak news and a temporary option for old move code

by paramat » Sun Jun 04, 2017 17:45

Interesting.
2 node sneak jump is of course an intentional part of the 'sneak glitch' physics override, i assume that was disabled in your video?
 

User avatar
1248
Member
 
Posts: 108
Joined: Thu May 05, 2016 11:47
In-game: 1248 or Der1248

Re: Sneak news and a temporary option for old move code

by 1248 » Mon Jun 05, 2017 15:40

paramat wrote:Interesting.
2 node sneak jump is of course an intentional part of the 'sneak glitch' physics override, i assume that was disabled in your video?

I used the basic minetest game, no mods and the basic minetest.conf
Sorry for bad english
 

User avatar
Punk
Member
 
Posts: 30
Joined: Sun Dec 25, 2016 06:52

Re: Sneak news and a temporary option for old move code

by Punk » Wed Jun 07, 2017 03:01

1248 wrote:I think there is still one way in Minetest 0.4.16 to jump two blocks with sneak:
https://www.youtube.com/watch?v=nim5hO0UkEQ


Is this still a glitch? The same glitch?
 


Return to News



Who is online

Users browsing this forum: No registered users and 1 guest