Page 1 of 2

[Mod] Lifters [0.2] [lifter]

Posted: Fri Feb 05, 2016 04:55
by Splizard
Introducing simple lifts for minetest!
Image

Simply craft the lift with the following craft recipe:

wood stick wood
wood mese wood
wood stick wood

Now place your lift in a shaft or next to a wall. Right click on your lift to get on it and then tap spacebar to go up a level or tap shift to go down a level...
So easy!!!
If you want to stop the lift at any time, press the "use" key.
Now that you have reached your destination simply walk off the lift :)

If you want to be able to call your lift, create a lift door:

stick stick stick
stick door stick
stick stick stick

Place this in front of a lift shaft with a lift block and you will be able to call the lift!
The doors will automatically open when you get off the lift :)

Mod Dependencies: default
License: GPLv3
Textures: Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)

REQUIRES LATEST MINETEST GAME

Download:
https://github.com/Splizard/minetest-mo ... master.zip
*Sorry my website is dead at the moment so I cannot host the download at the moment so you will need to download from this link and rename the folder "lifter"

Re: [Mod] Lifters [0.1] [lifter]

Posted: Fri Feb 05, 2016 12:38
by cd2
looks nice :)

Re: [Mod] Lifters [0.1] [lifter]

Posted: Sat Feb 06, 2016 10:11
by Krock
Nice mod, I like the idea of having a way to get up on high hills by using this node/entity.
Naj wrote:There is still missing something but I don"t know how to do it : possibility to "call" the lift when it is deeper or higher.
That's not possible. The entitiy removes and replaces itself with a regular node if there's no player attached to it.

Re: [Mod] Lifters [0.1] [lifter]

Posted: Sat Feb 06, 2016 19:33
by Splizard
Its possible to call the lift, its just thinking of a simple way of doing it!

Re: [Mod] Lifters [0.1] [lifter]

Posted: Thu Apr 28, 2016 18:26
by AceWill
Perhaps you could introduce a proximity mechanic to call the lift. For instance, have a block to one side of the lift shaft. When active, look for a lif block within, say, 100 meters up or down. If yes, then call it. Another possibility would be to add control blocks that move the (empty) lift up or down. You might need to add the ability to name lifts, so you can specify which lift a controller goes to. It's not quite a call button, but it is close.

Re: [Mod] Lifters [0.2] [lifter]

Posted: Thu Apr 28, 2016 22:31
by Splizard
@AceWill
I have implemented lift doors, they work quite well :) They can be a little bit buggy so just be warned, this is version 0.2!

If you want to be able to call your lift, create a lift door:

stick stick stick
stick door stick
stick stick stick

Place this in front of a lift shaft with a lift block and you will be able to call the lift :)

Re: [Mod] Lifters [0.2] [lifter]

Posted: Sun May 15, 2016 16:31
by xeranas
It would be easier to try mod if naming would be bit friendlier. I suggest to rename repo into lifter so users does not need rename when cloning or downloading zip. No need to say what it is in repo name description and readme for this information is designed :)

Btw, lifter_door missing textures, probably could be reused door textures if lifter door textures aren't yet ready.

I like mod simplism aspect.

Re: [Mod] Lifters [0.2] [lifter]

Posted: Mon May 16, 2016 03:15
by Splizard
@Xeranas
Thanks for your feedback, I added the texture :)
I must have missed uploading it!
I would normally have a user friendly download, I will get my website up with the mod featured.

Re: [Mod] Lifters [0.2] [lifter]

Posted: Mon May 16, 2016 08:45
by firefox
+1

this reminds me on the lifts in the Elemental Lighthouses in Golden Sun =(^.^)=

Re: [Mod] Lifters [0.2] [lifter]

Posted: Mon May 16, 2016 20:46
by xeranas
Splizard wrote:I would normally have a user friendly download, I will get my website up with the mod featured.
Don't fear github, it's no stranger for ppl who looking to download MT mod. Personal websites come and go more often than such giants as github (your code will likely live longer on github). I hope you do not abandon github once personal website will be setup (github allows renaming repos) ;)

Now back to mod. I did not figure out how lift doors work (doors opens but lift does not moved down), but I finally learned how move lift down :) (found info in first post). My suggestion would be add one chat command for player who step in lift just to remind that what keys he can control lift.

