Display Node info

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

Display Node info

by burli » Wed Mar 16, 2016 09:44

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: 14
Joined: Wed Feb 25, 2015 16:22

Re: Display Node info

by Zen » Sat Mar 19, 2016 14:44

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: 1641
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: Display Node info

by Don » Sun Mar 20, 2016 16:04

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: 14
Joined: Wed Feb 25, 2015 16:22

Re: Display Node info

by Zen » Mon Mar 21, 2016 12:24

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
Member
 
Posts: 781
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Display Node info

by sofar » Mon Mar 21, 2016 16:38

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

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

Re: Display Node info

by Zen » Sat Mar 26, 2016 02:24

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 103 times
 

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

Re: Display Node info

by Don » Sat Mar 26, 2016 09:40

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: 1313
Joined: Fri Apr 10, 2015 13:18

Re: Display Node info

by burli » Sat Mar 26, 2016 11:14

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

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: Display Node info

by MineYoshi » Sat Mar 26, 2016 18:35

Good work!

impressive!
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

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

Re: Display Node info

by mahmutelmas06 » Sun Mar 27, 2016 19:40

You mean something like this ?

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

Beverage
 


Return to Modding Discussion

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron