[Mod] Hunger NG: A next generation hunger mod (hunger_ng)

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

Re: [Mod] Hunger NG: A next generation hunger mod (hunger_ng

by Linuxdirk » Fri Feb 08, 2019 07:23

Please make sure to use the latest available Git versions of Minetest, Minetest Game, Hunger NG, and Hudbars. Make sure that Hudbars runs without any issues, make sure Hunger NG runs without any issues. Then enable both Hudbars and Hunger NG and provide the error message you get. Preferably over at GitLab. Thanks!
 

User avatar
runs
Member
 
Posts: 265
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: [Mod] Hunger NG: A next generation hunger mod (hunger_ng

by runs » Fri Feb 08, 2019 14:49

I use hbhunger with hudbar, and all OK. When I replace to hunger_ng, I get this error:

Code: Select all
2019-02-08 15:47:55: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'hunger_ng' in callback on_joinplayer(): .../games/bogart/mods/hunger_ng/system/hunger_functions.lua:26: bad argument #1 to 'get_player_by_name' (string expected, got nil)
2019-02-08 15:47:55: ERROR[Main]: stack traceback:
2019-02-08 15:47:55: ERROR[Main]:    [C]: in function 'get_player_by_name'
2019-02-08 15:47:55: ERROR[Main]:    .../games/bogart/mods/hunger_ng/system/hunger_functions.lua:26: in function 'get_data'
2019-02-08 15:47:55: ERROR[Main]:    ...games/bogart/mods/hunger_ng/interoperability/hudbars.lua:32: in function <...games/bogart/mods/hunger_ng/interoperability/hudbars.lua:30>
2019-02-08 15:47:55: ERROR[Main]:    /opt/minetest/bin/../builtin/game/register.lua:419: in function </opt/minetest/bin/../builtin/game/register.lua:399>
 

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

User avatar
texmex
Member
 
Posts: 1203
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex
 

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

Re: [Mod] Hunger NG: A next generation hunger mod (hunger_ng

by Linuxdirk » Fri Feb 08, 2019 21:58

runs wrote:I use hbhunger with hudbar, and all OK. When I replace to hunger_ng, I get this error:

Found the issue (embarrassing typo) and fixed it. I also fixed the default hunger bar not being removed when enabling the hudbars mod. Just fetch the latest Git versions of everything.

texmex wrote:Have you ever thought of tracking basic nutrients individually? :)

Processing nutrients changes their nutritive value so I need to check that, too. Also I need to get all recipes to check what’s in them and need to check if the ingredients are made from basic nutrients, and so on … So for the sake of simplicity I rather not do this :)
 

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

Re: [Mod] Hunger NG: A next generation hunger mod (hunger_ng

by Linuxdirk » Sat Feb 09, 2019 00:44

Attention modders!

The API changed a little. When getting the hunger information using hunger_ng.get_hunger_information you’ll get a slightly altered table back.

Also: all hunger data is now player meta data and no longer custom attributes because with Minetest 5.0.0 custom attributes are to be seen as deprecated!

In addition to that: Some of the (previous) custom attributes (now meta data) were renamed for better handling within the mod. You should not use them anyways :)

Just get the latest Git version and the Minetest 5.0.0 release candidate. An update via CDB will be available soon.
 

User avatar
Lone_Wolf
Member
 
Posts: 2076
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf

Re: [Mod] Hunger NG: A next generation hunger mod (hunger_ng

by Lone_Wolf » Sat Feb 09, 2019 20:24

This doesn't seem to be working with mobs_animal anymore. I got this mod and mobs_animal from the CDB. I use Minetest 5.0
 

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

Re: [Mod] Hunger NG: A next generation hunger mod (hunger_ng

by Linuxdirk » Sat Feb 09, 2019 20:58

Sigh … those Lua patterns driving me insane one day … please get the last version and try. I’ll push a new release to the CDB soon.
 

Previous

Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 4 guests