Page 4 of 13

Posted: Sat Sep 07, 2013 20:59
by Johnyknowhow
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.

Posted: Sat Sep 07, 2013 21:04
by Evergreen
Johnyknowhow wrote:So MT+ does have the drowning bar,
No, default minetest does. Just get the latest unstable build, and voila you have drowning.

Posted: Sat Sep 07, 2013 21:25
by Johnyknowhow
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)

Posted: Sun Sep 08, 2013 08:12
by TenPlus1
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...

Posted: Mon Sep 09, 2013 01:44
by BlockMen
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.

Posted: Mon Sep 09, 2013 02:03
by Johnyknowhow
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?

Posted: Mon Sep 09, 2013 23:43
by ak399g
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.

Posted: Tue Sep 10, 2013 20:48
by BlockMen
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.

Posted: Wed Sep 11, 2013 02:50
by ak399g
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.

Posted: Wed Sep 11, 2013 11:25
by BlockMen
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/ ... fe28a22764

Posted: Thu Sep 12, 2013 00:59
by ak399g
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?

Posted: Fri Sep 13, 2013 11:21
by BlockMen
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.

Posted: Fri Sep 13, 2013 11:27
by jojoa1997
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

Posted: Fri Sep 13, 2013 11:34
by rubenwardy
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.

Posted: Fri Sep 13, 2013 11:46
by BlockMen
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 ;)

Posted: Fri Sep 13, 2013 12:30
by jojoa1997
https://github.com/minetest/minetest_ga ... .lua#L1152
Get the number for the on use and use that as the number. I mean instead of setting it manually you code to find the number and then replace it or what ever you do. That way new food can be used.

Posted: Fri Sep 13, 2013 14:03
by BlockMen
jojoa1997 wrote:https://github.com/minetest/minetest_ga ... .lua#L1152
Get the number for the on use and use that as the number. I mean instead of setting it manually you code to find the number and then replace it or what ever you do. That way new food can be used.
That you mean, ok.

No, its not that practical. The number of healthpoints is (ofc) lower than saturation of the item. So if reading out sometimes doubeling the nuber would be ok, sometimes it would be too low or to high. So defining it is better here.

Posted: Fri Sep 13, 2013 14:04
by rubenwardy
That is what I said.

All he does to add hunger support for other mods, is go into minetest.registered_items and replace minetest.item_eat with hud.item_eat

If you want to replace minetest.item_eat with hud.item_eat, which I think is what you mean, then I think he will not do this, you have to do this yourself.

Do it yourself

Add this to 0Item_Eat/init.lua

Code: Select all

minetest.item_eat = hud.item_eat
and add this to 0Item_Eat/depends.txt

Code: Select all

hud
this assumes that minetest.item_eat is part of builtin or the cpp lua, not default game.

Posted: Mon Sep 16, 2013 09:55
by BlockMen
Update! Version 1.1 released

Changelog:
- added support for stu's 3darmor mod (needs lastest version of armor mod)
- restructured and cleaned up code
- added support for poisen food (damages player, but does not kill)


Important:

New features will only be available for lastest dev/unstable builds of Minetest.

If you are using Minetest 0.4.7 stable use Version 0.9 of this mod. (no drowning, no armor support)

Posted: Mon Sep 16, 2013 10:23
by Evergreen
BlockMen wrote:Update! Version 1.1 released

Changelog:
- added support for stu's 3darmor mod (needs lastest version of armor mod)
- restructured and cleaned up code
- added support for poisen food (damages player, but does not kill)


Important:

New features will only be available for lastest dev/unstable builds of Minetest.

If you are using Minetest 0.4.7 stable use Version 0.9 of this mod. (no drowning, no armor support)
That looks awesome! Great work BlockMen.

Posted: Tue Sep 17, 2013 17:20
by stu
BlockMen wrote:Update! Version 1.1 released

Changelog:
- added support for stu's 3darmor mod (needs lastest version of armor mod)
- restructured and cleaned up code
- added support for poisen food (damages player, but does not kill)


Important:

New features will only be available for lastest dev/unstable builds of Minetest.

If you are using Minetest 0.4.7 stable use Version 0.9 of this mod. (no drowning, no armor support)
Nice job! I would just like to point out that you will need the current-git version of 3d armor, not the current stable version 0.3.1

Posted: Wed Sep 18, 2013 08:15
by rubenwardy
Awesome!

Posted: Wed Sep 18, 2013 14:10
by viv100
1,1 do not work can you help me

Posted: Thu Sep 19, 2013 09:11
by BlockMen
viv100 wrote:1,1 do not work can you help me
Could you be more precisely? Please post the error message.

My suggestion: Check if the folder is named correct ("~/mods/hud")

Posted: Thu Sep 19, 2013 16:59
by viv100
worldmods / hud / init.lua. 48