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

User avatar
Wuzzy
Member
Posts: 4786
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

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

by Wuzzy » Post

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

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

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

by azekill_DIABLO » Post

it's a perfect mod!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
Fixer
Member
Posts: 904
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer
Location: Ukraine

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

by Fixer » Post

Since Blockmen is not developing this mod anymore maybe it should be submitted to minetest-mods to continue development?

User avatar
benrob0329
Member
Posts: 1341
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03
Location: Michigan
Contact:

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

by benrob0329 » Post

It'd make sense, but everamzah's fork with sprint should be considered as well.

User avatar
BrunoMine
Member
Posts: 1082
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine
Location: SP-Brasil
Contact:

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

by BrunoMine » Post

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"

User avatar
TenPlus1
Member
Posts: 3715
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

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

by TenPlus1 » Post

https://github.com/tenplus1/hud_hunger -- updated hud/hhunger mod with sprint.

User avatar
Pyros
Member
Posts: 25
Joined: Thu Jul 07, 2016 19:45
In-game: Pyros
Contact:

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

by Pyros » Post

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.
00001-00010-00011-00100-00101-00110-00111-01000-01001- etc...

User avatar
Wuzzy
Member
Posts: 4786
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

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

by Wuzzy » Post

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.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

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

by azekill_DIABLO » Post

great! now i just have to check five of my subgames.
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

nirvana2165
New member
Posts: 1
Joined: Sat Aug 27, 2016 19:23
GitHub: darrell24015
In-game: UbuntuNirvana

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

by nirvana2165 » Post

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

User avatar
snoopy
Member
Posts: 263
Joined: Thu Oct 20, 2016 16:49
Location: DE, European Union

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

by snoopy » Post

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.

User avatar
Fixer
Member
Posts: 904
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer
Location: Ukraine

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

by Fixer » Post

This mod is quite outdated and no longer supported, has unfixed ingame bugs, I suggest moving it to "Old Mods", any opinions?

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

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

by rubenwardy » Post

Done
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

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

by azekill_DIABLO » Post

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.
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
Grizzly Adam
Member
Posts: 252
Joined: Sat Aug 05, 2017 01:28
GitHub: Grizzly-Adam
Location: Lost in America
Contact:

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

by Grizzly Adam » Post

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.
Check out my Mods: BBQ Mod Crops Plus

User avatar
Wuzzy
Member
Posts: 4786
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

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

by Wuzzy » Post

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.

User avatar
Linuxdirk
Member
Posts: 3217
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

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

by Linuxdirk » Post

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.

User avatar
jas
Member
Posts: 593
Joined: Mon Jul 24, 2017 18:15
IRC: Freenode
Location: IRC

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

by jas » Post

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.

User avatar
Grizzly Adam
Member
Posts: 252
Joined: Sat Aug 05, 2017 01:28
GitHub: Grizzly-Adam
Location: Lost in America
Contact:

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

by Grizzly Adam » Post

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.
Check out my Mods: BBQ Mod Crops Plus

User avatar
Wuzzy
Member
Posts: 4786
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

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

by Wuzzy » Post

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.

User avatar
ExeterDad
Member
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad
Location: New Hampshire U.S.A

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

by ExeterDad » Post

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.

User avatar
bosapara
Member
Posts: 637
Joined: Fri Apr 07, 2017 08:49

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

by bosapara » Post

19:50:46: ERROR[Server]: Better HUD[error]: Given HUD element "armor" does not exist hфффф

have an error after adding of this mod

User avatar
Wuzzy
Member
Posts: 4786
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Stop it, please.

by Wuzzy » Post

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.

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

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

by rubenwardy » Post

There's a reason this mod is in Old Mods!
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

Locked

Who is online

Users browsing this forum: No registered users and 6 guests