[Mod] Screwdriver Redo [0.1] [screwdriver]

User avatar
TenPlus1
Member
 
Posts: 1874
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 340 times
 

User avatar
addi
Member
 
Posts: 605
Joined: Thu Sep 20, 2012 03:16

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

Re: [mod] Screwdriver Redo (0.1)

by Minetestforfun » Tue Sep 02, 2014 11:23

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

Kilarin
Member
 
Posts: 649
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: 2131
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

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

by Evergreen » Wed Sep 03, 2014 17:18

+42
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

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

by Krock » Wed Sep 03, 2014 19:03

Wait, and where are the other modes?
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
Inocudom
Member
 
Posts: 2889
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.
 

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

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

by balthazariv » Wed Sep 03, 2014 21:35

nice, thanks
 

Xanthin
Member
 
Posts: 121
Joined: Fri Mar 07, 2014 14:05
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: 2889
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.
 

User avatar
CraigyDavi
Member
 
Posts: 565
Joined: Sat Aug 10, 2013 13:08
GitHub: davisonio
IRC: davisonio or CraigyDavi
In-game: davisonio or CraigyDavi

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

by CraigyDavi » Fri Sep 05, 2014 06:31

What is the license of this mod?
 

Xanthin
Member
 
Posts: 121
Joined: Fri Mar 07, 2014 14:05
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: 1874
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: 479
Joined: Wed Sep 12, 2012 12:29

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 ;)
.: Minetest 0.4.14 ~ Linux Mint ~ A moka pot, a French press, a dirty coffee cup, and a spoiled-rotten kitty :.
Visit our Minetest server at: LinuxGaming2.com, port 30000
Screenshots, overview maps, and server info at: http://forum.minetest.net/viewtopic.php?f=10&t=5684
My blog: http://lazyjminetest.blogspot.com/
 

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

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

by lightonflux » Wed Sep 24, 2014 01:04

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

User avatar
indriApollo
Member
 
Posts: 144
Joined: Fri Sep 26, 2014 11:34
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: 649
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

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: 144
Joined: Fri Sep 26, 2014 11:34
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: 1101
Joined: Fri Aug 03, 2012 16:59

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: 144
Joined: Fri Sep 26, 2014 11:34
GitHub: indriApollo
IRC: indriApollo
In-game: SudoAptGetPlay

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

by indriApollo » Fri Oct 03, 2014 20:53

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

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

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

by indriApollo » Wed Oct 08, 2014 14:16

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

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.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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: 144
Joined: Fri Sep 26, 2014 11:34
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: 471
Joined: Tue Jun 16, 2015 16:23
GitHub: Amadin

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.
 

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

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

by TenPlus1 » Sun Jul 19, 2015 08:39

This mod is no longer active since the new screwdriver code is now included in the default game... As for crafting recipe's, 1 stick with 1 steel ingot above makes a screwdriver...
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 18 guests

cron