Page 1 of 2

[Mod] Screwdriver Redo [0.1] [screwdriver]

Posted: Tue Sep 02, 2014 08:32
by TenPlus1
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...

Re: [mod] Screwdriver Redo (0.1)

Posted: Tue Sep 02, 2014 08:43
by addi

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!

Re: [mod] Screwdriver Redo (0.1)

Posted: Tue Sep 02, 2014 11:23
by Minetestforfun
Wow ! Very good work !
I think it must be updated/replaced in the default game !

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

Posted: Wed Sep 03, 2014 12:50
by Kilarin
I think this is FAR more intuitive to use, and I really hope that they pick it up for minetest_game!

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

Posted: Wed Sep 03, 2014 17:18
by Evergreen
+42

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

Posted: Wed Sep 03, 2014 19:03
by Krock
Wait, and where are the other modes?

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

Posted: Wed Sep 03, 2014 19:19
by Inocudom
Krock wrote:Wait, and where are the other modes?
The other modes are not needed. An improvement, I do say.

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

Posted: Wed Sep 03, 2014 21:35
by balthazariv
nice, thanks

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

Posted: Thu Sep 04, 2014 09:35
by Xanthin
[thumbs up] As simple as a screwdriver can be. Should find its way into mt game.

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

Posted: Thu Sep 04, 2014 23:12
by Inocudom
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.

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

Posted: Fri Sep 05, 2014 06:31
by CraigyDavi
What is the license of this mod?

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

Posted: Fri Sep 05, 2014 07:02
by Xanthin
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 :)

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

Posted: Fri Sep 05, 2014 07:21
by TenPlus1
I learn :P as for the license, same as original Screwdriver mod since it's an edited version of that...

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

Posted: Fri Sep 05, 2014 22:47
by LazyJ
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 ;)

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

Posted: Wed Sep 24, 2014 01:04
by lightonflux
The texture could get a cleanup (on the left side).

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

Posted: Wed Oct 01, 2014 20:09
by indriApollo
Is there a way to make the screwdriver persistent ? It's a creative tool that shouldn't suffer usury imo :D

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

Posted: Wed Oct 01, 2014 23:05
by Kilarin
edit the mod change this line:
item_wear = item_wear + 300 -- was 327
to
item_wear = item_wear + 0 -- now no wear

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

Posted: Thu Oct 02, 2014 13:34
by JPRuehmann
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.

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

Posted: Thu Oct 02, 2014 16:27
by indriApollo
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 :/

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

Posted: Thu Oct 02, 2014 19:40
by Casimir
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.

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

Posted: Fri Oct 03, 2014 20:53
by indriApollo
So i wrote this which doesn't work. Can someone help me ?

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

Posted: Wed Oct 08, 2014 14:16
by indriApollo
Ok nevermind I got it working now. You can find it on my github

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

Posted: Thu Oct 09, 2014 18:31
by JPRuehmann
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

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

Posted: Fri Oct 10, 2014 09:18
by indriApollo
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

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

Posted: Sun Jul 19, 2015 04:56
by amadin
deleted