[Mod] HUD bars [2.1.0] [hudbars]

User avatar
poikilos
Member
 
Posts: 48
Joined: Thu Feb 18, 2016 13:45
GitHub: poikilos
In-game: Abiyahh

Re: [Mod] HUD bars [1.11.0] [hudbars]

by poikilos » Wed Sep 26, 2018 13:49

Linuxdirk wrote:Seems not to affect the built-in elements like health only, but also mod-added ones.

https://github.com/4w/hunger_ng/issues/5

hunger_ng's new git repo is on GitLab. If you have details about how that issue affects that mod, help the author keep track by reporting the issue again here: https://gitlab.com/4w/hunger_ng/issues unless it is a CLOSED issue: https://gitlab.com/4w/hunger_ng/issues?scope=all&utf8=%E2%9C%93&state=closed
 

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

Re: [Mod] HUD bars [1.11.0] [hudbars]

by Linuxdirk » Wed Sep 26, 2018 15:09

You can always replace “hub” with “lab” :)

https://gitlab.com/4w/hunger_ng/issues/5

There is an option hunger_ng_use_hunger_bar you can set to false in minetest.conf. This prevents the hunger bar created by Hunger NG to be shown (anything else works like before, this option just hides the hunger bar and disables the functions to change the hunger bar) in case of other mods have issues with this.

https://gitlab.com/4w/hunger_ng/blob/19 ... txt#L13-23
 

hexYeah
New member
 
Posts: 8
Joined: Wed Dec 12, 2018 02:09
In-game: hexYeah
 

User avatar
Walker
Member
 
Posts: 342
Joined: Tue Oct 03, 2017 09:22
In-game: Walker

Re: [Mod] HUD bars [2.0.0] [hudbars]

by Walker » Tue May 07, 2019 16:00

one of the players on my servers had me send this picture

Image

is this a problem with the texturepack or this mod ?
 

User avatar
Walker
Member
 
Posts: 342
Joined: Tue Oct 03, 2017 09:22
In-game: Walker

Re: [Mod] HUD bars [2.0.0] [hudbars]

by Walker » Tue May 07, 2019 16:18

Wuzzy, can you add the followed look to the Mods ?
Image

and if you have it all ready in ther, how i can enable it ?
 

User avatar
Hugues Ross
Member
 
Posts: 28
Joined: Mon May 06, 2019 22:52
GitHub: Df458

Re: [Mod] HUD bars [2.0.0] [hudbars]

by Hugues Ross » Thu May 16, 2019 21:34

I've noticed an issue with the alignment of HUD elements in this mod. After some testing, it seems like the icon texture is aligned with the top of the bar. For correct scaling, 'statbar' (and the vanilla bars) require textures that are a multiple of (or that can be cleanly multiplied to) 24. As you can see below, neither 12px nor 24px icons align properly with the progress bar:
Image

An 18px icon would be properly centered, but it won't scale correctly in other modes. As a result, making a stat icon that looks correct in all modes is quite difficult. Is there any chance that we could get the hud elements vertically aligned by their center instead of their top?
 

vincentux
Member
 
Posts: 33
Joined: Thu Mar 17, 2016 12:16
Location: France
GitHub: vincentux

Re: [Mod] HUD bars [2.0.0] [hudbars]

by vincentux » Fri May 17, 2019 08:04

Hello,
I have the same problem with bar alignment :(
windows 7
minetest 5.0.1
Attachments
Capture_02.PNG
(19.09 KiB) Not downloaded yet
 

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

Re: [Mod] HUD bars [2.0.0] [hudbars]

by Wuzzy » Fri May 17, 2019 13:21

The broken HUD bars seems to be a Windows-only problem. I have no idea why this keeps happening.
Maybe talk to the engine developers about this.

@Walker: You just need to edit the bar textures for this gradient effect.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

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

Sick-D!!
Member
 
Posts: 25
Joined: Mon Jan 12, 2015 15:36
GitHub: Sick-D
IRC: Sick-D
In-game: Sick-D

Re: [Mod] HUD bars [2.0.0] [hudbars]

by Sick-D!! » Thu Jul 04, 2019 20:24

Same Problem Here, the bars alignment is not as it should (same like vincentux) ..

is there any workaround so far ?
Some Videos in German?
https://www.youtube.com/user/SickDDubstep
Or Livestreams?
http://www.twitch.tv/sick_d

Bye bye ;)
 

Copenhagen_Bram
New member
 
Posts: 1
Joined: Sat Dec 30, 2017 16:26
GitHub: elonsatoshi
IRC: Elon_Satoshi Copenhagen_Bram
In-game: Copenhagen_Bram

Re: [Mod] HUD bars [2.0.0] [hudbars]

by Copenhagen_Bram » Wed Jul 10, 2019 20:01

Same problem experienced on Linux, specifically Ubuntu Bionic, on Minetest 5.0.1, using the game Regnum. Here's the github issue I posted about it: https://github.com/Der1248/Regnum/issues/2
 

