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

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

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

by Wuzzy » Post

@bell07: Rubenwardy confirmed it's Minetest's fault, not mine.

https://github.com/minetest/minetest/issues/8075

So I won't touch anything.

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

Version 1.0.1 released!

by Wuzzy » Post

Version 1.0.1 was released!

This updates the mod to the new API for the HUD Bars mod in version 2.1.0. It will fix an annoying number formatting problem.

This also means this mod now needs at least HUD Bars version 2.1.0 to work properly.

User avatar
Imk
Member
Posts: 490
Joined: Mon Nov 05, 2018 19:15
In-game: Imk
Location: Crimea, Russia
Contact:

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

by Imk » Post

There was a mistake. You cannot board a boat, a train. The following happens. Failing and it is possible to drive the vehicle from a distance. 1.0.1 checked the same thing.
https://youtu.be/EO8dkOtnziY

I was generally surprised that the hunger mod somehow influenced this.
hunger_ng set the mod, worked as it should. but we have no support for products like yours.
I used your mods for more than six months, and not such errors.

User avatar
Imk
Member
Posts: 490
Joined: Mon Nov 05, 2018 19:15
In-game: Imk
Location: Crimea, Russia
Contact:

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

by Imk » Post

rus ..\locale\
Attachments
hbhunger.ru.zip
(205 Bytes) Downloaded 87 times

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

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

by Wuzzy » Post

Thanks for the translation! I have included it in the repository.

I don't really understand your bug report. I am unable to reproduce your bug.

What exactly did you do to trigger this bug? Which games and mods do you use in the video?

User avatar
Imk
Member
Posts: 490
Joined: Mon Nov 05, 2018 19:15
In-game: Imk
Location: Crimea, Russia
Contact:

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

by Imk » Post

I don't really understand your bug report.
Sorry, I understand English, but I don’t know how to write, but Google you know how to translate.

1) bug of 100% of this mod. if you turn it off or replace it with another one, for example, hunger_ng everything works fine.
2) I saw the problem not only on our server and on others not configured by me.
What exactly did you do to trigger this bug? Which games and mods do you use in the video?
3) the video shows that the boat does not look like ..\games\minetest_game\mods\boats
Yes, it is changed, but if you put it from the standard set minetest game, the problem will be the same
4) the same bug does not allow you to board the train. Mods advtrains

let's do it if you can log onto the server teracrime.ddns.net:30008
I will not disable the mod hbhunger until you say you checked.
Try to board the boat and sail away
for a second you feel like you got into a boat
then you will fall out of her
the boat believes that you are in it and therefore its management works
this action is shown in the video
character and boat movement keys match [W]
the boat in the water moves faster because it can be seen how it floats from the player to the other shore and there it remains because it can’t continue to sail
then I found support in the form of a palm tree so that the persuasion does not move, I show that I can control the boat

And all this happens only because you fail and the boat believes that you are out of sight

My next steps:
sinned on mod boats
set standard minetest game ->boats
the result is the same bug

I myself got angry as a mod hbhunger can cause a similar error

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

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

by Wuzzy » Post

I have visited teracrime.ddns.net:30008.

I tried to use the boat. It worked 100% correctly.

Therefore, I am not convinced that hbhunger is buggy.

User avatar
Imk
Member
Posts: 490
Joined: Mon Nov 05, 2018 19:15
In-game: Imk
Location: Crimea, Russia
Contact:

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

by Imk » Post

need to think
Spark build Linux says ok too
When he sits down, I don’t see him in a boat, his nickname is far away and the boat is sailing like a boat
I have an assembly for minetest-5.1.0-3ad9a8f-win64

and you have a Linux assembly?

launched the old minetest-5.1.0-a7c5dc5-win64 works
the conclusion is the assembly curvature

Thank you for your help if you didn’t go in and you didn’t come to the head

tested not on one new assembly does not work:
minetest-5.1.0-ea9b241-win64 https://minetest.kitsunemimi.pw/builds/
on the newest one too minetest-5.1.0-05a7da6-win64
It turns out and can not use the new assembly?
something suspicious all assemblies can’t work new non-working if you disable the mod hbhunger the boat normally works
the server runs on the kernel 5.1.0-dev-23bd563-dirty the Ubuntu
Last edited by Imk on Wed Sep 18, 2019 03:31, edited 6 times in total.

User avatar
Imk
Member
Posts: 490
Joined: Mon Nov 05, 2018 19:15
In-game: Imk
Location: Crimea, Russia
Contact:

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

by Imk » Post

Wuzzy I want to torment you not on the topic of your mod.
Spoiler
Image
Maybe you know why this happens?
3d_armor installation field appeared.
Our character visually failed lower than we were physically
viewtopic.php?f=23&t=21514