Re: [Mod] Lifters [0.2] [lifter]

Posted: Wed Jun 29, 2016 14:51
by Nathan.S
mod fails to run with this error:
attempt to index field 'lifter:door_b_1' (a nil value)
it points to line 93 in init.lua.

I see you override that node in line 97, but I never see it as being defined. Was going to record a mod review on this, but with it not working I can't right now. :(

Re: [Mod] Lifters [0.2] [lifter]

Posted: Wed Jun 29, 2016 15:29
by Splizard
Nathan.S wrote:mod fails to run with this error:
attempt to index field 'lifter:door_b_1' (a nil value)
it points to line 93 in init.lua.

I see you override that node in line 97, but I never see it as being defined. Was going to record a mod review on this, but with it not working I can't right now. :(
Thanks for letting me know! I fixed it, the default doors mod was quietly modified and it broke doors. It will work now :)
Needs the latest minetest_game.

Re: [Mod] Lifters [0.2] [lifter]

Posted: Wed Jun 29, 2016 22:14
by Nathan.S
nice, will do that review next week then. :)

Re: [Mod] Lifters [0.2] [lifter]

Posted: Wed Jun 29, 2016 22:40
by Tmanyo
I get this error.

Code: Select all

ERROR[Main]: ModError: Failed to load and run script from C:\games\Minetest\mods\lifter\init.lua: ERROR[Main]: C:\games\Minetest\bin\..\mods\doors\init.lua:32: attempt to index local 'clef' (a nil value) 
ERROR[Main]: stack traceback: 
ERROR[Main]: C:\games\Minetest\bin\..\mods\doors\init.lua:32: in function 'register_door' 
ERROR[Main]: C:\games\Minetest\bin\—\mods\lifter\init.lua:4: in main chunk

Re: [Mod] Lifters [0.2] [lifter]

Posted: Wed Jun 29, 2016 23:51
by Nathan.S
Tmanyo wrote:I get this error.

Code: Select all

ERROR[Main]: ModError: Failed to load and run script from C:\games\Minetest\mods\lifter\init.lua: ERROR[Main]: C:\games\Minetest\bin\..\mods\doors\init.lua:32: attempt to index local 'clef' (a nil value) 
ERROR[Main]: stack traceback: 
ERROR[Main]: C:\games\Minetest\bin\..\mods\doors\init.lua:32: in function 'register_door' 
ERROR[Main]: C:\games\Minetest\bin\—\mods\lifter\init.lua:4: in main chunk
Are you using a development build of Minetest?

Re: [Mod] Lifters [0.2] [lifter]

Posted: Thu Jun 30, 2016 01:43
by Tmanyo
Nathan.S wrote:
Tmanyo wrote:I get this error.

Code: Select all

ERROR[Main]: ModError: Failed to load and run script from C:\games\Minetest\mods\lifter\init.lua: ERROR[Main]: C:\games\Minetest\bin\..\mods\doors\init.lua:32: attempt to index local 'clef' (a nil value) 
ERROR[Main]: stack traceback: 
ERROR[Main]: C:\games\Minetest\bin\..\mods\doors\init.lua:32: in function 'register_door' 
ERROR[Main]: C:\games\Minetest\bin\—\mods\lifter\init.lua:4: in main chunk
Are you using a development build of Minetest?
No

Re: [Mod] Lifters [0.2] [lifter]

Posted: Thu Jun 30, 2016 02:01
by DI3HARD139
Getting the same error as @Tmanyo on 0.4.14-dev(debug build).

Code: Select all

2016-06-30 04:00:22: ERROR[Main]: ModError: Failed to load and run script from /home/di3hard139/.minetest/mods/lifter/init.lua:
2016-06-30 04:00:22: ERROR[Main]: /home/di3hard139/.minetest/mods/lifter/init.lua:93: attempt to index field 'lifter:door_a' (a nil value)
2016-06-30 04:00:22: ERROR[Main]: stack traceback:
2016-06-30 04:00:22: ERROR[Main]: 	/home/di3hard139/.minetest/mods/lifter/init.lua:93: in main chunk

Re: [Mod] Lifters [0.2] [lifter]

Posted: Thu Jun 30, 2016 02:17
by Splizard
You need the latest minetest_game (https://github.com/minetest/minetest_game)

Re: [Mod] Lifters [0.2] [lifter]

Posted: Thu Jun 30, 2016 12:57
by Nathan.S
diehard139 and tmanyo you can also use an older version of this mod if you don't want to update minetest_game.

Re: [Mod] Lifters [0.2] [lifter]

Posted: Mon Dec 19, 2016 09:25
by mahmutelmas06
I use latest development version of minetest under windows 10 64 bit.

Code: Select all

2016-12-18 23:07:59: ERROR[Main]: ServerError: Runtime error from mod '' in callback environment_Step(): ...\minetest\bin\..\games\minetest_game\mods\doors\init.lua:144: attempt to call method 'get_wielded_item' (a nil value)
2016-12-18 23:07:59: ERROR[Main]: stack traceback:
2016-12-18 23:07:59: ERROR[Main]: 	...\minetest\bin\..\games\minetest_game\mods\doors\init.lua:144: in function 'door_toggle'
2016-12-18 23:07:59: ERROR[Main]: 	...\minetest\bin\..\games\minetest_game\mods\doors\init.lua:371: in function 'func'
2016-12-18 23:07:59: ERROR[Main]: 	D:\Oyun\Kurulan\minetest\bin\..\builtin\game\misc.lua:34: in function <D:\Oyun\Kurulan\minetest\bin\..\builtin\game\misc.lua:11>
2016-12-18 23:07:59: ERROR[Main]: 	D:\Oyun\Kurulan\minetest\bin\..\builtin\game\register.lua:412: in function <D:\Oyun\Kurulan\minetest\bin\..\builtin\game\register.lua:392>
Could you also make lifters connected to each other. Than we can make a bigger elevator.
And maybe on_step function to link player to lifters. Than we dont have to right click on it.

Re: [Mod] Lifters [0.2] [lifter]

Posted: Wed Dec 21, 2016 18:03
by XtremeHacker
mahmutelmas06 wrote:I use latest development version of minetest under windows 10 64 bit.

Code: Select all

2016-12-18 23:07:59: ERROR[Main]: ServerError: Runtime error from mod '' in callback environment_Step(): ...\minetest\bin\..\games\minetest_game\mods\doors\init.lua:144: attempt to call method 'get_wielded_item' (a nil value)
2016-12-18 23:07:59: ERROR[Main]: stack traceback:
2016-12-18 23:07:59: ERROR[Main]: 	...\minetest\bin\..\games\minetest_game\mods\doors\init.lua:144: in function 'door_toggle'
2016-12-18 23:07:59: ERROR[Main]: 	...\minetest\bin\..\games\minetest_game\mods\doors\init.lua:371: in function 'func'
2016-12-18 23:07:59: ERROR[Main]: 	D:\Oyun\Kurulan\minetest\bin\..\builtin\game\misc.lua:34: in function <D:\Oyun\Kurulan\minetest\bin\..\builtin\game\misc.lua:11>
2016-12-18 23:07:59: ERROR[Main]: 	D:\Oyun\Kurulan\minetest\bin\..\builtin\game\register.lua:412: in function <D:\Oyun\Kurulan\minetest\bin\..\builtin\game\register.lua:392>
Could you also make lifters connected to each other. Than we can make a bigger elevator.
And maybe on_step function to link player to lifters. Than we dont have to right click on it.
I get the same error.

Re: [Mod] Lifters [0.2] [lifter]

Posted: Wed Dec 21, 2016 18:04
by octacian
I can confirm that the issue that mahmutelmas06 is having is present on Ubuntu 16.10 too. I just built Minetest a couple days ago too.

Re: [Mod] Lifters [0.2] [lifter]

Posted: Thu Dec 22, 2016 18:29
by Splizard
I'm afk atm, if anyone could make a pull request to fix this error, ill be happy to mergd it :)

Re: [Mod] Lifters [0.2] [lifter]

Posted: Tue Dec 27, 2016 10:36
by xeranas
Splizard wrote:I'm afk atm, if anyone could make a pull request to fix this error, ill be happy to mergd it :)
Added fix in pull request.

Re: [Mod] Lifters [0.2] [lifter]

Posted: Tue Dec 27, 2016 21:21
by Splizard
Its merged! Hopefully that resolves the issue