Page 1 of 1

Display Node info

PostPosted: Wed Mar 16, 2016 09:44
by burli
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?

Re: Display Node info

PostPosted: Sat Mar 19, 2016 14:44
by Zen
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.

Re: Display Node info

PostPosted: Sun Mar 20, 2016 16:04
by Don
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

Re: Display Node info

PostPosted: Mon Mar 21, 2016 12:24
by Zen
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.

Re: Display Node info

PostPosted: Mon Mar 21, 2016 16:38
by sofar
Have you looked at https://github.com/minetest-mods/inspector ? Perhaps this gives you what you need.

Re: Display Node info

PostPosted: Sat Mar 26, 2016 02:24
by Zen
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

Re: Display Node info

PostPosted: Sat Mar 26, 2016 09:40
by Don
Looks great. I will test this out.

Re: Display Node info

PostPosted: Sat Mar 26, 2016 11:14
by burli
I think, I will fork this, because I want a different look and less verbose

Re: Display Node info

PostPosted: Sat Mar 26, 2016 18:35
by MineYoshi
Good work!

impressive!

Re: Display Node info

PostPosted: Sun Mar 27, 2016 19:40
by mahmutelmas06
You mean something like this ?

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