foggyminds
New member
 
Posts: 1
Joined: Wed Sep 11, 2019 20:09

Re: [Mod] HUD bars [2.0.0] [hudbars]

by foggyminds » Wed Sep 11, 2019 20:17

FYI, so others can find the fix (and the mod can potentially be updated).

The problem with bars appearing out of alignment is an easy fix, and it was fixed way back and is back because the fix was undone (explicitly for some unknown reason).

To fix it, go into the hudbars mod folder, edit init.lua, find line 214 (where it explicitly sets the hudbar size), and change it to read "bar_size = nil"

For dev info:

Here's the commit where it was fixed: https://repo.or.cz/minetest_hudbars.git ... 502ddfaf60

Here's the commit where the fix was rolled back: https://repo.or.cz/minetest_hudbars.git ... 6aca32d23f
 

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

Re: [Mod] HUD bars [2.0.0] [hudbars]

by Wuzzy » Wed Sep 11, 2019 21:08

Oh, that's … interesting!

The reason why I reverted it is because I get a weird warning in console when the size argument is nil.
I have posted a thread about this: viewtopic.php?f=47&t=23290

Can someone with experience in modding please experiment with statbars a bit on their system if the system has broken statbars? Just to figure out what is going on in Minetest.

Because the bugfix doesn't make sense. The explicit size I specified is identical to the file size. Why making the size arg nil should fix the bug is beyond me … Maybe an engine bug? Sounds likely, since the bug is system-dependent. That's why I ask people for more research.

Sadly, I cannot help with testing, as I don't experience this bug.

PS: I just had a very silly idea: Why happens if you just flip the x and y arguments?
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

User avatar
Walker
Member
 
Posts: 342
Joined: Tue Oct 03, 2017 09:22
In-game: Walker

Re: [Mod] HUD bars [2.0.0] [hudbars]

by Walker » Fri Sep 13, 2019 16:38

ich habe häufig das problem, bzw wird es mir auch von soielern auf meinen Servern berichtet, das bei den Angabe VIELE kommastellen sind

z.B. wird bei Sättigung = 8 gerne mal Sättigung 7.999999999999999 angezeigt

ist das iwi zu fixen ?
 

jjk1
Member
 
Posts: 60
Joined: Sun Mar 10, 2019 17:00
In-game: jjk1

Re: [Mod] HUD bars [2.0.0] [hudbars]

by jjk1 » Fri Sep 13, 2019 17:11

Eigentlich sollte ja ein Runden auf 1 oder 2 Nachkommatsellen reichen. so dass z.B. statt 7,99999999999999999 nur 7,9 oder 7,99 angezeigt wird.
 

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

IMPORTANT UPDATE! Version 2.1.0

by Wuzzy » Fri Sep 13, 2019 18:02

Alright, here's an important update!

  • (hopefully) fix again the displaced progress bars on some systems
  • Allow mods to set their number format explicitly. The format_string_config argument in the API was extended with format_value and format_max_value
  • If no number format is set, the number will be rounded to the nearest integer by default

Stay tuned for the update of the hbhunger mod!

Thanks for everyone for reporting bugs and for showing me the light. :D
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

redblade7
Member
 
Posts: 259
Joined: Sun Feb 15, 2015 07:14
IRC: redneonglow redblade7
In-game: redblade7 redblade7_owner

Re: IMPORTANT UPDATE! Version 2.1.0

by redblade7 » Sat Sep 14, 2019 02:23

Wuzzy wrote:(hopefully) fix again the displaced progress bars on some systems


Thank you so much for fixing this! (Nobody on my server except me had this problem.)
-redblade7, admin of: THE CREATIVE GARDENS (creative), THE VALLEYS (sandbox), and THE DIGITAL FARMS (farming/hunger/shops)
 

User avatar
Walker
Member
 
Posts: 342
Joined: Tue Oct 03, 2017 09:22
In-game: Walker

Re: IMPORTANT UPDATE! Version 2.1.0

by Walker » Sat Sep 14, 2019 02:30

redblade7 wrote:
Wuzzy wrote:(hopefully) fix again the displaced progress bars on some systems


Thank you so much for fixing this! (Nobody on my server except me had this problem.)
you mean, nobody tells you to have this problem ^^
 

User avatar
Walker
Member
 
Posts: 342
Joined: Tue Oct 03, 2017 09:22
In-game: Walker
 

User avatar
FreeGamers
Member
 
Posts: 212
Joined: Sat May 25, 2019 00:15
Location: United States

Re: [Mod] HUD bars [2.1.0] [hudbars]

by FreeGamers » Sun Sep 15, 2019 05:58

I've received confirmations from users that use Windows on my server that the misalignment of progress_bars are now fixed.

So far on my server its been confirmed that it works fine for Windows, GNU/Linux, and Android
 

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

Previous

Return to Mod Releases



Who is online

Users browsing this forum: Google Feedfetcher and 9 guests