Page 1 of 1

[Mod] Information on the HUD [hud_improved] [1.1]

PostPosted: Thu Dec 29, 2016 02:44
by bigfoot547
Hello! This mod adds more information on the HUD.

This mod works on 0.4.14-dev from late November.

BUGS:
You may post bug reports on github or here.
You may post feature requests on github or here.

+ Features

+ Planned Features


+ Screenshots


License
  • Code: LGPL v2.1+

Mod Dependencies
  • None

Optional Mod Dependencies

Downloads
Download
OR
Browse the code on github.

+ Changelog


Image Image Image

Re: [Mod] Information on the HUD [hud_improved] [1.1]

PostPosted: Thu Dec 29, 2016 21:00
by bigfoot547
*bump*

Re: [Mod] Information on the HUD [hud_improved] [1.1]

PostPosted: Thu Dec 29, 2016 22:09
by echosa
Your download and browse repository links don't work. Did you make the repo private?

Also, you mention that you want to add a way to customize where the text on the screen is. I recommend also adding a way to customize what information does and does not get displayed.

Finally, when I first saw this, I thought it might be a Minetest version of the WAILA mod for Minecraft, which tells you what you're looking at and additional information about that block/thing. Do you think you could add something like that to this mod? It seems fitting. Currently, I don't see any use for this mod, personally. A WAILA replacement, however, would be super awesome.

Re: [Mod] Information on the HUD [hud_improved] [1.1]

PostPosted: Fri Dec 30, 2016 01:27
by bigfoot547
echosa wrote:Your download and browse repository links don't work. Did you make the repo private?

Also, you mention that you want to add a way to customize where the text on the screen is. I recommend also adding a way to customize what information does and does not get displayed.

Finally, when I first saw this, I thought it might be a Minetest version of the WAILA mod for Minecraft, which tells you what you're looking at and additional information about that block/thing. Do you think you could add something like that to this mod? It seems fitting. Currently, I don't see any use for this mod, personally. A WAILA replacement, however, would be super awesome.


Fixed. I'm sorry, I typo-ed both the links :P.
Sadly, minetest doesn't support anything like player:get_pointed_thing() so there is no way to find out what the player is looking at without geometry and such. If you have any ideas of how, feel free to put them here! :-)
I was looking at making a configuration menu for position.

Re: [Mod] Information on the HUD [hud_improved] [1.1]

PostPosted: Fri Dec 30, 2016 02:04
by echosa
minetest doesn't support anything like player:get_pointed_thing()


That's surprising. If you look at the debug info with F5, it shows it:

Image

Re: [Mod] Information on the HUD [hud_improved] [1.1]

PostPosted: Fri Dec 30, 2016 11:08
by mahmutelmas06
Of course it is possible and there is a mod doing that already.

viewtopic.php?t=10095

Re: [Mod] Information on the HUD [hud_improved] [1.1]

PostPosted: Fri Dec 30, 2016 15:10
by bigfoot547
echosa wrote:
minetest doesn't support anything like player:get_pointed_thing()


That's surprising. If you look at the debug info with F5, it shows it:

Image


That is part of the core. Sadly, AFAIK there is not an api function for that.

Re: [Mod] Information on the HUD [hud_improved] [1.1]

PostPosted: Fri Dec 30, 2016 15:25
by echosa
That's unfortunate. Seems like there's an number of things not exposed to through the API or a config yet (like the ability to start with the minimap on everytime you load a world).

Re: [Mod] Information on the HUD [hud_improved] [1.1]

PostPosted: Fri Dec 30, 2016 22:27
by bigfoot547
mahmutelmas06 wrote:Of course it is possible and there is a mod doing that already.

viewtopic=10095


That mod does not use the actual pointed node, it uses a hack to get the correct node most of the time.
It does not work when pointing through the negative space of a nodebox.
In C++, there is a getPointedThing() function, but this is not in lua.
You may be interested in this.