Page 13 of 13

Re: [Modpack] "Better HUD" and "hunger" [2.x.1] [hud][hunger

Posted: Sat Mar 26, 2016 17:53
by Wuzzy
Hi JingoJagget!

The answer is:

Yes.
Here is one way to do this for health:
Create a simple texture pack and put PNG images called “hud_heart_fg.png” and “hud_heart_bg.png” into that. The first one is for the foreground (red heart) and the second one for the background (black heart, it symbolizes the “absence” of health). Both images must be of size 16×16. The half heart is automatically created from the full heart image, it is just cut in half in the middle. If you want a half heart which was is not based on the full heart image, then you are out of luck: This is not possible with the Better HUD mod.

Creating a texture pack is very simple: Just create a folder in the “textures” folder inside your Minetest user directory. I guess you can give that folder any name you want. Now put the heart images into that folder, start Minetest and select your very own texture pack. If you now start playing, you should now have your very own heart images (but only for the Better HUD mod). Note that this change applies only locally, this means only your HUD is changed, the HUD of other players is not affected, even if you are hosting a server.

Repeat the same for hunger and armor, the images names are “hud_hunger_fg.png”, “hud_hunger_bg.png”, “hud_armor_fg.png” and “hud_armor_bg.png”.

You can view the original textures of the Better HUD mod here:
https://github.com/BlockMen/hud/tree/master/textures

Re: [Modpack] "Better HUD" and "hunger" [2.x.1] [hud][hunger

Posted: Tue Mar 29, 2016 15:54
by azekill_DIABLO
it's a perfect mod!

Re: [Modpack] "Better HUD" and "hunger" [2.x.1] [hud][hunger

Posted: Tue May 31, 2016 23:06
by Fixer
Since Blockmen is not developing this mod anymore maybe it should be submitted to minetest-mods to continue development?

Re: [Modpack] "Better HUD" and "hunger" [2.x.1] [hud][hunger

Posted: Wed Jun 01, 2016 04:34
by benrob0329
It'd make sense, but everamzah's fork with sprint should be considered as well.

Re: [Modpack] "Better HUD" and "hunger" [2.x.1] [hud][hunger

Posted: Thu Jul 07, 2016 14:41
by BrunoMine
This is the best mod which I know to hunger. I use it on my server over 1 year.
I want to propose an interesting change which I noticed today while developing a new mod for my server.
Add a greater variety of sounds for food (drinks, crunchy, common and lick).
The setting must be made in the file "food.lua"

Re: [Modpack] "Better HUD" and "hunger" [2.x.1] [hud][hunger

Posted: Thu Jul 07, 2016 19:39
by TenPlus1
https://github.com/tenplus1/hud_hunger -- updated hud/hhunger mod with sprint.

Re: [Modpack] "Better HUD" and "hunger" [2.x.1] [hud][hunger

Posted: Sun Jul 10, 2016 19:39
by Pyros
Hello,
I enjoy using your mod any time I want a true-to-life Minetest experience.
Also thank you for adding support for so many mods such as Ethereal.
Is the API mentioned in the first post available in the hud_hunger directory, or
do I copy certain parts of code from the HUD Lua file?
I suspect this is a very simple question but help is appreciated.

Re: [Modpack] "Better HUD" and "hunger" [2.x.1] [hud][hunger

Posted: Fri Aug 05, 2016 14:03
by Wuzzy
Version 2.x.1 of the hunger mod has a critical bug which causes a server crash.

If any player eats food which causes poisoning (e.g. red mushroom from Minetest Game) and quickly leaves the server before the poisoning stops, the server crashes!
This bug has been fixed in my hbhunger mod.

Here's the relevant commit:
http://repo.or.cz/minetest_hbhunger.git ... hunger.lua

Any mod which was forked from the hunger mod at version 2.x.1 or sooner will likely have this bug, too. Oh, and the bugfix is free to be used by everyone, of course (although I doubt this bugfix is subject to copyright).

The reason for this bug is that poisonp is called later by minetest.after which can happen at a moment when the player is gone, so player:set_hp will of course fail. The bugfix is a simple check.

Re: [Modpack] "Better HUD" and "hunger" [2.x.1] [hud][hunger

Posted: Sat Aug 06, 2016 08:35
by azekill_DIABLO
great! now i just have to check five of my subgames.

Re: [Modpack] Better HUD (and hunger) [2.1.3] [hud][hunger]

Posted: Sat Aug 27, 2016 19:28
by nirvana2165
I know this was a question from a year ago, but in case anyone else comes here by searching on Google (like I did), this was reported as Not A Bug - Backwards Compatibility Only

https://github.com/BlockMen/hud_hunger/issues/27
Soudon wrote:Ok friday I installed mobs redo, and hud_hunger friday all worked well no problems, now today I added 3d_armor and I get this error when I go to eat something. I have removed 3d_armor still happens.

2015-10-11 20:40:56: ACTION[ServerThread]: singleplayer leaves game. List of players:
20:41:40: WARNING: Undeclared global variable "HUD_ENABLE_HUNGER" accessed at ...etest/games/Minetest/mods/hud_hunger/hud/builtin.lua:41

Re: [Modpack] "Better HUD" and "hunger" [2.x.1] [hud][hunger

Posted: Sun Oct 30, 2016 17:50
by snoopy
Thank you, this is a great mod compilation and a very nice add for enjoying the Minetest game. This mod is working well with mods like xdecor, mobs_redo, 3d_armor and others from my experience since the 0.4.13 Minetest release. Like nirvana2165 kindly mentions one can ignore the "HUD_ENABLE_HUNGER" warning obviously.

Re: [Modpack] "Better HUD" and "hunger" [2.x.1] [hud][hunger

Posted: Wed Dec 06, 2017 20:20
by Fixer
This mod is quite outdated and no longer supported, has unfixed ingame bugs, I suggest moving it to "Old Mods", any opinions?

Re: [Modpack] "Better HUD" and "hunger" [2.x.1] [hud][hunger

Posted: Wed Dec 06, 2017 20:22
by rubenwardy
Done

Re: [Modpack] "Better HUD" and "hunger" [2.x.1] [hud][hunger

Posted: Thu Dec 07, 2017 16:49
by azekill_DIABLO
Fixerol wrote:This mod is quite outdated and no longer supported, has unfixed ingame bugs, I suggest moving it to "Old Mods", any opinions?
I still use it.

Re: [Modpack] "Better HUD" and "hunger" [2.x.1] [hud][hunger

Posted: Tue Jan 30, 2018 01:21
by Grizzly Adam
I'm using it too. It seemed oddly balance to take forever for the hunger bar to diminish and then it kills really fast. I assume this is due to it's age and no longer being as in-line with the modern gameplay mechanics. Tweaked the numbers and disabled damage while idle (if we're not moving we're not playing) and it seems to work really well on my server now.

Re: [Modpack] "Better HUD" and "hunger" [2.x.1] [hud][hunger

Posted: Tue Jan 30, 2018 02:51
by Wuzzy
Well, if you use it on a server, don't be surprised if it crashes because this mod has several critical bugs. This can be easily exploited by not-so-nice players who know these bugs. I do not recommend to use this on servers.

The hunger mechanic in this mod is not obvious: The trick is that you can actually have 30 hunger points, but only 0-20 are shown in units of half breads. If you have a full hunger bar, you have between 20 and 30 hunger points.

Re: [Modpack] "Better HUD" and "hunger" [2.x.1] [hud][hunger

Posted: Tue Jan 30, 2018 06:40
by Linuxdirk
Wuzzy wrote:Well, if you use it on a server, don't be surprised if it crashes because this mod has several critical bugs. This can be easily exploited by not-so-nice players who know these bugs. I do not recommend to use this on servers.
Yes, it's sad that the mod seems to be dead since 2 years. All newer hunger mods just don't "feel" as good as this one.

Re: [Modpack] "Better HUD" and "hunger" [2.x.1] [hud][hunger

Posted: Tue Jan 30, 2018 14:25
by jas
It could be switched from setting player inventory, to setting player attributes very easily.

I might suggest also switching from registering compatible food items externally to simply overriding minetest.item_eat.

Re: [Modpack] "Better HUD" and "hunger" [2.x.1] [hud][hunger

Posted: Tue Jan 30, 2018 16:22
by Grizzly Adam
Wuzzy wrote:Well, if you use it on a server, don't be surprised if it crashes because this mod has several critical bugs. This can be easily exploited by not-so-nice players who know these bugs. I do not recommend to use this on servers.

The hunger mechanic in this mod is not obvious: The trick is that you can actually have 30 hunger points, but only 0-20 are shown in units of half breads. If you have a full hunger bar, you have between 20 and 30 hunger points.
Good advice. We are using it on a private server for the family so no worries.

Re: [Modpack] "Better HUD" and "hunger" [2.x.1] [hud][hunger

Posted: Fri Feb 02, 2018 21:07
by Wuzzy
Yes, it's sad that the mod seems to be dead since 2 years. All newer hunger mods just don't "feel" as good as this one.
What about hbhunger + hudbars? It's a direct fork and has identical mechanics.
The only thing you need to do is to change a HUD bars setting to get the statbars back.

Re: [Modpack] "Better HUD" and "hunger" [2.x.1] [hud][hunger

Posted: Fri Feb 02, 2018 21:57
by ExeterDad
Wuzzy wrote:
Yes, it's sad that the mod seems to be dead since 2 years. All newer hunger mods just don't "feel" as good as this one.
What about hbhunger + hudbars? It's a direct fork and has identical mechanics.
The only thing you need to do is to change a HUD bars setting to get the statbars back.
I'll vouch for that.

Re: [Modpack] "Better HUD" and "hunger" [2.x.1] [hud][hunger

Posted: Sat Feb 03, 2018 16:54
by bosapara
19:50:46: ERROR[Server]: Better HUD[error]: Given HUD element "armor" does not exist hфффф

have an error after adding of this mod

Stop it, please.

Posted: Sat Jun 02, 2018 13:37
by Wuzzy
Sigh.
Stop using this mod, already! Please! It's been abandoned since years and has known critical bugs which won't get fixed by the original author. It's of no use to complain in this thread, this won't get you anywhere.
NEVER use this mod on servers, because any player is able to crash your server at will which I explained earlier.

Re: [Modpack] "Better HUD" and "hunger" [2.x.1] [hud][hunger

Posted: Sat Jun 02, 2018 15:20
by rubenwardy
There's a reason this mod is in Old Mods!