[Mod] HUD Bars [2.3.5] [hudbars]

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

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

by Wuzzy » Post

YES! I have finally been able to reproduce it! Thank you.
I'll try to fix this now.

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

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

by Wuzzy » Post

About the offset bug:
I have found some HUD element-related bugs in Minetest:

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

All my attempts to find a workaround have failed. Sorry. I guess this means I can't fix this bug for now.

User avatar
Fixer
Member
Posts: 904
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer
Location: Ukraine

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

by Fixer » Post

Wuzzy

Regarding that shifted hudbar bug I've discussed with you (https://i.imgur.com/gRbaZTA.png), to reconcile: Win7, around 86ppi display, 1280*996 window. At first I tested newest hudbars on engines from 0.4.15-dev up to newest, they all had this bug with hudbar shifting.

So I've started bisecting your mod itself, and found faulty commit: http://repo.or.cz/minetest_hudbars.git? ... 6cd8171a94 (Explicitly set statbar size for progress bars).

Have fun fixing this.

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

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

by Wuzzy » Post

I do not fix bugs which occour in -dev versions only.

User avatar
Hamlet
Member
Posts: 766
Joined: Sat Jul 29, 2017 21:09
IRC: H4mlet
In-game: Hamlet
Location: Lombardy, Italy

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

by Hamlet » Post

Italian locale file:

Code: Select all

Health = Salute
Breath = Ossigeno

# Default format string for progress bar-style HUD bars, e.g. “Health 5/20”
%s: %d/%d
Sorry but .txt attachments aren't allowed.
My repositories: Codeberg.org | My ContentDB's page

User avatar
Fixer
Member
Posts: 904
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer
Location: Ukraine

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

by Fixer » Post

Wuzzy wrote:I do not fix bugs which occour in -dev versions only.
This bug occurs on 0.4.16 stable too.

User avatar
kingoscargames
Member
Posts: 216
Joined: Fri Jul 28, 2017 12:06
GitHub: kingoscargames
In-game: kingoscargames
Location: Netherlands

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

by kingoscargames » Post

Dutch "locale" file

Code: Select all

Health = Gezondheid
Breath = Adem

# Default format string for progress bar-style HUD bars, e.g. “Health 5/20”
%s: %d/%d

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

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

by Wuzzy » Post

For everyone who has problems with displaced HUD Bars, can you please download this experimental verision and tell me if it works?:

http://repo.or.cz/minetest_hudbars.git/ ... ad59cf.zip

Translations have been added and will become part of next release. Thanks!

User avatar
kingoscargames
Member
Posts: 216
Joined: Fri Jul 28, 2017 12:06
GitHub: kingoscargames
In-game: kingoscargames
Location: Netherlands

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

by kingoscargames » Post

Wuzzy wrote:For everyone who has problems with displaced HUD Bars, can you please download this experimental verision and tell me if it works?:

http://repo.or.cz/minetest_hudbars.git/ ... ad59cf.zip

Translations have been added and will become part of next release. Thanks!
Yes, it works: Image
Attachments
screenshot_20170918_165641.png
screenshot_20170918_165641.png (565.99 KiB) Viewed 1547 times

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

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

by Wuzzy » Post

Oh, can you also tell me if any warnings pop up in your debug log / console? If you start Minetest, then quit and just post the last ca. 100 lines of debug.txt, that would be nice. :-)

User avatar
kingoscargames
Member
Posts: 216
Joined: Fri Jul 28, 2017 12:06
GitHub: kingoscargames
In-game: kingoscargames
Location: Netherlands

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

by kingoscargames » Post

Wuzzy wrote:Oh, can you also tell me if any warnings pop up in your debug log / console? If you start Minetest, then quit and just post the last ca. 100 lines of debug.txt, that would be nice. :-)
I renamed my debug.txt and opened a testing world where this mod was installed on:
Spoiler
-------------
Separator
-------------

