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

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

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

by Wuzzy » Fri Jan 11, 2019 14:59

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

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

So I won't touch anything.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

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

Version 1.0.1 released!

by Wuzzy » Fri Sep 13, 2019 18:03

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.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

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

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

by Imk » Tue Sep 17, 2019 07:01

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: 240
Joined: Mon Nov 05, 2018 19:15
Location: Crimea, Russia
In-game: Imk
 

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

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

by Wuzzy » Tue Sep 17, 2019 09:16

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?
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

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

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

by Imk » Tue Sep 17, 2019 18:22

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: 3641
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

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

by Wuzzy » Tue Sep 17, 2019 20:20

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.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

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

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

by Imk » Tue Sep 17, 2019 22:07

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: 240
Joined: Mon Nov 05, 2018 19:15
Location: Crimea, Russia
In-game: Imk

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

by Imk » Tue Sep 17, 2019 23:21

Wuzzy I want to torment you not on the topic of your mod.
+ Spoiler

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
(106.42 KiB) Not downloaded yet
 

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

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

by ThorfinnS » Wed Sep 18, 2019 14:43

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: 3641
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

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

by Wuzzy » Wed Sep 18, 2019 15:22

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.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

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

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

by Imk » Wed Sep 18, 2019 20:30

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: 240
Joined: Mon Nov 05, 2018 19:15
Location: Crimea, Russia
In-game: Imk

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

by Imk » Wed Sep 18, 2019 20:57

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: 240
Joined: Mon Nov 05, 2018 19:15
Location: Crimea, Russia
In-game: Imk
 

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

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

by Wuzzy » Sun Oct 13, 2019 10:28

The thing is, I have no idea what triggers this problem. Also, I don't experience this problem myself.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

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

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

by TommyTreasure » Wed Oct 16, 2019 23:36

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: 334
Joined: Sat May 25, 2019 00:15
Location: United States
GitHub: is proprietary I use NotABug

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

by FreeGamers » Thu Oct 17, 2019 11:03

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.
 

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

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

by TommyTreasure » Thu Oct 17, 2019 17:25

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: 200
Joined: Mon Feb 25, 2019 22:05
GitHub: ThorfinnS

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

by ThorfinnS » Thu Oct 17, 2019 19:37

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: 240
Joined: Mon Nov 05, 2018 19:15
Location: Crimea, Russia
In-game: Imk

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

by Imk » Fri Oct 18, 2019 02:41

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: 27
Joined: Tue Nov 15, 2016 01:37
IRC: TommyTreasure
In-game: TommyTreasure

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

by TommyTreasure » Fri Oct 18, 2019 12:55

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: 334
Joined: Sat May 25, 2019 00:15
Location: United States
GitHub: is proprietary I use NotABug

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

by FreeGamers » Mon Dec 02, 2019 14:01

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)
 

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

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

by Wuzzy » Tue Dec 03, 2019 03:29

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.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

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

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

by FreeGamers » Tue Dec 03, 2019 10:54

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.
 

Previous

Return to Mod Releases



Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 9 guests