Mineral Detector

User avatar
csbeav
New member
 
Posts: 9
Joined: Sun Feb 05, 2012 02:36

by csbeav » Sun Feb 12, 2012 04:10

I get this error when trying to pick detector back up to relocate:

11:48:53: ERROR[ServerThread]: ERROR: An unhandled exception occurred: LuaError: error: /root/.minetest/usermods/mineral_detector/init.lua:476: attempt to call method 'get_wield_digging_properties' (a nil value)

11:48:53: ERROR[ServerThread]: stack traceback:

Touching it with an empty hand or tool causes the game to crash and close.
 

maddogg
Member
 
Posts: 27
Joined: Wed Dec 21, 2011 23:55

by maddogg » Tue Feb 14, 2012 14:05

I get this error when trying to pick detector back up to relocate:

11:48:53: ERROR[ServerThread]: ERROR: An unhandled exception occurred: LuaError: error: /root/.minetest/usermods/mineral_detector/init.lua:476: attempt to call method 'get_wield_digging_properties' (a nil value)

11:48:53: ERROR[ServerThread]: stack traceback:

Touching it with an empty hand or tool causes the game to crash and close.


i get the same thing aswel
 

randomproof
Member
 
Posts: 214
Joined: Thu Nov 17, 2011 06:31
Location: California, USA

by randomproof » Tue Feb 14, 2012 15:38

I pushed the update just now. The change is below if you don't want to pull it from git.

Code: Select all
...
minetest.register_on_punchnode(function(pos, node, puncher)
    if string.match(node.name, "mineral_detector:") ~= nil then
        if puncher:get_wielded_item():get_tool_digging_properties().dt_crumbliness ~= -1 then
            return
        end
...
 

User avatar
csbeav
New member
 
Posts: 9
Joined: Sun Feb 05, 2012 02:36

by csbeav » Wed Feb 22, 2012 03:35

Thanks Randomproof,

I copied the text from your fix above and opened init.lua inside the ~/.minetest/usermods/mineral_detector directory, and pasted it at line 476 and forward. Now it works great. Great mod and hopefully we won't have to remove mountains to find the gold anymore. ;)
 

marc
 

by marc » Sat Aug 04, 2012 20:12

what is that brown lump and i have a weird tar.gz file!
 

User avatar
LolManKuba
Member
 
Posts: 939
Joined: Fri Feb 10, 2012 22:36
Location: Ontario, Canada

by LolManKuba » Sat Aug 04, 2012 20:32

marc.
1. Tar.gz is a like a Linux zip file but you CAN open it using a file manager, like 7-zip
2. This mod might not work anymore
Three: The brown lump is iron.
(I said Three because my three button isn't working for some reason
Last edited by LolManKuba on Sat Aug 04, 2012 20:34, edited 1 time in total.
 

Josh
Member
 
Posts: 1146
Joined: Fri Jun 29, 2012 23:11
Location: Victoria, Australia

by Josh » Wed Nov 14, 2012 03:43

Does this work wth 0.4.3? If not it should be upgraded, because this could be really handy :)
 

User avatar
Topywo
Member
 
Posts: 1721
Joined: Fri May 18, 2012 20:27

by Topywo » Wed Nov 14, 2012 12:02

Josh wrote:Does this work wth 0.4.3? If not it should be upgraded, because this could be really handy :)


No, it didn't work on 0.4.3.

I made some minor changes (Which will follow the main license, Public Domain) and now it works again, at least on celeron55-minetest-1db0334:

http://dl.dropbox.com/u/65428713/mineral_detector.zip

Have fun with it :-)
 

Josh
Member
 
Posts: 1146
Joined: Fri Jun 29, 2012 23:11
Location: Victoria, Australia

by Josh » Thu Nov 15, 2012 01:59

Topywo wrote:
Josh wrote:Does this work wth 0.4.3? If not it should be upgraded, because this could be really handy :)


No, it didn't work on 0.4.3.

I made some minor changes (Which will follow the main license, Public Domain) and now it works again, at least on celeron55-minetest-1db0334:

http://dl.dropbox.com/u/65428713/mineral_detector.zip

Have fun with it :-)


Thanks :):)
After downloading it i changed the Iron Dectectors recipe to wood & glass, instead of using wood and iron lumps :D
Last edited by Josh on Thu Nov 15, 2012 02:10, edited 1 time in total.
 

User avatar
Dan Duncombe
Member
 
Posts: 904
Joined: Thu May 09, 2013 21:11
Location: In the unknown depths of Earth

by Dan Duncombe » Tue May 14, 2013 23:22

could you add a handheld one that, when right clicked, tells you ehat is in front of you for a 5 block distance or something?
randomproof wrote:I wanted to make this a non-trivial device to make so it takes a lot of iron to make (think of it as the casing and the electronics/magnetics inside) and a sample of each of the ores to be found.

Of course, I could add a version that doesn't use steel blocks and just make it have a smaller range?
Some Mods: Castles Prefab Camouflage
My Games: Nostalgia Realtest Revamped
Servers: See above games.
 

NyankoSensei
Member
 
Posts: 14
Joined: Fri Feb 28, 2014 11:29

by NyankoSensei » Fri Feb 28, 2014 11:31

i have updated this mod for minetest 4.9, i'm not a coder and probably there's something wrong but it work fine, if i can post it i upload it somewhere
Last edited by NyankoSensei on Fri Feb 28, 2014 11:31, edited 1 time in total.
 

User avatar
Topywo
Member
 
Posts: 1721
Joined: Fri May 18, 2012 20:27

by Topywo » Fri Feb 28, 2014 14:15

NyankoSensei wrote:i have updated this mod for minetest 4.9, i'm not a coder and probably there's something wrong but it work fine, if i can post it i upload it somewhere


Randomproof hasn't been on for almost 2 years. Afaik you can post it as long as you don't violence the license. In this case 'public domain', so go ahead, although it would be nice to give randomproof credit.
 

NyankoSensei
Member
 
Posts: 14
Joined: Fri Feb 28, 2014 11:29

by NyankoSensei » Fri Feb 28, 2014 16:18

My modification of this mod, you can make a iron detector with

Image

and after upgrade it for find iron, mese and diamond

Image

Every click over the object increase the range of search from 2 to max 12

Tested with minetest 0.4.9

License
Public Domain

Thanks to Randomproof for the original code

Download HERE
Last edited by NyankoSensei on Fri Feb 28, 2014 16:25, edited 1 time in total.
 

User avatar
Topywo
Member
 
Posts: 1721
Joined: Fri May 18, 2012 20:27

by Topywo » Sat Mar 01, 2014 10:08

That's a nice, clean mineral detector.
 

Previous

Return to WIP Mods



Who is online

Users browsing this forum: No registered users and 7 guests