2017-09-18 17:04:14: ERROR[Main]: Irrlicht: Switch to fullscreen: The graphics mode is not supported.
2017-09-18 17:04:17: ERROR[Main]: The following mods could not be found: "abriglass"
2017-09-18 17:04:17: WARNING[Main]: NodeDefManager: Ignoring CONTENT_IGNORE redefinition
2017-09-18 17:04:17: ACTION[Main]: hb.register_hudbar: health
2017-09-18 17:04:17: ACTION[Main]: hb.register_hudbar: breath
2017-09-18 17:04:18: ACTION[Main]: .__ __ __
2017-09-18 17:04:18: ACTION[Main]: _____ |__| ____ _____/ |_ ____ _______/ |_
2017-09-18 17:04:18: ACTION[Main]: / \| |/ \_/ __ \ __\/ __ \ / ___/\ __\
2017-09-18 17:04:18: ACTION[Main]: | Y Y \ | | \ ___/| | \ ___/ \___ \ | |
2017-09-18 17:04:18: ACTION[Main]: |__|_| /__|___| /\___ >__| \___ >____ > |__|
2017-09-18 17:04:18: ACTION[Main]: \/ \/ \/ \/ \/
2017-09-18 17:04:18: ACTION[Main]: World at [C:\Users\Oscar \Desktop\minetest\minetest-0.4.16-win64\bin\..\worlds\mtg]
2017-09-18 17:04:18: ACTION[Main]: Server for gameid="minetest" listening on 0.0.0.0:54179.
2017-09-18 17:04:19: WARNING[Main]: Irrlicht: PNG warning: iCCP: known incorrect sRGB profile
2017-09-18 17:04:19: WARNING[Main]: Irrlicht: PNG warning: iCCP: cHRM chunk does not match sRGB
2017-09-18 17:04:19: WARNING[Main]: Irrlicht: PNG warning: iCCP: known incorrect sRGB profile
2017-09-18 17:04:19: WARNING[Main]: Irrlicht: PNG warning: iCCP: cHRM chunk does not match sRGB
2017-09-18 17:04:19: WARNING[Main]: Irrlicht: PNG warning: iCCP: known incorrect sRGB profile
2017-09-18 17:04:19: WARNING[Main]: Irrlicht: PNG warning: iCCP: cHRM chunk does not match sRGB
2017-09-18 17:04:19: WARNING[Main]: Irrlicht: PNG warning: iCCP: known incorrect sRGB profile
2017-09-18 17:04:19: WARNING[Main]: Irrlicht: PNG warning: iCCP: cHRM chunk does not match sRGB
2017-09-18 17:04:19: WARNING[Main]: Irrlicht: PNG warning: iCCP: known incorrect sRGB profile
2017-09-18 17:04:19: WARNING[Main]: Irrlicht: PNG warning: iCCP: cHRM chunk does not match sRGB
2017-09-18 17:04:20: WARNING[Main]: Irrlicht: PNG warning: iCCP: known incorrect sRGB profile
2017-09-18 17:04:20: WARNING[Main]: Irrlicht: PNG warning: iCCP: cHRM chunk does not match sRGB
2017-09-18 17:04:20: WARNING[Main]: Irrlicht: PNG warning: iCCP: known incorrect sRGB profile
2017-09-18 17:04:20: WARNING[Main]: Irrlicht: PNG warning: iCCP: cHRM chunk does not match sRGB
2017-09-18 17:04:26: ACTION[Server]: singleplayer [127.0.0.1] joins game.
2017-09-18 17:04:26: ACTION[Server]: singleplayer joins game. List of players: singleplayer
2017-09-18 17:04:46: ERROR[Main]: Irrlicht: Switch to fullscreen: The graphics mode is not supported.
2017-09-18 17:04:46: ERROR[Main]: Irrlicht: Switch to fullscreen: The graphics mode is not supported.
2017-09-18 17:05:00: ACTION[Server]: singleplayer digs doors:door_steel_a at (-109,11,-578)
2017-09-18 17:05:02: ACTION[Server]: singleplayer digs doors:door_steel_a at (-109,11,-577)
2017-09-18 17:05:02: ACTION[Server]: singleplayer digs doors:door_steel_a at (-109,11,-578)
EDIT: I hope no one saw my full name:P

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

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

by Wuzzy » Post

Version 1.10.0 released!

Changes:
- Bugfix: The progress bar was displaced for some people
- Add Italian and Dutch translation (thanks, Hamlet and kingoscargames)
- MIT License
- Update deprecated intllib code


Sorry for the long wait. :-(
I wan't sure if the bug really existed.

User avatar
Lone_Wolf
Member
Posts: 2575
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

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

by Lone_Wolf » Post

Wuzzy wrote:Version 1.10.0 released!

Changes:
- Bugfix: The progress bar was displaced for some people
- Add Italian and Dutch translation (thanks, Hamlet and kingoscargames)
- MIT License
- Update deprecated intllib code


Sorry for the long wait. :-(
I wan't sure if the bug really existed.
Works now. Thanks!
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

User avatar
Fixer
Member
Posts: 904
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer
Location: Ukraine

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

by Fixer » Post

Can confirm 1.10.0 fixed my issue with displaced hudbar both on 0.4.16 stable and on latest 0.5.0-dev. Thank you.

User avatar
v-rob
Developer
Posts: 969
Joined: Thu Mar 24, 2016 03:19
GitHub: v-rob
IRC: v-rob
Location: Right behind you.

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

by v-rob » Post

Fixed! This makes me very happy.
Core Developer | My Best Mods: Bridger - Slats - Stained Glass

ussr
New member
Posts: 1
Joined: Tue Sep 19, 2017 22:45

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

by ussr » Post

Wuzzy wrote:This e-mail address is correct. If I fail to respond, you can also contact me per forum PM or XMPP. I personally prefer XMPP.
My e-mail reading discipline is probably too low at the moment. This is my fault, and I should really get my shit together. :D I haven't found your e-mail, however. Probably I lost it (not sure).
I can't connent you via Jabber, Wuzzy

User avatar
AntumDeluge
Member
Posts: 213
Joined: Sun Aug 07, 2016 05:42
GitHub: AntumDeluge
IRC: AntumDeluge
Contact:

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

by AntumDeluge » Post

Sorry I haven't been available for testing Wuzzy.
Wuzzy wrote:For everyone who has problems with displaced HUD Bars, can you please download this experimental verision and tell me if it works?
I installed the current Git commit on my Android device. Hudbar alignment with outline border is fixed. Noticed that text is still drawn slightly outside the bottom of the hudbar border. Not by much & not sure if it is even a hudbar issue as text alignment seemed to be fine for Microsoft Windows users.

Previous alignment:
Image

Current alignment @ Git commit bec8afe:
Image

Note: I'm not worried about the fact that the hudbar is overlapping the hotbar. I believe that can be adjusted with a configuration setting, correct?

System information:
OS: Android 7.1.2 (Lineage OS 14.1-20170725-NIGHTLY-harpia)
Device: Motorola Moto G4 Play
Minetest client: 0.4.16 (official Android build from Google Play store)
Attachments
Alignment @ Git commit bec8afe
Alignment @ Git commit bec8afe
tmp_28445-minetest-hudbars-02-bec8afe1553856130.png (258.41 KiB) Viewed 1547 times
Previous alignment
Previous alignment
tmp_28445-minetest-hudbars-001810204397.png (205.21 KiB) Viewed 1547 times

User avatar
acidzebra
Member
Posts: 75
Joined: Sun Sep 10, 2017 09:11

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

by acidzebra » Post

Great mod, thank you!

I wanted to disable the text fields on the progress_bar type (so only the bars themselves show) but could not readily find a setting like "disable_text". I ended up hacking through the mod and replacing a bunch of text= and new_text= vars with "" and by some miracle I didn't completely destroy it:
Image
with a color gradient applied to the bars:
Image
edit: I went through a second time and opted to just set blank values for label and format_string everywhere, that seemed safer.

Anyway for the "no text" option did I miss an obvious setting, and if not, would this something be you'd consider as a
setting?

User avatar
burli
Member
Posts: 1643
Joined: Fri Apr 10, 2015 13:18

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

by burli » Post

Is is possible to show hudbars if damage is disabled? I know there is hudbars_forceload_default_hudbars and I know that it is
Experimental setting: Changing this setting is not officially supported, do NOT rely on it!
I also know you don't support bleeding edge versions of Minetest.

But is it possible to show the hudbars anyway if damage is disabled?

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

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

by Wuzzy » Post

You CAN show HUD bars when damage is disabled, just not the health and breath bars as you have neither health nor breath in this mode.

I added a Malay translation in version 1.11.0 (thanks, muhdnurhidayat!).

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

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

by Linuxdirk » Post

Any idea why a custom registered HUD bar does not have a frame like the “default HUD bars”? I even added the bgimage definition (using the same image as bar image it works and the image is shown as bar image).

Edit: Found it.

When using player:hud_remove() on an HUD element that is not created by hudbars after a HUD bar was initiated it loses it’s background, but only if it was the first created HUD bar.

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

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

by texmex » Post

Heads up of incompatibility with current HEAD, Wuzzy:

Image
Attachments
Skärmavbild 2018-02-18 kl. 12.30.42.png
Skärmavbild 2018-02-18 kl. 12.30.42.png (19.53 KiB) Viewed 1547 times

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

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

by Wuzzy » Post

Thanks for letting me now. This has to wait for the next MT release, unless the problem fixes itself in the meantime. ;-)

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

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

by Linuxdirk » Post

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

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

Punk
Member
Posts: 158
Joined: Sun Dec 25, 2016 06:52

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

by Punk » Post

GitHub, I miss you!

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests