Project Zomboid

Project Zomboid

Minimal Display Bars + Nutritions + Discomfort [B41/B42]
140 Comments
Sur.Vival 26 Aug @ 6:22pm 
Thanks for the pointers! I’m on Build 42. I haven’t changed any graphics settings. I play at 4K (3840×2160) in borderless mode all the time.

When the white dot/button disappeared, my MOD Config Options (MinimalDisplayBarsNutritions).lua showed:

["menu"] = {
["x"] = 27;
["y"] = 647;
}

It happens sporadically without me touching anything. If there’s anything else useful I can capture (logs, sandbox vars, resolution scale, etc.), let me know and I’ll grab it the next time it occurs.
Vorshim  [author] 26 Aug @ 2:17am 
I'm not sure which PZ version you're running (41 or 42), but here's how to debug this issue:
Navigate to your Project Zomboid lua folder and open the MOD Config Options (MinimalDisplayBarsNutritions).lua with a text editor
Look for the white dot (menu) configuration settings:
["menu"] = {
["x"] = 240,
["y"] = 25,
ecc
}
When the white dot disappears, could you check what values these coordinates show?
The issue might be related to the positioning coordinates getting corrupted or reset. If the values change when it disappears, that would confirm it's a positioning bug rather than a rendering issue.
It's probably something related to screen resolution. I remember when I switched from a 4K to a 1080p monitor, something similar happened. It's strange that it happens to you sporadically without any apparent reason though. You're not modifying/touching any graphics settings, right?
Let me know what you find and I can help troubleshoot further!
Sur.Vival 25 Aug @ 3:58pm 
Thanks for your advice, it does fix the issue, but after some time it happens again and again. Any advice for the root cause of that?
Vorshim  [author] 25 Aug @ 9:33am 
uhm. i think is for a bad position. probably for a resolution problem or something like that. i suggest to delete MOD Config Options (MinimalDisplayBarsNutritions)B42.lua in Zomboid/Lua folder of the User directory
Sur.Vival 25 Aug @ 7:36am 
I found that the square button disappeared. Is it because of a conflict with another mod, or is there any hotkey I can use to toggle it?
Dr. Diesel Submarine 20 Aug @ 5:26am 
Thank you for your work :spiffo:
Vorshim  [author] 8 Aug @ 4:22pm 
Hi! I’ve just pushed the update now. The only thing I haven’t had a chance to work on and fix yet is the stress bar, which unfortunately doesn’t reach the maximum when it’s at 1, as you pointed out. I’ll fix it as soon as I can.

<3
SynkaY 8 Aug @ 1:53pm 
Hello!
Do you know when we can expect an update for this mod ? With the fixed discomfort and added sickness bar the comments have mentioned ?
Kaaaaaaarl 16 Jul @ 2:37pm 
Done. Apologies if I didn’t do it correctly - I’ve never used github before (though it’s been long overdue, lol).
Vorshim  [author] 16 Jul @ 12:55pm 
Kaaaaaaarl 16 Jul @ 1:44am 
I managed to add it myself. I can send you the files if you'd like to look over them and see if you want to update the mod page.
Kaaaaaaarl 15 Jul @ 4:28pm 
I agree with the comment below. Having a sickness bar would be great. This would let us see if taking antibiotics, lemongrass and other things actually help lower our sickness, as well as see if it keeps growing.
An ordinary saltshaker 12 Jul @ 1:21am 
Is it possible to get a bar for corpse sickness? I don't know if it's a get'able parameter but just asking if at all possible. the mod has been helping me since b41, so thanks for making a b42 counterpart before the original creator.
Vorshim  [author] 7 Jun @ 4:47pm 
I'm sorry, but I really don't know how to help you. From your list of mods and the image you sent, it looks like it was enabled (in that context), but nothing shows up in-game. However, the errors you're showing with the red magnifying glass have nothing to do with it. It makes me wonder if it's really enabled in the save you're loading. Have you tried starting a new game from scratch to see if it works?
Maybe the save you're loading doesn't have the mod active, and you're enabling it incorrectly?
Daytona 7 Jun @ 8:38am 
This is what my game looks like

https://imgur.com/a/BUcjGOW
Daytona 7 Jun @ 8:33am 
I dont get this mod working. It doesnt show up during playing at all. What do i do wrong?

I check the mod in the modlist before starting a game and i let the mods autosort.
Dr.Livsey 15 May @ 10:55am 
Nice moods!
SynkaY 13 May @ 5:39am 
No problems! Glad I could help! Looking forward to seeing it fixed!

If you need any other info or help just tell me :)
Vorshim  [author] 12 May @ 4:18pm 
Alright, thanks Synka!! Forget the description,I had forgotten about that line. I’ve deleted it.
I just noticed while jumping into the game that when I set base stress to 1, it only fills about 3/4 of the bar. I thought I had already fixed that. Since I split the stress portion from cigas (0.51) into the overlapping bar with a different color, it shouldn’t behave like that.
I’ll take a look at it as soon as I get a moment! Thanks ;)
SynkaY 12 May @ 3:32pm 
I'm referring to this specifically :

Even if the stress value exceeds 1 due to smoking, it will be capped at 1 for visual clarity.

The bar is NOT capped at 1 and instead goes up to 1,51. Which messes up the thersholds in it, here's what it looks like : https://imgur.com/a/DusCCse
Vorshim  [author] 12 May @ 10:27am 
thanks for the feedback! for stress from cigarettes I already did something cool as mentioned in description:
New Stress Level Bar

A Stress Level Bar has been added, which also accounts for stress caused by smoking cigarettes.

The bar will include dual coloring to distinguish the stress caused by cigarettes from the base stress level.
SynkaY 12 May @ 6:51am 
Of course!
As for the stress, i'm pretty sure it's because the bar isn't capped at 1 like it's said. It actually goes up to 1,51 because of the added stress from cigarettes. I actually took some screenshots if that can help but i don't know where to share them for you to see
Vorshim  [author] 12 May @ 12:27am 
thanks! stress lvl is already 25,50,75,90 thanks ;)
SynkaY 11 May @ 7:03am 
Hello hello!
Just checked and yes, these are the correct values for the different levels of discomfort! But it's just the threshold indicator that is off for the discomfort

One thing I noticed is that the stress thersholds also seems to be off but I don't play with the smoker trait so I'm not sure how the stress from cigarettes and "normal" stress is handled by the mod

A quick test in debug mode tells me these are the different Stress moodle thersholds, if that's of any help :
Above 0.25 : Stress level 1
Abovc 0.50 : Stress level 2
Above 0.75 : Stress level 3
Above 0.90 : Stress level 4
Vorshim  [author] 10 May @ 4:05pm 
hello SynkaY! Yes. I think it is possible to fix.
20-40-60-80 is right?

["discomfortlevel"] = {
[1] = calcDiscomfortLevel(20),
[2] = calcDiscomfortLevel(40),
[3] = calcDiscomfortLevel(60),
[4] = calcDiscomfortLevel(80),
SynkaY 10 May @ 1:23pm 
Hello there! It seems the discomfort bar is off to some extent.
Got the lvl 2 discomfort moodle (0.4) before the bar reached the 2nd thershold (0.45), do you think you can fix that by any chance ?
bboy_damo 21 Mar @ 5:13am 
bboy_damo 21 Mar @ 5:11am 
The only changes I've made are x y cordinates, from vertical to horizontal, expanded height and width, show icon, and increased icon size. There aren't any advanced options in the Build 42 version.
Vorshim  [author] 21 Mar @ 1:42am 
DEFAULT SETTINGS is normally regenerated at every startup. If the mod is updated and changes are made, they need to be reflected in that table.

The config option, on the other hand, only ensures at startup that it has the same structure as DEFAULT SETTINGS, but it is not overwritten. Unless there is something new—then it simply adds that new part from DEFAULT SETTINGS.

So, for example, if I add a new bar, you would see it thanks to this process. However, your configuration always remains the same.
Vorshim  [author] 21 Mar @ 1:41am 
I have to tell you the truth, this behavior you're experiencing seems very strange to me. If it were really as you say, that it resets every time your personal configuration ("MOD Config Options (MinimalDisplayBarsNutritions)B42.lua"), then everyone (myself included) would have the problem of having to reconfigure it every time they enter, and that doesn’t seem to be the case. No one has reported this bug, neither myself nor my server with 40 players online.
As far as I remember, the code for versions 42 and 41 is completely identical, except for a single line of code. So what I can say is that there might be some change or adjustment you're making during customization that is breaking something—that is definitely possible.
What kind of modifications have you made to the bars so far? Let’s try to trace the issue. In the meantime, as soon as I have 5 minutes, I'll hop into version 42 in single-player mode and run a test myself! ;) ❤️
bboy_damo 20 Mar @ 9:03pm 
So I assumed that at game start it was overwriting MOD Config Options (MinimalDisplayBarsNutritions)B42.lua with the values from MOD DefaultSettings (MinimalDisplayBarsNutritions)B42.lua, so I compared the files and saw the syntax was the same, just with some different values. So I figured, well I can just copy the values I want into MOD DefaultSettings (MinimalDisplayBarsNutritions)B42.lua, assuming that's where the values are being pulled from on game start. To my disappointment I discovered that MOD DefaultSettings (MinimalDisplayBarsNutritions)B42.lua is also being reset to default on game start.
At this point the ins and outs of how your mod functions is above my knowledge, as I don't have any idea where it's pulling the original setting from, and it seems clear that it's not working as you intended as MOD Config Options (MinimalDisplayBarsNutritions)B42.lua and MOD DefaultSettings (MinimalDisplayBarsNutritions)B42.lua aren't storing persistant config data.
bboy_damo 20 Mar @ 9:03pm 
OK, tested in game and there is a problem. It probably would have worked, if the mod was working as you intended, but instead here's what I discovered.
First I found out that MOD Config Options (MinimalDisplayBarsNutritions)B42.lua was getting reset to the default setting on game start, wiping out all configuration changes. Pretty sure that's not how it's supposed to work. Luckily I was able to revert those changes to that file because I had it open in Notepad++ and didn't reload it when prompted to that it had changed, so I was able to resave it.
bboy_damo 20 Mar @ 8:18pm 
Thanks for the advice. Didn't test it yet in game, but since most of them were already configured doing the last four was easy to figure out what the values should be, and it gave me the ability to line things up perfectly.
Vorshim  [author] 20 Mar @ 12:03pm 
uh! i need to move default position a little bit for 42 i think. because icon size now is scaled with resolution. anyway u can change that position for that bars directly from MOD Config Options (MinimalDisplayBarsNutritions)B42.lua file in C:\Users\NAME\Zomboid\Lua
bboy_damo 20 Mar @ 4:23am 
On Build 42, I'm having trouble with this mod.
I can't get to 4 of the bars because they're behind the vanilla icons.
https://staticdelivery.nexusmods.com/images/583/2695294-1742469631.jpg
And I have different context menu options, most importantly the ones that would have let me drag out all the bars together.
https://staticdelivery.nexusmods.com/images/583/2695294-1742469679.jpg
How do I fix this, or the issue on your end?
Dimossa 16 Mar @ 12:03pm 
yep, doesnt seem to be operational anymore...B42
Vorshim  [author] 6 Mar @ 4:22pm 
Are you using it on a dedicated server, or are you hosting the game? Did you install the mod correctly? Maybe you installed another mod that is causing a conflict?
If you can provide some information and check for errors in the console.txt file (the log file, you can also send it to me via a link if you want).
The mod doesn’t generate any errors, so if you are experiencing issues, it’s either another mod or some kind of incompatibility with something unrelated to my mod. ;)
PEEKAB0O M0THFCUKER 6 Mar @ 11:39am 
it does work, but it does have error message for mp, it basically sayings its trying to display for other players that isn't online, can i ignore that? thank you for the mods btw
Vorshim  [author] 3 Mar @ 12:27pm 
Hey guys! I really don’t know how to help you. The mod works perfectly for everyone. You’re definitely doing something wrong (I assume you’re in single-player mode). I, like the other thousands of subscribers, have no issues in any way. Try looking for a guide on how to install mods or describe your problem better. Sorry I can’t do more. <3
Yngvi 3 Mar @ 10:24am 
It worked yesterday and now it doesn't work anymore :<<<
RobciuBobciu 27 Feb @ 10:47am 
why it doesnt work :(
Rex87 23 Feb @ 9:40am 
hi I would like to suggest 1 thing to add to this mod because it is something that bothers me a bit and would make the mod so much better

thing I would really like to see it to fully lock the bars from interacting with them at all, so no moving as we got currently and no hover to show stats because this locks me from attacking etc because bars are in the way, I like the bars to be big and I like to have stamina bar in center kinda like Valheim has because it's always visible and it's the most important bar in combat etc, but often I hover my mouse over them in combat and they cancel attacking

also I think would be nice to add way to hide settings button, put settings under hotkey maybe or in mod settings where most mods also have their settings, it's the best and most customizable mod to show stats and I really would like to see it be even better
nomad 21 Feb @ 7:36am 
Are you able to turn the moodles above the bars off? I miss the old minimal display bars and am reluctant to move on, but I just can't see myself using this simply because the way the pictures look are so cluttered...
Also, outside of that complaint, does this mod work like Minimal Display Bars functionally? can i turn off bars I don't want on?
Dhars 16 Feb @ 11:23am 
@Vorshim Hey, just wanted to let you know that switching icon position to "Right" doesn't save its position, it defaults to left on game load. Every other addition you've added works perfectly, thank you. I have a suggestion, maybe a little redundant, but would there be a way to set it to toggle some bars off when inside of a vehicle? For any horizontal bar layouts that go above the actionbar, they get covered by the vehicle HUD but it's still partially visible so it looks a little odd.
Yaltiaj 16 Feb @ 5:29am 
The first screenshot threw me off. I thought it was that spread out in-game, but that was not the case. Essentially a 1 to 1 match with the B41 minimal display after loading it. Sorry about the incorrect criticism. Thank you for updating this to B42.

Might be worth adding a screenshot to show how compact it actually is to avoid confusing idiots such as myself although it seems like I'm the only tard here lol.
Vorshim  [author] 16 Feb @ 3:48am 
Hi @Suicide Is Badass!
What do you mean it takes up more space compared to version 41?? The mod is identical between 41 and 42; there’s absolutely no difference. Could you somehow show me a screenshot of what you mean? Nobody has complained, so I suspect there might be something unusual in your configuration. Thank you so much! ;)
Yaltiaj 15 Feb @ 6:05pm 
This eats up way more of the screen than it needs to. I'd seriously consider either making the interface more compact like the original B41 version or putting a toggle to make it compact.
Rex87 12 Feb @ 2:59pm 
I would also like more bars, Maximum Bars mod was really cool with all these features it had, you already added more which helps track everything and I wish Vanilla also had bars and not just moodles to track stats

also I have suggestion but not sure if it's hard to implement something like this or not but instead of having little lines on bars to show thresholds entire bar could show the stage, by that I mean for example endurance, has 3 stages for 25% so entire bar would show first stage and when reaches 0% it would start again from 100% on next stage of exertion etc
Vorshim  [author] 12 Feb @ 1:20pm 
@JAMMY. Sincerely I don't know. too many bars XD
II'll think about it. Promise.