Project Zomboid

Project Zomboid

Minimal Display Bars + Nutritions + Discomfort [B41/B42]
127 Comments
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.
Jammy 12 Feb @ 11:46am 
Any chance adding tracking of Pain, Sickness, or Panic?
Vorshim  [author] 12 Feb @ 10:31am 
for b42.3.0 autodrink (nutritions = nan) problem. install my fix mod
https://sp.zhabite.com/sharedfiles/filedetails/?id=3426165280
Vorshim  [author] 12 Feb @ 7:03am 
until I found a solution to Autodrink event problem everytime you'll refill a bottle when you are thirsty and autodrink is enabled you will get nan problem, but my mod will restore to default everyvalue that is nan. I'm already working on autodrink hook problem. I found the bug. Hope i will find a fix
wilds 12 Feb @ 6:35am 
thanks Vorshim, your solution worked! :steamhappy: great job!

The calories bar is back , lipids carbo proteins at 33%
I'll check how it works when I next refill a bottle
Vorshim  [author] 12 Feb @ 6:13am 
NEW UPDATE IS OUT!
fix icon position saving and hide/show for single icon

fix a well know vanilla bug where the NaN temperature spreads across servers like a virus, infecting players through bugged clothing. I'll be posting it soon—it's basically a kind of vaccine. Anyone using my status bars mod will have this vaccine included, preventing the virus from spreading and curing all affected players and worn bugged clothing, gradually fixing all bugged clothes permanently. :)

This update will also "fix" two bugs in version 42.3.0:

When you drink, thirst can go below 0 into negative values. My mod will block it at 0 to prevent issues.
When autodrink is enabled, refilling a bottle at a sink will set all nutritional values (such as proteins, carbohydrates, etc.) to NaN.
Currently, my mod doesn't fully fix the autodrink issue (I'm working on a solution), but at least it restores the affected values to their default settings when the bug occurs, so you won't stay bugged.
Vorshim  [author] 12 Feb @ 3:45am 
thanks wilds! i already saw that reddit post thanks.
I was already working on a possible solution for a well-known (apparently vanilla) bug where the NaN temperature spreads across servers like a virus, infecting players through bugged clothing. I'll be posting it soon—it's basically a kind of vaccine. Anyone using my status bars mod will have this vaccine included, preventing the virus from spreading and curing all affected players and worn bugged clothing, gradually fixing all bugged clothes permanently. :)

As soon as I'm done, I'll take a quick look at this new issue in version 42.3.0 and try to implement a temporary fix for it as well. What exactly is bugging out? Just calories/lipids?
wilds 12 Feb @ 3:23am 
hi, thanks for the mod

It seems the NaN problem is not from this mod, the 42.3 update broke character nutrion values when you char is thirsty
There is a reddit post to debug-fix it, but is temporary till the dev fix it
Vorshim  [author] 12 Feb @ 2:43am 
Sorry! I thought you meant the mod update, while you were actually talking about the 42.3 update xD I hadn't seen that the update was out! Okay, I'll check it out right away! Thank you so much, guys! <3
z0ntir 11 Feb @ 6:55pm 
Build 42. The recent update broke to me too the calories/lipids count. Now, it only says 'na'. Playing single player
Vorshim  [author] 11 Feb @ 3:00pm 
b41 or b42?
Vorshim  [author] 11 Feb @ 2:58pm 
I haven't touched anything in the code with the latest updates.
What you're experiencing is a well-known vanilla bug that causes some player stats to go "null," making the bar not work as a result.
Are you playing on a server or in singleplayer?
Ziodyne967 11 Feb @ 2:53pm 
The recent update broke the calories/lipids count. Now, it only says 'na'. It's weird.
Vorshim  [author] 10 Feb @ 6:35am 
sorry @Dhars
I pushed the wrong update haha
I will push it again soon, I don’t want to trigger too many server restarts on the servers using this mod.
Maybe I’ll push it again tonight with the fix ;)