They advised to update 3d armor the error disappeared but appeared as on the screen
If you ride a horse, the train will also be a block higher
3d armor updated Sun Dec 02, 2018 20:38 link https://github.com/stujones11/minetest- ... _0.5.0-dev and no longer changed

ps I understand the question is not by those of this mod I don’t know where to turn
Attachments
screenshot_20190918_012412.jpg
screenshot_20190918_012412.jpg (106.42 KiB) Viewed 1686 times

ThorfinnS
Member
Posts: 311
Joined: Mon Feb 25, 2019 22:05
GitHub: ThorfinnS

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

by ThorfinnS » Post

Might be a performance thing.

The latest couple builds have been so much less laggy that you can't do much more than tap to board the boat. If you click slower, like you have to do on the release version and on all but the last couple builds, you end up being dropped off.

Other features of less laggy build -- you can easily mine down so fast that you are actually falling, and take damage the instant you stop digging and hit the bottom of the shaft. Haven't died that way yet, but got really close once.

So I don't think it's this mod -- does it with pretty much every mod, or none at all.

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

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

by Wuzzy » Post

I am still not convinced the bug is in hbhunger. Can you reproduce the bug if you use a minimal setup with as few mods as possible?
For example:
Minetest Game + hudbars + hbhunger and that's it.

User avatar
Imk
Member
Posts: 490
Joined: Mon Nov 05, 2018 19:15
In-game: Imk
Location: Crimea, Russia
Contact:

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

by Imk » Post

I like this mod and I want to use it further.
Yes, I did when I was looking for the problem
Run separately not on the battle server
On a laptop under Win 7

I’ll do it again with the last version of the mod
I will report the result

User avatar
Imk
Member
Posts: 490
Joined: Mon Nov 05, 2018 19:15
In-game: Imk
Location: Crimea, Russia
Contact:

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

by Imk » Post

server and client Win7 minetest-5.1.0-3ad9a8f-win64

Minetest Game & hudbars = works

Minetest Game & hudbars & hbhunger = does not work

Minetest Game & hudbars & farming & hunger_ng = works

User avatar
Imk
Member
Posts: 490
Joined: Mon Nov 05, 2018 19:15
In-game: Imk
Location: Crimea, Russia
Contact:

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

by Imk » Post

Minetest 5.1.0 has been released.
wakes up the error correction?

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

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

by Wuzzy » Post

The thing is, I have no idea what triggers this problem. Also, I don't experience this problem myself.

TommyTreasure
Member
Posts: 44
Joined: Tue Nov 15, 2016 01:37
IRC: TommyTreasure
In-game: TommyTreasure

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

by TommyTreasure » Post

And here's another issue. Client side lag -- massive. I haven't been able to track the action that triggers it, but in most cases, it seems related to either hbhunger and woodcutting. Both mods were updated on the same day, and the lag issue with the next player to join after restarting the server.

Server 5.0.1 via ppa.
Clients 5.0.1 (most of my players run the Windows 64 version)

User avatar
FreeGamers
Member
Posts: 650
Joined: Sat May 25, 2019 00:15
GitHub: is proprietary I use NotABug
Location: United States
Contact:

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

by FreeGamers » Post

I don't really follow along how hbhunger could substantially introduce lag, but if you suspected that hudbars or hbhunger were introducing lag somehow, perhaps you could adjust the tick rate that they use to a larger interval to reduce the amount of data regularly sent/polled.

I run a v5.0.1 survival server using hudbars and it has about 6 different gauges. We haven't had any noticeable lag resulting from it.
FreeGamers.org has moved to MeseCraft.net | FreeGamers on this forum is now MeseCraft

TommyTreasure
Member
Posts: 44
Joined: Tue Nov 15, 2016 01:37
IRC: TommyTreasure
In-game: TommyTreasure

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

by TommyTreasure » Post

I'm not sure which of the 2 mods is introducing the client lag. My main suspicion is the woodcutting mod though. Just thought I would post it here so forum visitors will see the possible association of these 2 mods.

ThorfinnS
Member
Posts: 311
Joined: Mon Feb 25, 2019 22:05
GitHub: ThorfinnS

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

by ThorfinnS » Post

Re: boats, I've run into something odd. Using the launcher, I create a new game, enable all mods, then start game.

Some games, the boats are very tricky to use. Tap the mouse button as fast as you possibly can, and sometimes you get on the boat, but most of the time, you get on it then fall through. Some games, I've been unable to successfully get on the boat. And some games, the boat works just fine.

I don't understand why it should be different. I'm enabling all mods, so it should load them all in the same order, right? Only thing so far I've seen consistent is 2/2 when my initial spawn is in apple forest, the boats work, 0/3 for starting on snow, but that's not a lot of data to draw a conclusion from. The very next load might disprove it.

And I think it must be something to do with 5.1. I hadn't encountered it before.

