[Mod] Screwdriver Redo [0.1] [screwdriver]

User avatar
TenPlus1
Member
Posts: 2717
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

[Mod] Screwdriver Redo [0.1] [screwdriver]

by TenPlus1 » Post

The screwdriver mod has always been a fiddly one for rotating nodes and remembering which mode does what, so I've simplified it by removing the modes completely and letting the player left click a node to rotate the face and right-click the node to rotate through it's axis... simplez...
Attachments
screwdriver_redo(0.1).zip
(2.01 KiB) Downloaded 348 times

User avatar
addi
Member
Posts: 664
Joined: Thu Sep 20, 2012 03:16
GitHub: adrido
Location: Black-Forest, Germany

Re: [mod] Screwdriver Redo (0.1)

by addi » Post

yeah!!!!!! finaly an easy working screwdriver!

hope this will replace that crap that comes with minetest_game!

its just realy simple, and easy!
and you dont need to hold sneak key to change mod! its just fantastic!

i realy realy realy like it!

i dont want to live without that anymore :-)))

lot of thanks for that idea! its just great!

User avatar
Minetestforfun
Member
Posts: 936
Joined: Tue Aug 05, 2014 14:09
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun
Location: On earth
Contact:

Re: [mod] Screwdriver Redo (0.1)

by Minetestforfun » Post

Wow ! Very good work !
I think it must be updated/replaced in the default game !

User avatar
Kilarin
Member
Posts: 778
Joined: Mon Mar 10, 2014 00:36

Re: [Mod] Screwdriver Redo [0.1] [screwdriver]

by Kilarin » Post

I think this is FAR more intuitive to use, and I really hope that they pick it up for minetest_game!

User avatar
Evergreen
Member
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen
Location: A forest in the midwest
Contact:

Re: [Mod] Screwdriver Redo [0.1] [screwdriver]

by Evergreen » Post

+42

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

Re: [Mod] Screwdriver Redo [0.1] [screwdriver]

by Krock » Post

Wait, and where are the other modes?
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
Inocudom
Member
Posts: 3084
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

Re: [Mod] Screwdriver Redo [0.1] [screwdriver]

by Inocudom » Post

Krock wrote:Wait, and where are the other modes?
The other modes are not needed. An improvement, I do say.
You can now find my videos at BitChute: https://www.bitchute.com/channel/some_cheeky_jinuskian/

User avatar
balthazariv
Member
Posts: 214
Joined: Mon Apr 07, 2014 15:48
Contact:

Re: [Mod] Screwdriver Redo [0.1] [screwdriver]

by balthazariv » Post

nice, thanks

Xanthin
Member
Posts: 126
Joined: Fri Mar 07, 2014 14:05
GitHub: Xanthin
IRC: Xanthin
In-game: Xanthin
Location: Germany

Re: [Mod] Screwdriver Redo [0.1] [screwdriver]

by Xanthin » Post

[thumbs up] As simple as a screwdriver can be. Should find its way into mt game.

User avatar
Inocudom
Member
Posts: 3084
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

Re: [Mod] Screwdriver Redo [0.1] [screwdriver]

by Inocudom » Post

In order for this mod to have any hope of being in the base game at all, it must be on GitHub first. TenPlus1 would never do that himself, so somebody would have to take care of that for him.
You can now find my videos at BitChute: https://www.bitchute.com/channel/some_cheeky_jinuskian/

User avatar
CraigyDavi
Member
Posts: 582
Joined: Sat Aug 10, 2013 13:08
GitHub: davisonio
IRC: davisonio
In-game: CraigyDavi
Location: Hampshire, UK
Contact:

Re: [Mod] Screwdriver Redo [0.1] [screwdriver]

by CraigyDavi » Post

What is the license of this mod?

Xanthin
Member
Posts: 126
Joined: Fri Mar 07, 2014 14:05
GitHub: Xanthin
IRC: Xanthin
In-game: Xanthin
Location: Germany

Re: [Mod] Screwdriver Redo [0.1] [screwdriver]

by Xanthin » Post

Inocudom wrote:In order for this mod to have any hope of being in the base game at all, it must be on GitHub first. TenPlus1 would never do that himself, so somebody would have to take care of that for him.
There is some hope: https://github.com/minetest/minetest_game/issues/315 :)

User avatar
TenPlus1
Member
Posts: 2717
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] Screwdriver Redo [0.1] [screwdriver]

by TenPlus1 » Post

I learn :P as for the license, same as original Screwdriver mod since it's an edited version of that...

User avatar
LazyJ
Member
Posts: 603
Joined: Wed Sep 12, 2012 12:29
Location: Podunk, Nowhere, USA

Re: [Mod] Screwdriver Redo [0.1] [screwdriver]

by LazyJ » Post

The default screwdriver is a very useful tool and this makes it even better.

I've updated our Minetest server, "Wazuland2", with the screwdriver enhancement.

Job well done, TenPlus1 ;)

User avatar
lightonflux
Member
Posts: 384
Joined: Mon Nov 11, 2013 07:22
In-game: lof
Location: Germany

Re: [Mod] Screwdriver Redo [0.1] [screwdriver]

by lightonflux » Post

The texture could get a cleanup (on the left side).

User avatar
indriApollo
Member
Posts: 146
Joined: Fri Sep 26, 2014 11:34
GitHub: indriApollo
IRC: indriApollo
In-game: SudoAptGetPlay
Location: Belgium
Contact:

Re: [Mod] Screwdriver Redo [0.1] [screwdriver]

by indriApollo » Post

Is there a way to make the screwdriver persistent ? It's a creative tool that shouldn't suffer usury imo :D

User avatar
Kilarin
Member
Posts: 778
Joined: Mon Mar 10, 2014 00:36

Re: [Mod] Screwdriver Redo [0.1] [screwdriver]

by Kilarin » Post

edit the mod change this line:
item_wear = item_wear + 300 -- was 327
to
item_wear = item_wear + 0 -- now no wear

User avatar
JPRuehmann
Member
Posts: 334
Joined: Fri Mar 21, 2014 21:40
Location: Germany
Contact:

Re: [Mod] Screwdriver Redo [0.1] [screwdriver]

by JPRuehmann » Post

I think changes in the Code by Users is a very bad Idea because of updates.
If you are using more and more mods with more and more changes that get lost after every update it would be impossible to rechange everytime after a update of the mods.
To put that settings into a discrete config file that would not be altered by updates would be the better way I think.

User avatar
indriApollo
Member
Posts: 146
Joined: Fri Sep 26, 2014 11:34
GitHub: indriApollo
IRC: indriApollo
In-game: SudoAptGetPlay
Location: Belgium
Contact:

Re: [Mod] Screwdriver Redo [0.1] [screwdriver]

by indriApollo » Post

Yeah I'm looking for a text conf. I don't want to modify or fork this plugin for such a minimal modification.
And as JPRuehmann stated, my modification would be lost after an update :/

User avatar
Casimir
Member
Posts: 1163
Joined: Fri Aug 03, 2012 16:59
GitHub: CasimirKaPazi

Re: [Mod] Screwdriver Redo [0.1] [screwdriver]

by Casimir » Post

That would be a good start to learn minetest mods. Using minetest.override it is a very small mod. Don't forget to add screwdriver to depends.txt.

User avatar
indriApollo
Member
Posts: 146
Joined: Fri Sep 26, 2014 11:34
GitHub: indriApollo
IRC: indriApollo
In-game: SudoAptGetPlay
Location: Belgium
Contact:

Re: [Mod] Screwdriver Redo [0.1] [screwdriver]

by indriApollo » Post

So i wrote this which doesn't work. Can someone help me ?

User avatar
indriApollo
Member
Posts: 146
Joined: Fri Sep 26, 2014 11:34
GitHub: indriApollo
IRC: indriApollo
In-game: SudoAptGetPlay
Location: Belgium
Contact:

Re: [Mod] Screwdriver Redo [0.1] [screwdriver]

by indriApollo » Post

Ok nevermind I got it working now. You can find it on my github

User avatar
JPRuehmann
Member
Posts: 334
Joined: Fri Mar 21, 2014 21:40
Location: Germany
Contact:

Re: [Mod] Screwdriver Redo [0.1] [screwdriver]

by JPRuehmann » Post

there are two errors one minor.
- in the Readme file you name the Config File "screwdriver.conf" but your mod is using "screwdriver.cfg".
But the second one renders the Mod unusable because minetest will crash everytime you use the screwdriver.
The Problem is that you forgot to add the Path to your Config File.
Here is the Part of your lua.init that I changed to get it to work.

Code: Select all

local function read_wear_user()
	--read wear from file
	local wear_set_by_user
	local modpath = minetest.get_modpath("screwdriver")
	local conf_file = io.open(modpath.."/screwdriver.cfg", "r")
	    if conf_file == nil then
	          --file does not exist or can't be read
	      conf_file = io.open(modpath.."/screwdriver.cfg", "a")
	      conf_file:write("wear_set_by_user = 300")  --write a default value
	      wear_set_by_user = 300

	    else
	    	conf_file:seek(set,19)
	    	wear_set_by_user = tonumber(conf_file:read("*all"))
		      if wear_set_by_user == nil or wear_set_by_user < 0 or wear_set_by_user > 65535 then
		          conf_file = io.open(modpath.."/screwdriver.cfg", "w")
		          conf_file:write("wear_set_by_user = 300")   --write a default value
		          wear_set_by_user = 300
		      end
	      
	    end
	io.close(conf_file)

	return wear_set_by_user
end
Have Fun,
JPR

User avatar
indriApollo
Member
Posts: 146
Joined: Fri Sep 26, 2014 11:34
GitHub: indriApollo
IRC: indriApollo
In-game: SudoAptGetPlay
Location: Belgium
Contact:

Re: [Mod] Screwdriver Redo [0.1] [screwdriver]

by indriApollo » Post

Omg thank you so much! My init.lua got messed up and I had pushed an old version to my github repo. It should now be fixed.
Thank you <3

amadin
Member
Posts: 548
Joined: Tue Jun 16, 2015 16:23

Re: [Mod] Screwdriver Redo [0.1] [screwdriver]

by amadin » Post

deleted
Last edited by amadin on Mon Jul 20, 2015 04:59, edited 2 times in total.

Post Reply

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 2 guests