Block info on hud?
Block info on hud?
Hi!
Is there a mod, which displays the kind of block I am pointing to?
I don't want to leave the debug info activated all the time.
Is there a mod, which displays the kind of block I am pointing to?
I don't want to leave the debug info activated all the time.
Re: Block info on hud?
I only now the identify mod, but it is not very nice and it is a bit verbose.
Re: Block info on hud?
Check out viewtopic.php?f=11&t=15912&hilit=lookup+tool by Wuzzy. It has a Lookup Tool that goes into your inventory that is activated punching a block.
Give a man a fish, feed him for a day. Give a kid a fish, it's going to die.
- Wuzzy
- Member
- Posts: 4803
- Joined: Mon Sep 24, 2012 15:01
- GitHub: Wuzzy2
- IRC: Wuzzy
- In-game: Wuzzy
- Contact:
Re: Block info on hud?
Sadly, it doesn't display the block name by merely pointing the block. :-(
Re: Block info on hud?
I was looking for a permanent info display of the node I am pointing to.
Permanent, not craftable, and without any mouse clicking.
However this mod is also useful.
Permanent, not craftable, and without any mouse clicking.
However this mod is also useful.
- sorcerykid
- Member
- Posts: 1847
- Joined: Fri Aug 26, 2016 15:36
- GitHub: sorcerykid
- In-game: Nemo
- Location: Illinois, USA
Re: Block info on hud?
I don't think what you are describing is even possible because to my knowledge server-side mods can only obtain the position of the pointed node by means of a callback (such as eating, digging, placing, etc.).mase wrote:I was looking for a permanent info display of the node I am pointing to.
Permanent, not craftable, and without any mouse clicking.
Re: Block info on hud?
So the only solution seems to be keeping the debug info on.
Re: Block info on hud?
It is possible. Take a look at the identify mod I mentioned before. Maybe I need to upload it somewhere because I can't find it myself.sorcerykid wrote:I don't think what you are describing is even possible because to my knowledge server-side mods can only obtain the position of the pointed node by means of a callback (such as eating, digging, placing, etc.).
This mod does exactly what you want, but looks ugly. Look at the bottom right corner
If I have time maybe I will make something that looks more like this. I want that myself
- Attachments
-
- Bildschirmfoto vom 2017-03-01 20-35-29.png (42.13 KiB) Viewed 849 times
-
- screenshot_20170301_203406.jpg (269.95 KiB) Viewed 849 times
- sorcerykid
- Member
- Posts: 1847
- Joined: Fri Aug 26, 2016 15:36
- GitHub: sorcerykid
- In-game: Nemo
- Location: Illinois, USA
Re: Block info on hud?
What function returns the pointed node? I searched the API docs, and can't find it.
Re: Block info on hud?
Finally this code uses "get_node()", but the calculation is complex to get the coordinate of the node. The mod has over 800 lines. Maybe it is now a bit easier to do thatsorcerykid wrote:What function returns the pointed node? I searched the API docs, and can't find it.
- sorcerykid
- Member
- Posts: 1847
- Joined: Fri Aug 26, 2016 15:36
- GitHub: sorcerykid
- In-game: Nemo
- Location: Illinois, USA
Re: Block info on hud?
That's kind of what I figured. It seems the only way to determine the pointed node is with a lot of calculations possibly involving minetest.line_of_sight( ). Perhaps that is what the mod in question is doing.
From my research pointed node information is only passed to the server during user interaction (punching, digging, etc.) by the client via the Server::handleCommand_Interact(NetworkPacket* pkt) method in network/serverpackethandler.cpp. So it is built into the client-server protocol. There is no way to natively obtain the pointed node coordinates exclusively from the server-side without a lot of hacking.
From my research pointed node information is only passed to the server during user interaction (punching, digging, etc.) by the client via the Server::handleCommand_Interact(NetworkPacket* pkt) method in network/serverpackethandler.cpp. So it is built into the client-server protocol. There is no way to natively obtain the pointed node coordinates exclusively from the server-side without a lot of hacking.
Re: Block info on hud?
But with the debug info activated, you get this info without a
special interaction. Maybe the api does not provide this info.
special interaction. Maybe the api does not provide this info.
Re: Block info on hud?
Thx! I will look into it.
Who is online
Users browsing this forum: dxt_73, rubenwardy and 27 guests