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

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

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

by Wuzzy » Sat Mar 26, 2016 17:53

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
My projects: MineClone 2. Hades Revisited. Help modpack. A ton of other mods, see here.
 

User avatar
azekill_DIABLO
Member
 
Posts: 7393
Joined: Wed Oct 29, 2014 20:05
Location: Under my desk (but I can't see my monitor now X'[ )
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

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

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

by Fixer » Tue May 31, 2016 23:06

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

User avatar
benrob0329
Member
 
Posts: 1233
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
In-game: benrob03

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

by benrob0329 » Wed Jun 01, 2016 04:34

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

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

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

by BrunoMine » Thu Jul 07, 2016 14:41

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: 2326
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1
 

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

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

by Pyros » Sun Jul 10, 2016 19:39

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: 3133
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

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

by Wuzzy » Fri Aug 05, 2016 14:03

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.
My projects: MineClone 2. Hades Revisited. Help modpack. A ton of other mods, see here.
 

User avatar
azekill_DIABLO
Member
 
Posts: 7393
Joined: Wed Oct 29, 2014 20:05
Location: Under my desk (but I can't see my monitor now X'[ )
GitHub: azekillDIABLO
In-game: azekill_DIABLO

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

by azekill_DIABLO » Sat Aug 06, 2016 08:35

great! now i just have to check five of my subgames.
【OMICRON】 ; 【MILA】 update ; 【BB,HD】 update ; 【▶ Youtube】 Redstone will be added in 20 months ago. -wuzzy
 

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 » Sat Aug 27, 2016 19:28

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

 

snoopy
Member
 
Posts: 34
Joined: Thu Oct 20, 2016 16:49

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

by snoopy » Sun Oct 30, 2016 17:50

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.
Enjoying Minetest by Neoascetic's and Morn76's builds on Mac OS X 10.11.6 clients with local server and several modifications.
 

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

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

by Fixer » Wed Dec 06, 2017 20:20

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: 5428
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
 

User avatar
azekill_DIABLO
Member
 
Posts: 7393
Joined: Wed Oct 29, 2014 20:05
Location: Under my desk (but I can't see my monitor now X'[ )
GitHub: azekillDIABLO
In-game: azekill_DIABLO

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

by azekill_DIABLO » Thu Dec 07, 2017 16:49

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.
【OMICRON】 ; 【MILA】 update ; 【BB,HD】 update ; 【▶ Youtube】 Redstone will be added in 20 months ago. -wuzzy
 

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

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

by Grizzly Adam » Tue Jan 30, 2018 01:21

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: 3133
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

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

by Wuzzy » Tue Jan 30, 2018 02:51

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.
My projects: MineClone 2. Hades Revisited. Help modpack. A ton of other mods, see here.
 

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

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

by Linuxdirk » Tue Jan 30, 2018 06:40

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: 216
Joined: Mon Jul 24, 2017 18:15
GitHub: jastevenson303
IRC: jas_
In-game: jas

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

by jas » Tue Jan 30, 2018 14:25

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: 251
Joined: Sat Aug 05, 2017 01:28
Location: Lost in America
GitHub: Grizzly-Adam

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

by Grizzly Adam » Tue Jan 30, 2018 16:22

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: 3133
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

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

by Wuzzy » Fri Feb 02, 2018 21:07

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.
My projects: MineClone 2. Hades Revisited. Help modpack. A ton of other mods, see here.
 

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

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

by ExeterDad » Fri Feb 02, 2018 21:57

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: 273
Joined: Fri Apr 07, 2017 08:49
GitHub: bosapara
In-game: Jozet

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

by bosapara » Sat Feb 03, 2018 16:54

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: 3133
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Stop it, please.

by Wuzzy » Sat Jun 02, 2018 13:37

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.
My projects: MineClone 2. Hades Revisited. Help modpack. A ton of other mods, see here.
 

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

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

by rubenwardy » Sat Jun 02, 2018 15:20

There's a reason this mod is in Old Mods!
Core Developer | Donate | My Twitter | Mods | Mods 4 Android | Node Box Editor | Minetest Modding Book

Hello profile reader

LgiOxMFYXOqtqVqMPhbw1Bn3oNRvEC7j
 

Previous

Return to Old Mods



Who is online

Users browsing this forum: No registered users and 1 guest