Display Node info

Post Reply
User avatar
burli
Member
Posts: 1641
Joined: Fri Apr 10, 2015 13:18

Display Node info

by burli » Post

Hi, I know that the node info of the current highlighted node is shown in the debug info. But is it possible to show this info in a info box in the bottom right corner for example?

Zen
Member
Posts: 23
Joined: Wed Feb 25, 2015 16:22

Re: Display Node info

by Zen » Post

burli wrote: Hi, I know that the node info of the current highlighted node is shown in the debug info. But is it possible to show this info in a info box in the bottom right corner for example?

Short answer: No. Not directly.

Long answer: Yes, but it's complicated and you don't get everything.

P. S. I started work on the Medusa Mod to solve a similar problem, but events have dragged me away before I could finish the logic and get it working.

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: Display Node info

by Don » Post

You can get the node info and display it in the hud.
Get node http://dev.minetest.net/minetest.get_node

Then get the info you want from it

Then display it to the player in the hud http://dev.minetest.net/Player

Edit - You might want to check out this mod viewtopic.php?f=9&t=13358
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here

Zen
Member
Posts: 23
Joined: Wed Feb 25, 2015 16:22

Re: Display Node info

by Zen » Post

I found a rather nasty memory leak bug in my code.
It'll need a complete redesign to remove.
Don wrote: Edit - You might want to check out this mod viewtopic.php?f=9&t=13358
Now that's really cool.

sofar
Developer
Posts: 2129
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Display Node info

by sofar » Post

Have you looked at https://github.com/minetest-mods/inspector ? Perhaps this gives you what you need.

Zen
Member
Posts: 23
Joined: Wed Feb 25, 2015 16:22

Re: Display Node info

by Zen » Post

I've updated my mod, but it's still got a few bugs in it.
Torches don't show up as they should.
Haven't figured out the box bit yet.

Image
Attachments
identify.zip
(7.34 KiB) Downloaded 32 times

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: Display Node info

by Don » Post

Looks great. I will test this out.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here

User avatar
burli
Member
Posts: 1641
Joined: Fri Apr 10, 2015 13:18

Re: Display Node info

by burli » Post

I think, I will fork this, because I want a different look and less verbose

User avatar
MineYoshi
Member
Posts: 5373
Joined: Wed Jul 08, 2015 13:20
Contact:

Re: Display Node info

by MineYoshi » Post

Good work!

impressive!
Oi

User avatar
mahmutelmas06
Member
Posts: 367
Joined: Mon Mar 02, 2015 13:10
GitHub: mahmutelmas06
IRC: mahmutelmas06
In-game: masum

Re: Display Node info

by mahmutelmas06 » Post

You mean something like this ?

viewtopic.php?f=9&t=10095&p=172069#p172069
My Mods:

Beverage

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests