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

User avatar
Wuzzy
Member
 
Posts: 2161
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
I'm creating MineClone 2, a Minecraft clone for Minetest.
I made the Help modpack, adding in-game help to Minetest.
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

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

by azekill_DIABLO » Tue Mar 29, 2016 15:54

it's a perfect mod!
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

Fixerol
Member
 
Posts: 633
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer

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

by Fixerol » 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: 1192
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: 902
Joined: Thu Apr 25, 2013 17:29
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: 1874
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

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

by TenPlus1 » Thu Jul 07, 2016 19:39

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

User avatar
Pyros
Member
 
Posts: 24
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: 2161
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.
I'm creating MineClone 2, a Minecraft clone for Minetest.
I made the Help modpack, adding in-game help to Minetest.
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
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.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

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.
 

Previous

Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 10 guests

cron