[Mod] Lifters [0.2] [lifter]

User avatar
Splizard
Member
Posts: 227
Joined: Wed Jan 25, 2012 07:20
GitHub: Splizard
IRC: Splizard
In-game: Splizard
Location: New Zealand
Contact:

[Mod] Lifters [0.2] [lifter]

by Splizard » Post

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"
Last edited by Splizard on Wed Jun 29, 2016 15:30, edited 2 times in total.
Games: Builda City, The Hungry Games Mods: Lifters, Snow Biomes and Gates. Also checkout my texture pack Gridtoon!

User avatar
cd2
Member
Posts: 562
Joined: Mon Jun 01, 2015 06:30
GitHub: cdqwertz
In-game: cd cd2
Location: Linux
Contact:

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

by cd2 » Post

looks nice :)

User avatar
Krock
Developer
Posts: 4648
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

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

by Krock » Post

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.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
Splizard
Member
Posts: 227
Joined: Wed Jan 25, 2012 07:20
GitHub: Splizard
IRC: Splizard
In-game: Splizard
Location: New Zealand
Contact:

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

by Splizard » Post

Its possible to call the lift, its just thinking of a simple way of doing it!
Games: Builda City, The Hungry Games Mods: Lifters, Snow Biomes and Gates. Also checkout my texture pack Gridtoon!

AceWill
Member
Posts: 30
Joined: Thu Oct 29, 2015 17:11

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

by AceWill » Post

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.

User avatar
Splizard
Member
Posts: 227
Joined: Wed Jan 25, 2012 07:20
GitHub: Splizard
IRC: Splizard
In-game: Splizard
Location: New Zealand
Contact:

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

by Splizard » Post

@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 :)
Games: Builda City, The Hungry Games Mods: Lifters, Snow Biomes and Gates. Also checkout my texture pack Gridtoon!

User avatar
xeranas
Member
Posts: 162
Joined: Fri Feb 05, 2016 11:06

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

by xeranas » Post

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.

User avatar
Splizard
Member
Posts: 227
Joined: Wed Jan 25, 2012 07:20
GitHub: Splizard
IRC: Splizard
In-game: Splizard
Location: New Zealand
Contact:

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

by Splizard » Post

@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.
Games: Builda City, The Hungry Games Mods: Lifters, Snow Biomes and Gates. Also checkout my texture pack Gridtoon!

User avatar
firefox
Member
Posts: 1709
Joined: Wed Jan 14, 2015 07:34
In-game: Red_Fox
Location: Xanadu

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

by firefox » Post

+1

this reminds me on the lifts in the Elemental Lighthouses in Golden Sun =(^.^)=
✨🏳️‍🌈♣️✨

User avatar
xeranas
Member
Posts: 162
Joined: Fri Feb 05, 2016 11:06

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

by xeranas » Post

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.

User avatar
Nathan.S
Member
Posts: 1147
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

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

by Nathan.S » Post

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. :(
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course

User avatar
Splizard
Member
Posts: 227
Joined: Wed Jan 25, 2012 07:20
GitHub: Splizard
IRC: Splizard
In-game: Splizard
Location: New Zealand
Contact:

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

by Splizard » Post

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.
Games: Builda City, The Hungry Games Mods: Lifters, Snow Biomes and Gates. Also checkout my texture pack Gridtoon!

User avatar
Nathan.S
Member
Posts: 1147
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

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

by Nathan.S » Post

nice, will do that review next week then. :)
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course

User avatar
Tmanyo
Member
Posts: 196
Joined: Mon Sep 29, 2014 01:20
GitHub: Tmanyo
IRC: Tmanyo
In-game: tmanyo
Location: United States
Contact:

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

by Tmanyo » Post

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
Tmanyo
http://www.rrhmsservers.ml
Servers I Host:
Tmanyo-Realism
Mods of mine that I don't totally hate:
Bank Accounts
T-Rating
Tmusic Player

User avatar
Nathan.S
Member
Posts: 1147
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

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

by Nathan.S » Post

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?
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course

User avatar
Tmanyo
Member
Posts: 196
Joined: Mon Sep 29, 2014 01:20
GitHub: Tmanyo
IRC: Tmanyo
In-game: tmanyo
Location: United States
Contact:

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

by Tmanyo » Post

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
Tmanyo
http://www.rrhmsservers.ml
Servers I Host:
Tmanyo-Realism
Mods of mine that I don't totally hate:
Bank Accounts
T-Rating
Tmusic Player

User avatar
DI3HARD139
Member
Posts: 154
Joined: Sat Oct 18, 2014 21:04
GitHub: DI3HARD139
IRC: DI3HARD139
In-game: DI3HARD139 DI3HARD139_

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

by DI3HARD139 » Post

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

User avatar
Splizard
Member
Posts: 227
Joined: Wed Jan 25, 2012 07:20
GitHub: Splizard
IRC: Splizard
In-game: Splizard
Location: New Zealand
Contact:

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

by Splizard » Post

You need the latest minetest_game (https://github.com/minetest/minetest_game)
Games: Builda City, The Hungry Games Mods: Lifters, Snow Biomes and Gates. Also checkout my texture pack Gridtoon!

User avatar
Nathan.S
Member
Posts: 1147
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

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

by Nathan.S » Post

diehard139 and tmanyo you can also use an older version of this mod if you don't want to update minetest_game.
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course

User avatar
mahmutelmas06
Member
Posts: 367
Joined: Mon Mar 02, 2015 13:10
GitHub: mahmutelmas06
IRC: mahmutelmas06
In-game: masum

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

by mahmutelmas06 » Post

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.
My Mods:

Beverage

User avatar
XtremeHacker
Member
Posts: 174
Joined: Mon Aug 01, 2016 04:15
GitHub: MisterXtreme
IRC: MrXtreme
In-game: MrXtreme
Location: X -0, Y -0, Z -0
Contact:

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

by XtremeHacker » Post

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.
If you say that

Code: Select all

function.name_of_thing_to_do
is impossible, then you didn't try hard enough. :P

Mods I work on: MicroExpansion

User avatar
octacian
Member
Posts: 597
Joined: Mon Dec 21, 2015 22:18
GitHub: octacian
IRC: octacian
In-game: octacian
Location: Canada

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

by octacian » Post

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.
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
I'm currently inactive in the Minetest community! So if I don't respond, that's why.

User avatar
Splizard
Member
Posts: 227
Joined: Wed Jan 25, 2012 07:20
GitHub: Splizard
IRC: Splizard
In-game: Splizard
Location: New Zealand
Contact:

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

by Splizard » Post

I'm afk atm, if anyone could make a pull request to fix this error, ill be happy to mergd it :)
Games: Builda City, The Hungry Games Mods: Lifters, Snow Biomes and Gates. Also checkout my texture pack Gridtoon!

User avatar
xeranas
Member
Posts: 162
Joined: Fri Feb 05, 2016 11:06

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

by xeranas » Post

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.

User avatar
Splizard
Member
Posts: 227
Joined: Wed Jan 25, 2012 07:20
GitHub: Splizard
IRC: Splizard
In-game: Splizard
Location: New Zealand
Contact:

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

by Splizard » Post

Its merged! Hopefully that resolves the issue
Games: Builda City, The Hungry Games Mods: Lifters, Snow Biomes and Gates. Also checkout my texture pack Gridtoon!

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests