[Mod] Hunger with HUD bar [0.6.0] [hbhunger]

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

Re: [Mod] Hunger with HUD bar [0.6.0] [hbhunger]

by Wuzzy » Mon Sep 18, 2017 14:52

Version 0.6.0 released!

- Added Italian translation by Hamlet (thanks!)
- Texture license is now MIT License


@Lone_Wolf: This is a bug in the [hudbars] mod, it has nothing to do with [hbhunger].
I'm creating MineClone 2, a Minecraft clone for Minetest. I made the Help modpack, adding in-game help to Minetest.
 

User avatar
Stix
Member
 
Posts: 456
Joined: Fri Aug 04, 2017 14:19
Location: USA
In-game: Stix

Re: [Mod] Hunger with HUD bar [0.6.0] [hbhunger]

by Stix » Thu Sep 21, 2017 21:35

@Wuzzy how do i add support for this to my mod, more_bread?
viewtopic.php?f=9&t=18508
Need to know something? "Google it" --GreenDimond
Why do so many people believe in "God"?
Want to know whats gonna be in the next release of your favorite game? "Bugfixes" --Wuzzy
The new Minetest-offtopic can be found here: https://minetestoftopic.createaforum.com/index.php
 

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

Re: [Mod] Hunger with HUD bar [0.6.0] [hbhunger]

by Wuzzy » Fri Sep 22, 2017 12:06

Supported food:
All food items which use the standard minetest.item_eat function are automatically supported.

I'm creating MineClone 2, a Minecraft clone for Minetest. I made the Help modpack, adding in-game help to Minetest.
 

User avatar
Stix
Member
 
Posts: 456
Joined: Fri Aug 04, 2017 14:19
Location: USA
In-game: Stix

Re: [Mod] Hunger with HUD bar [0.6.0] [hbhunger]

by Stix » Fri Sep 22, 2017 12:43

Wuzzy wrote:
Supported food:
All food items which use the standard minetest.item_eat function are automatically supported.


wow! thats great!
Need to know something? "Google it" --GreenDimond
Why do so many people believe in "God"?
Want to know whats gonna be in the next release of your favorite game? "Bugfixes" --Wuzzy
The new Minetest-offtopic can be found here: https://minetestoftopic.createaforum.com/index.php
 

User avatar
Shnikety
New member
 
Posts: 1
Joined: Sun Jun 11, 2017 00:45

Re: [Mod] Hunger with HUD bar [0.6.0] [hbhunger]

by Shnikety » Sun Sep 24, 2017 18:26

excellent mod, love the support this offers for food and other mods

btw, I went to add some chat commands to this add ran into a minor issue that confused me for a moment, lines 119 to 129 need indented another tab
 

dawgdoc
Member
 
Posts: 164
Joined: Mon Feb 27, 2017 01:10
GitHub: dawgdoc

Re: [Mod] Hunger with HUD bar [0.6.0] [hbhunger]

by dawgdoc » Wed Oct 11, 2017 09:01

Wuzzy,

The latest updates TenPlus1 made to mobs_redo seems to have broken hbhunger for me.

After pulling his newest updates from github I have received an error on startup of an existing survival world, singleplayer, with only non-hostile mobs enabled. It is a world that I have had for a month of two, if not three. It was created after updating to MT 0.4.16. Even though the error references hbhunger mod, I am also reported on the mobs_redo forum since it seems to be involved. -- all mods are current with their git repositories. The world shutdown on startup and play did not commence.

debug.txt
Code: Select all
-------------

2017-10-11 03:24:59: ERROR[Main]: ModError: Failed to load and run script from /home/dawgdoc/.minetest/mods/hbhunger/init.lua:
2017-10-11 03:24:59: ERROR[Main]: /home/dawgdoc/.minetest/mods/hbhunger/hunger.lua:129: attempt to index global 'mobs' (a nil value)
2017-10-11 03:24:59: ERROR[Main]: stack traceback:
2017-10-11 03:24:59: ERROR[Main]:    /home/dawgdoc/.minetest/mods/hbhunger/hunger.lua:129: in main chunk
2017-10-11 03:24:59: ERROR[Main]:    [C]: in function 'dofile'
2017-10-11 03:24:59: ERROR[Main]:    /home/dawgdoc/.minetest/mods/hbhunger/init.lua:46: in main chunk
2017-10-11 03:24:59: ERROR[Main]: Check debug.txt for details.


The hbhunger mod references mobs_redo at line 129 of hunger.lua, the code beginning at line 128
Code: Select all
if minetest.get_modpath("mobs") ~= nil then
   if mobs.mod ~= nil and mobs.mod == "redo" then
      hbhunger.register_food("mobs:cheese", 4)
      hbhunger.register_food("mobs:meat", 8)
      hbhunger.register_food("mobs:meat_raw", 4)
      hbhunger.register_food("mobs:rat_cooked", 4)
      hbhunger.register_food("mobs:honey", 2)

I am not sure where the fix is required or even that it is due to hbhunger.

I created a new world just now and 2017-10-11 04:21:33: ERROR[Main]: ModError: Failed to load and run script from /home/dawgdoc/.minetest/mods/hbhunger/init.lua:
2017-10-11 04:21:33: ERROR[Main]: /home/dawgdoc/.minetest/mods/hbhunger/hunger.lua:348: attempt to index global 'farming' (a nil value)
2017-10-11 04:21:33: ERROR[Main]: stack traceback:
2017-10-11 04:21:33: ERROR[Main]: /home/dawgdoc/.minetest/mods/hbhunger/hunger.lua:348: in main chunk
2017-10-11 04:21:33: ERROR[Main]: [C]: in function 'dofile'
2017-10-11 04:21:33: ERROR[Main]: /home/dawgdoc/.minetest/mods/hbhunger/init.lua:46: in main chunk
2017-10-11 04:21:33: ERROR[Main]: Check debug.txt for details.only enabled default, farming_redo, hbhunger, hudbars, mobs_redo, and mobs_animal. The same error was generated.

EDIT: In a new world if I enable the same mods as above excluding hbhunger, there are no error messages. Once I add hbhunger I get the same message as above. If I only enable hbhunger and hudbars I get this error
Code: Select all
 

dawgdoc
Member
 
Posts: 164
Joined: Mon Feb 27, 2017 01:10
GitHub: dawgdoc

Re: [Mod] Hunger with HUD bar [0.6.0] [hbhunger]

by dawgdoc » Thu Oct 12, 2017 06:50

My apologies to you. I also posted in the mobs_redo thread and TP1 suggested I add farming? and mobs? to depends.txt. I went to follow his instructions and found that several files were missing from my hbhunger folder, one of them depends.txt. I corrected the file structure and on a cursory peek in my established world all seems well.
 

User avatar
ManElevation
Member
 
Posts: 752
Joined: Tue Aug 02, 2016 22:04
Location: Madrid,Spain
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation
 

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

Re: [Mod] Hunger with HUD bar [0.6.0] [hbhunger]

by Wuzzy » Sun Oct 22, 2017 17:18

ManElevation, I don't know what you mean. There's no poison bar here. Only a hunger bar. But the health bar can become green when you eat poisonous food, like a red mushroom, and you lose health for a few seconds. And that's it. The poison system in this mod is very simple.
I'm creating MineClone 2, a Minecraft clone for Minetest. I made the Help modpack, adding in-game help to Minetest.
 

User avatar
ManElevation
Member
 
Posts: 752
Joined: Tue Aug 02, 2016 22:04
Location: Madrid,Spain
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation

Re: [Mod] Hunger with HUD bar [0.6.0] [hbhunger]

by ManElevation » Sun Oct 22, 2017 18:02

Wuzzy wrote:ManElevation, I don't know what you mean. There's no poison bar here. Only a hunger bar. But the health bar can become green when you eat poisonous food, like a red mushroom, and you lose health for a few seconds. And that's it. The poison system in this mod is very simple.

oh ok, my bad dint understand how it worked
 

Chem871
Member
 
Posts: 540
Joined: Sat Aug 19, 2017 21:49
Location: Ankh-Morpork
GitHub: Chemguy99
In-game: Chem
 

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

Re: [Mod] Hunger with HUD bar [0.6.0] [hbhunger]

by Wuzzy » Fri Dec 15, 2017 01:10

Sadly, this is currently only possibly by editing the source code. Look into init.lua. Decrease the value of hbhunger.HUNGER_TICK. There are also other variables you could tinker with (read the comments).
I'm creating MineClone 2, a Minecraft clone for Minetest. I made the Help modpack, adding in-game help to Minetest.
 

Previous

Return to Mod Releases



Who is online

Users browsing this forum: Bing [Bot] and 5 guests