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

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

by BlockMen » Thu Aug 29, 2013 19:44

philipbenr wrote:https://forum.minetest.net/viewtopic.php?id=7064

it has a lot of food, but I really like food, so I had to make a lot of it. :P
EDIT: it has 25 recipes, so I hope that won't be hard.


Added support for mtfoods, except medicine (because its better to heal directly on use)
 

User avatar
philipbenr
Member
 
Posts: 1665
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: WisdomFire or philipbenr

by philipbenr » Fri Aug 30, 2013 02:33

Exactly. Thanks so much.
"The Foot is down!"
 

User avatar
ak399g
Member
 
Posts: 160
Joined: Tue Jul 30, 2013 02:36
In-game: SAFR

by ak399g » Mon Sep 02, 2013 22:06

If hunger decreases all the way to zero, you don't take any damage. Normally, hunger won't decrease past 1, but I've added poisonous foods (raw potatoes) that can decrease hunger (upset stomach?) to zero.
aka SAFR
 

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

by BlockMen » Tue Sep 03, 2013 12:19

ak399g wrote:If hunger decreases all the way to zero, you don't take any damage. Normally, hunger won't decrease past 1, but I've added poisonous foods (raw potatoes) that can decrease hunger (upset stomach?) to zero.


Changed. You can take damage now when hunger is 0
 

User avatar
ak399g
Member
 
Posts: 160
Joined: Tue Jul 30, 2013 02:36
In-game: SAFR

by ak399g » Tue Sep 03, 2013 21:10

Thanks.
aka SAFR
 

User avatar
Johnyknowhow
Member
 
Posts: 358
Joined: Fri Sep 21, 2012 15:17
In-game: Minetestian

by Johnyknowhow » Fri Sep 06, 2013 19:10

This mod is awesome! Only that it doesn't work for me,
It says:ServerError: LuaError: error: LOCATON\minetest-0.4.7\bin\..\mods\hud\init.lua:105:
attempt to call method 'get_breath' (a nill value)
That's what it says, I'm so sad :'(
I lost interest in Minetest for a couple of years and... I am still not really paying much attention. I rarely browse these forums anymore but it's nice to see old faces.

obligatory fancy signature goes here
 

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

by BlockMen » Fri Sep 06, 2013 19:29

Johnyknowhow wrote:This mod is awesome! Only that it doesn't work for me,
It says:ServerError: LuaError: error: LOCATON\minetest-0.4.7\bin\..\mods\hud\init.lua:105:
attempt to call method 'get_breath' (a nill value)
That's what it says, I'm so sad :'(


If you are using Minetest 0.4.7 stable (it seems you do) then you need version 0.2.3 of this mod. ;)

If you want use all mod features you need the lastest dev version of Minetest
 

User avatar
Johnyknowhow
Member
 
Posts: 358
Joined: Fri Sep 21, 2012 15:17
In-game: Minetestian

by Johnyknowhow » Fri Sep 06, 2013 20:19

Ok but I forget what I got, but I'll try getting it again,
I lost interest in Minetest for a couple of years and... I am still not really paying much attention. I rarely browse these forums anymore but it's nice to see old faces.

obligatory fancy signature goes here
 

User avatar
Johnyknowhow
Member
 
Posts: 358
Joined: Fri Sep 21, 2012 15:17
In-game: Minetestian

by Johnyknowhow » Fri Sep 06, 2013 21:06

It works! But where is the air bar? I jumped into a pit of water, but I didn't see a air bar,
I lost interest in Minetest for a couple of years and... I am still not really paying much attention. I rarely browse these forums anymore but it's nice to see old faces.

obligatory fancy signature goes here
 

User avatar
Johnyknowhow
Member
 
Posts: 358
Joined: Fri Sep 21, 2012 15:17
In-game: Minetestian

by Johnyknowhow » Fri Sep 06, 2013 21:11

Never mind, but is there a way to get a drowning bar for MT 0.4.7?
I lost interest in Minetest for a couple of years and... I am still not really paying much attention. I rarely browse these forums anymore but it's nice to see old faces.

obligatory fancy signature goes here
 

User avatar
Evergreen
Member
 
Posts: 2131
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

by Evergreen » Fri Sep 06, 2013 22:05

Johnyknowhow wrote:Never mind, but is there a way to get a drowning bar for MT 0.4.7?
There is drowning in the latest versions of minetest (not sure about 0.4.7 stable), so no mods are necessary.
"Help! I searched for a mod but I couldn't find it!"
http://krock-works.16mb.com/MTstuff/modSearch.php
 

User avatar
Johnyknowhow
Member
 
Posts: 358
Joined: Fri Sep 21, 2012 15:17
In-game: Minetestian

by Johnyknowhow » Sat Sep 07, 2013 05:34

There is no drowning bar in 0.4.7,
In MC there is one, so is there a way to get one for 0.4.7?
I lost interest in Minetest for a couple of years and... I am still not really paying much attention. I rarely browse these forums anymore but it's nice to see old faces.

obligatory fancy signature goes here
 

User avatar
Johnyknowhow
Member
 
Posts: 358
Joined: Fri Sep 21, 2012 15:17
In-game: Minetestian

by Johnyknowhow » Sat Sep 07, 2013 05:36

EDIT: also I'm don't know lua so I can't make mods.
And also does MT+ have a drowning bar?
Last edited by Johnyknowhow on Sat Sep 07, 2013 05:41, edited 1 time in total.
I lost interest in Minetest for a couple of years and... I am still not really paying much attention. I rarely browse these forums anymore but it's nice to see old faces.

obligatory fancy signature goes here
 

User avatar
TenPlus1
Member
 
Posts: 1874
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

by TenPlus1 » Sat Sep 07, 2013 08:30

Johnyknowhow wrote:EDIT: also I'm don't know lua so I can't make mods.
And also does MT+ have a drowning bar?


I'm using this mod on 0.4.7 daily and it works well plus the drowning bar appears when you jump into water...
 

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

by BlockMen » Sat Sep 07, 2013 13:47

Johnyknowhow wrote:EDIT: also I'm don't know lua so I can't make mods.
And also does MT+ have a drowning bar?


Since Minetest 0.4.7 has no drowning there is no way to get a drowning bar with this mod (MT+ just uses this mod too).

If you want a drowning bar use an unstable development version, if using windows just download my last build.
 

User avatar
Johnyknowhow
Member
 
Posts: 358
Joined: Fri Sep 21, 2012 15:17
In-game: Minetestian

by Johnyknowhow » Sat Sep 07, 2013 20:59

So MT+ does have the drowning bar,
But I want it for MT 0.4.7 in MC if you hop in water
Bubbles will appear then they will go pop pop pop pop pop
And when I got the mod for MT it didn't appear,
My os for my PC is vista if that will help.
Last edited by Johnyknowhow on Sat Sep 07, 2013 21:24, edited 1 time in total.
I lost interest in Minetest for a couple of years and... I am still not really paying much attention. I rarely browse these forums anymore but it's nice to see old faces.

obligatory fancy signature goes here
 

User avatar
Evergreen
Member
 
Posts: 2131
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

by Evergreen » Sat Sep 07, 2013 21:04

Johnyknowhow wrote:So MT+ does have the drowning bar,
No, default minetest does. Just get the latest unstable build, and voila you have drowning.
"Help! I searched for a mod but I couldn't find it!"
http://krock-works.16mb.com/MTstuff/modSearch.php
 

User avatar
Johnyknowhow
Member
 
Posts: 358
Joined: Fri Sep 21, 2012 15:17
In-game: Minetestian

by Johnyknowhow » Sat Sep 07, 2013 21:25

Lol that jacked up


And when I had the wrong version of this mod
I saw the drowning bar!


When I got right version of this mod
I hopped in water 3 or 2 nodes deep
And I didn't see it (if that's a bug)
Last edited by Johnyknowhow on Sat Sep 07, 2013 21:41, edited 1 time in total.
I lost interest in Minetest for a couple of years and... I am still not really paying much attention. I rarely browse these forums anymore but it's nice to see old faces.

obligatory fancy signature goes here
 

User avatar
TenPlus1
Member
 
Posts: 1874
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

by TenPlus1 » Sun Sep 08, 2013 08:12

Note: sometimes when minetest is generating the world around you their is a pause in the drowning bar and it will not appear until it has finished...
 

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

by BlockMen » Mon Sep 09, 2013 01:44

Update! Version 1.0 / 0.9 released

Changelog:
- hunger is reset after death
- health and hunger bar is shown correct on all screen resolutions now
- switched to changed native hotbar image support
- fixed revival of player when drown
- hunger bar is not shown anymore if hunger is disabled
- hunger can be disabled by minetest.conf ("hud_hunger_enable = false")


Important:
If you are using Minetest 0.4.7 stable use Version 0.9 of this mod.

Use Version 1.0 only with lastest dev/unstable builds. If you are using windows you can download my lastest build for windows from here.
 

User avatar
Johnyknowhow
Member
 
Posts: 358
Joined: Fri Sep 21, 2012 15:17
In-game: Minetestian

by Johnyknowhow » Mon Sep 09, 2013 02:03

BlockMen wrote:Update! Version 1.0 / 0.9 released

Changelog:
- hunger is reset after death
- health and hunger bar is shown correct on all screen resolutions now
- switched to changed native hotbar image support
- fixed revival of player when drown
- hunger bar is not shown anymore if hunger is disabled
- hunger can be disabled by minetest.conf ("hud_hunger_enable = false")


Important:
If you are using Minetest 0.4.7 stable use Version 0.9 of this mod.

Use Version 1.0 only with lastest dev/unstable builds. If you are using windows you can download my lastest build for windows from here.


Great! But where do I download update for 0.4.7?
Last edited by Johnyknowhow on Mon Sep 09, 2013 02:03, edited 1 time in total.
I lost interest in Minetest for a couple of years and... I am still not really paying much attention. I rarely browse these forums anymore but it's nice to see old faces.

obligatory fancy signature goes here
 

User avatar
ak399g
Member
 
Posts: 160
Joined: Tue Jul 30, 2013 02:36
In-game: SAFR

by ak399g » Mon Sep 09, 2013 23:43

Interestingly enough, if you kill someone who has sufficient hunger as to autoheal, their hearts will begin to refill right after they die. Them hitting respawn simply revives them in the same place because, after all, their health isn't at 0 anymore.
aka SAFR
 

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

by BlockMen » Tue Sep 10, 2013 20:48

ak399g wrote:Interestingly enough, if you kill someone who has sufficient hunger as to autoheal, their hearts will begin to refill right after they die. Them hitting respawn simply revives them in the same place because, after all, their health isn't at 0 anymore.


Actually that is fixed in Version 0.9/1.0 now.
 

User avatar
ak399g
Member
 
Posts: 160
Joined: Tue Jul 30, 2013 02:36
In-game: SAFR

by ak399g » Wed Sep 11, 2013 02:50

BlockMen wrote:
ak399g wrote:Interestingly enough, if you kill someone who has sufficient hunger as to autoheal, their hearts will begin to refill right after they die. Them hitting respawn simply revives them in the same place because, after all, their health isn't at 0 anymore.


Actually that is fixed in Version 0.9/1.0 now.

That would be the init.lua file? Because I've edited these somewhat, I want to know which lines specifically were affected.
aka SAFR
 

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

by BlockMen » Wed Sep 11, 2013 11:25

ak399g wrote:
BlockMen wrote:
ak399g wrote:Interestingly enough, if you kill someone who has sufficient hunger as to autoheal, their hearts will begin to refill right after they die. Them hitting respawn simply revives them in the same place because, after all, their health isn't at 0 anymore.


Actually that is fixed in Version 0.9/1.0 now.

That would be the init.lua file? Because I've edited these somewhat, I want to know which lines specifically were affected.


Here you go: https://github.com/BlockMen/hud/commit/01e267e99a0f52af55c177ee8956f0fe28a22764
 

User avatar
ak399g
Member
 
Posts: 160
Joined: Tue Jul 30, 2013 02:36
In-game: SAFR

by ak399g » Thu Sep 12, 2013 00:59

How come hud can't write the hunger of the character to the character file? Why does it have to create a whole 'nother "hud_[playername]_hunger" file?
aka SAFR
 

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

by BlockMen » Fri Sep 13, 2013 11:21

ak399g wrote:How come hud can't write the hunger of the character to the character file? Why does it have to create a whole 'nother "hud_[playername]_hunger" file?


When i added data to player file it got corrupted and was not readable anymore. So i decided to make a seperate file.
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Fri Sep 13, 2013 11:27

Could you add a setting where you get the food eaten thingy from the eat(#) thingy. Also maybe you could add food saturation also. Finally can I use this for my Overcraft Origins game. It is minecraft like
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Fri Sep 13, 2013 11:34

jojoa1997 wrote:Could you add a setting where you get the food eaten thingy from the eat(#) thingy. Also maybe you could add food saturation also. Finally can I use this for my Overcraft Origins game. It is minecraft like


You are not making much sense to me, I hope you make more sense to him.

Do you mean minetest.item_eat(amount)?

To do that, all he needs to do is

minetest.item_eat = hud.item_eat before any foods are registered.

PS: I have added BetterHUD support to Food 2.0, which is out soon.
 

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

by BlockMen » Fri Sep 13, 2013 11:46

jojoa1997 wrote:Could you add a setting where you get the food eaten thingy from the eat(#) thingy. Also maybe you could add food saturation also. Finally can I use this for my Overcraft Origins game. It is minecraft like


Im also not sure what he means. The supported items have a saturation and the saturation of the player/hunger can always be read out.

I'm replacing the on_use=() of the items instead of overwriting minetest.item_eat() if you mean that.

To you game: WTFPL->"Do What The Fuck You Want To" includes using in a game ;)


rubenwardy wrote:PS: I have added BetterHUD support to Food 2.0, which is out soon.


Sounds good ;)
Last edited by BlockMen on Fri Sep 13, 2013 11:47, edited 1 time in total.
 

PreviousNext

Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 23 guests

cron