Page 1 of 1

[mod] Realtime Elevators [elevator]

PostPosted: Wed Mar 22, 2017 13:15
by shacknetisp

This mod provides stable entity-based elevators for fast vertical travel without teleportation.
Current I've only written recipes for use with technic and homedecor/chains, so if anyone would like to make a pull request with default-compatible recipes that would be appreciated.

This mod has been live on Survival in Ethereal for a couple weeks, and has been tested by several players there.

Requires a version of Minetest Engine newer than 0.4.15 for best usage, though it is compatible with 0.4.15-release. Development began with a version from 2017-03-07.

Image

Re: [mod] Realtime Elevators [elevator]

PostPosted: Wed Mar 22, 2017 16:35
by TheReaperKing
Looks interesting!

Re: [mod] Realtime Elevators [elevator]

PostPosted: Thu Mar 23, 2017 17:18
by azekill_DIABLO
is it smooth? if yes i need it!

Re: [mod] Realtime Elevators [elevator]

PostPosted: Thu Mar 23, 2017 21:15
by shacknetisp
In singleplayer it is quite smooth. I have not tested on a very powerful server, but even with lag it is generally smooth, and it works without losing much (if any) speed, which is one of the most important features.

Re: [mod] Realtime Elevators [elevator]

PostPosted: Fri Mar 24, 2017 14:38
by azekill_DIABLO
just perfect!

Re: [mod] Realtime Elevators [elevator]

PostPosted: Sat Mar 25, 2017 11:47
by DS-minetest
Cool! I like it!
You should make the player bigger (with set_properties) when you attach it.

Re: [mod] Realtime Elevators [elevator]

PostPosted: Sat Mar 25, 2017 14:08
by shacknetisp
DS-minetest wrote:Cool! I like it!
You should make the player bigger (with set_properties) when you attach it.


Thanks & done!

Re: [mod] Realtime Elevators [elevator]

PostPosted: Sat Mar 25, 2017 23:51
by Cage
I have a problem and a question.

First if I right click on the elevator I get this error which crashes the game....

2017-03-25 16:05:47: ERROR[Main]: ServerError: Lua: Runtime error from mod 'elevator' in callback item_OnPlace(): .minetest/mods/elevator/init.lua:456: attempt to call method 'get_pos' (a nil value)
2017-03-25 16:05:47: ERROR[Main]: stack traceback:
2017-03-25 16:05:47: ERROR[Main]: .minetest/mods/elevator/init.lua:456: in function 'on_rightclick'
2017-03-25 16:05:47: ERROR[Main]: /usr/share/minetest/builtin/game/item.lua:337: in function </usr/share/minetest/builtin/game/item.lua:330>

I am using the latest stable release.

The question is how exactly to you set up and use the elevator. I know you need the motor at the top and the shafts between. There are two elevator nodes, one that looks like the elevator and the other that looks like a shaft until the motor is attached. Then it turns into the elevator node. Not sure if I am setting this up correctly nor how to make the elevator work once it is set up. Can you elaborate on how to set up and use the mod. Thanks in advance.

Re: [mod] Realtime Elevators [elevator]

PostPosted: Sun Mar 26, 2017 02:54
by shacknetisp
Cage wrote:First if I right click on the elevator I get this error which crashes the game....

I'm unable to reproduce this, are you using any other mods? What exact steps can you use to do it again? By stable, do you mean 0.4.15? Please remember to update the mod before trying again.

Cage wrote:The question is how exactly to you set up and use the elevator. I know you need the motor at the top and the shafts between. There are two elevator nodes, one that looks like the elevator and the other that looks like a shaft until the motor is attached. Then it turns into the elevator node. Not sure if I am setting this up correctly nor how to make the elevator work once it is set up. Can you elaborate on how to set up and use the mod. Thanks in advance.


Once there are at least two elevators connected to the shaft and the motor is attached, they can be used. You can enter one of the elevators, right click on it, and travel to any other elevator on the shaft.

Re: [mod] Realtime Elevators [elevator]

PostPosted: Sun Mar 26, 2017 03:24
by Melkor
can anyone upload a video of the mod working?

Re: [mod] Realtime Elevators [elevator]

PostPosted: Sun Mar 26, 2017 04:24
by Cage
I'm unable to reproduce this, are you using any other mods? What exact steps can you use to do it again? By stable, do you mean 0.4.15? Please remember to update the mod before trying again.


Yes I am using other mods but the ones I thought might be causing the problem weren't the ones. I can place the elevators and shaft node, right click on the elevators and the formspec comes up. It says that the elevator is inactive. I type in the name for the elevator and all is okay. After I place the motor on top of the upper elevator they activate. Then that is were the problem comes in. I go into the elevator and right click, then the game crashes. Error say that the player location detection is a nil value. By stable I did mean 0.4.15. I re-downloaded the mod, removed the one in the game and reinstalled it again. Same results.

Re: [mod] Realtime Elevators [elevator]

PostPosted: Sun Mar 26, 2017 09:18
by DS-minetest
@Cage: Try editing the "get_pos" to "getpos" in file.

Re: [mod] Realtime Elevators [elevator]

PostPosted: Sun Mar 26, 2017 14:29
by shacknetisp
I've changed that now and confirmed it works with 0.4.15-stable. There are still some problems with how 0.4.15 release handles double-height nodes, but it is now possible to use and will improve with the next release of Minetest.

Re: [mod] Realtime Elevators [elevator]

PostPosted: Sun Mar 26, 2017 21:12
by Cage
Thank you sir, that did the trick and it works great. Keep up the great work.

Re: [mod] Realtime Elevators [elevator]

PostPosted: Mon Mar 27, 2017 17:05
by Andrey01
Wow, nice!Have you made real elevators?I will try it.Will new views of elevators?For example, steel elevator or wooden elevator