[Mod] Screwdriver Redo [0.1] [screwdriver]

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

[Mod] Screwdriver Redo [0.1] [screwdriver]

by TenPlus1 » Tue Sep 02, 2014 08:32

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 324 times
 

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

Re: [mod] Screwdriver Redo (0.1)

by addi » Tue Sep 02, 2014 08:43

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
Location: On earth
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun
 

Kilarin
Member
 
Posts: 712
Joined: Mon Mar 10, 2014 00:36

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

by Kilarin » Wed Sep 03, 2014 12:50

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
Location: A forest in the midwest
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen
 

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

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

by Krock » Wed Sep 03, 2014 19:03

Wait, and where are the other modes?
Mod Search Engine - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 

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

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

by Inocudom » Wed Sep 03, 2014 19:19

Krock wrote:Wait, and where are the other modes?

The other modes are not needed. An improvement, I do say.
Recovering from the abomination I am. Clocking time for Garry's Mod I am too.
 

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

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

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

by Xanthin » Thu Sep 04, 2014 09:35

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

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

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

by Inocudom » Thu Sep 04, 2014 23:12

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.
Recovering from the abomination I am. Clocking time for Garry's Mod I am too.
 

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

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

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

by Xanthin » Fri Sep 05, 2014 07:02

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: 2419
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

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

by TenPlus1 » Fri Sep 05, 2014 07:21

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

LazyJ
Member
 
Posts: 558
Joined: Wed Sep 12, 2012 12:29
Location: Podunk, Nowhere, USA

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

by LazyJ » Fri Sep 05, 2014 22:47

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
Location: Germany
In-game: lof
 

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

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

by indriApollo » Wed Oct 01, 2014 20:09

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

Kilarin
Member
 
Posts: 712
Joined: Mon Mar 10, 2014 00:36

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

by Kilarin » Wed Oct 01, 2014 23:05

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

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

by JPRuehmann » Thu Oct 02, 2014 13:34

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
Location: Belgium
GitHub: indriApollo
IRC: indriApollo
In-game: SudoAptGetPlay

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

by indriApollo » Thu Oct 02, 2014 16:27

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: 1154
Joined: Fri Aug 03, 2012 16:59
GitHub: CasimirKaPazi

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

by Casimir » Thu Oct 02, 2014 19:40

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
Location: Belgium
GitHub: indriApollo
IRC: indriApollo
In-game: SudoAptGetPlay
 

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

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

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

by JPRuehmann » Thu Oct 09, 2014 18:31

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
Location: Belgium
GitHub: indriApollo
IRC: indriApollo
In-game: SudoAptGetPlay

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

by indriApollo » Fri Oct 10, 2014 09:18

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: 544
Joined: Tue Jun 16, 2015 16:23

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

by amadin » Sun Jul 19, 2015 04:56

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

Next

Return to WIP Mods



Who is online

Users browsing this forum: Exabot [Bot], Piezo_ and 3 guests