[EDIT]
I'm not saying this is related to HUDbars. I'm only commenting here because lmk thinks it's related.
[/EDIT]

User avatar
Imk
Member
Posts: 490
Joined: Mon Nov 05, 2018 19:15
In-game: Imk
Location: Crimea, Russia
Contact:

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

by Imk » Post

Clients Win
minetest-5.1.0-f483a1a-win64
hbhunger works )

Minetest 5.1.0 has been released. viewtopic.php?p=359355#p359355
hbhunger works

tested on servers: version 5.2.0-dev-0df646e-dirty

buggy boarding a boat, trains, dragons, missing.

TommyTreasure
Member
Posts: 44
Joined: Tue Nov 15, 2016 01:37
IRC: TommyTreasure
In-game: TommyTreasure

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

by TommyTreasure » Post

Update on my player's, client side lag problems.

I disabled the woodcutting mod, and there was no effect. Most players experienced lag issues within 10 to 15 minutes of play time.

However, I did revert to my older versions of hbhunger, hbarmor, and hudbars (hudbars mod pack. not sure of the version, other than it still had the 'sprint' code), and so far, not client side lag issues.

Yes, i removed the old 'hudbars' modpack before installing the current 'minetest-armor', 'minetest-hbhunger', and 'minetest-hudbars'.

I'm still confused where the client side lag problem lies, or exactly what it triggering the lag.

User avatar
FreeGamers
Member
Posts: 650
Joined: Sat May 25, 2019 00:15
GitHub: is proprietary I use NotABug
Location: United States
Contact:

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

by FreeGamers » Post

Wuzzy, I'm trying to make a mob hook into the hbhunger poison functionality but am a bit stumped on how to access the poisenp function from outside the mod. Is there a way to do this?

Here is the function: https://www.notabug.org/FreeGamers/Sara ... ua#L51-L71

and this is the code I'm trying to use to hook into the functionality.

Code: Select all

if minetest.get_modpath("hbhunger") ~= nil then
                        -- poison attack
                        minetest.register_on_punchplayer(function(player, hitter)
                                if not hitter then return end
                                local entity = hitter:get_luaentity()
                                local name = player:get_player_name()
                                if entity and entity.name == "mobs_creatures:zombie" then
                                        hb.change_hudbar(user, "health", nil, nil, "hbhunger_icon_health_poison.png", nil, "hbhunger_bar_health_poison.png")
                                        hbhunger.poisonings[name] = hbhunger.poisonings[name] + 1
                                        poisenp(1, 5, 0, name) -- poisen player, (tick time, posion time, time left, player)
                                end
                        end)
end
Of course it crashes in game:

Code: Select all

2019-12-02 07:41:43: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'mobs_creatures' in callback luaentity_Step(): Runtime error from mod 'mobs_creatures' in callback on_punchplayer(): ...es/minetest/mods/lib_life/mobs_creatures/mobs/zombie.lua:9: attempt
2019-12-02 07:41:43: ERROR[Main]:  to call global 'poisenp' (a nil value)
FreeGamers.org has moved to MeseCraft.net | FreeGamers on this forum is now MeseCraft

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

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

by Wuzzy » Post

It's a local function (local function poisenp(tick, time, time_left, player)), meaning that it's impossible to access it outside of the hbhunger mod.

This is by design. This function is for internal use only.

User avatar
FreeGamers
Member
Posts: 650
Joined: Sat May 25, 2019 00:15
GitHub: is proprietary I use NotABug
Location: United States
Contact:

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

by FreeGamers » Post

Darn, OK. I'll have to find an alternative way to do this.

I'd like players to be able to get stung or bitten and poisoned. I can do the poison and damage part fairly easy but I'd like it to hook into the health status bar and change the textures because I think it is a consistent way to give player feedback that they are poisoned.

I wanted to hook into the hbhunger table so that all that stuff could be managed by one system.

However, I think I will try to copy the way hbhunger changes the health hudbar with hudbars and then try to develop a similar method of tracking poisoned players.
FreeGamers.org has moved to MeseCraft.net | FreeGamers on this forum is now MeseCraft

User avatar
FreeGamers
Member
Posts: 650
Joined: Sat May 25, 2019 00:15
GitHub: is proprietary I use NotABug
Location: United States
Contact:

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

by FreeGamers » Post

Wuzzy, Can you open up the poison functions in this mod so other mods can hook into it? Since it affects the player health and is the best visual feedback method I've since to indicate poison on the player health, I would really appreciate if it allowed away for other mods to define poison status. It would provide me with a unified way to poison players in my game and that consistency would really be helpful and a good design choice in the context of a game.

I'd like to add a few poisonous mobs and access to the poison function in hbhunger would really be a great uniform way to do this.
FreeGamers.org has moved to MeseCraft.net | FreeGamers on this forum is now MeseCraft

Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests