Mineral Detector

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

by csbeav » Post

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 » Post

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 » Post

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 » Post

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 » Post

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
Contact:

by LolManKuba » Post

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 » Post

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 » Post

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 » Post

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 » Post

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 » Post

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 » Post

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 » Post

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 » Post

That's a nice, clean mineral detector.

Post Reply

Who is online

Users browsing this forum: No registered users and 57 guests