Project Zomboid

Project Zomboid

[B41/B42] Item Condition
92 Comments
Axiom 21 Jun @ 2:42pm 
Does this have any weird interactions with Clean Hotbar?
Dester 10 Jun @ 5:27pm 
Any known bugs with 42.9.0 and this mod??
securednul 12 Apr @ 9:39pm 
`function: GetItemCondition -- file: ItemConditionUtil.lua line # 45 | MOD: Item Condition
function: render -- file: ItemConditionHotbar.lua line # 16 | MOD: Item Condition
function: reorder_render -- file: ReorderTheHotbar_ISHotbar.lua line # 370 | MOD: Reorder The Hotbar
`
marshmallow justice 5 Apr @ 8:16pm 
ppl say the original weapon condition indicator not compatible with mp in the earlier pages of the comment section, how? i been using it on my server and my clients say they can see it
cheps 27 Mar @ 5:09pm 
good
Thrice 7 Mar @ 12:43pm 
Yeah Ive had issues with filling water on this too. Even with the water fix.
Choko 6 Mar @ 1:21am 
Hi there is a bug in this mod regarding some water containers, I tried to fill one and the game gave me all kinds of errors. Needs to update! This mod is great so I hope you do it! TY
Egorchck 5 Mar @ 6:27am 
без него никуда
이도 4 Mar @ 12:26am 
@ᴵˡˡᵘˢⁱᵛᵉ ᴹᵃⁿ That bug is already fixed by Hx. Research 'Item Condition Fix' mod by Hx.
When you put a flask of water on your belt, there are a lot of errors and the entire interface breaks, the problem is with displaying a container of water, when you turn off the mod, everything is fine, that's such an interesting bug.
D.M 20 Feb @ 7:15am 
How I stup a horizontal ou vertical bar?
cherry-wave 16 Feb @ 4:47am 
Heyo, I remember for b41 that whenever condition was lowered it displayed a text above your character, was it this mod and its just missing or was it another one?
gamer3000as 15 Feb @ 5:57am 
i play this mod with authentic Z and when i upgrade any backpack to the level max and i want to add a bottle of water (or any bottle of water like canteens and that) The object bar becomes transparent and the images disappear and errors start appearing like crazy. idk if is this mod
ᴶᵃʳ 15 Feb @ 3:28am 
are canteens still bugged with this? wanna add it but with the last few comments its really making me not wanna sub
Agent X Top Secret 12 Feb @ 4:03am 
Hello nice mod but if i add a canteen to my hotbar i get error DDoSed!


function: GetItemCondition -- file: ItemConditionUtil.lua line # 45 | MOD: Item Condition
function: render -- file: ItemConditionHotbar.lua line # 16 | MOD: Item Condition
function: reorder_render -- file: ReorderTheHotbar_ISHotbar.lua line # 370 | MOD: Reorder The Hotbar
java.lang.RuntimeException: Object tried to call nil in GetItemCondition
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82)

(the error message is much longer)
Marc0ENP 6 Feb @ 12:53pm 
Everything good I added a canteen to my hotbar, continous errors popping up and didnt display the image of what I had on the hotbar
Lamouchemasquee 31 Jan @ 3:16am 
@MissPriss thank you!
MissPriss 30 Jan @ 8:23pm 
Principal Spanky 30 Jan @ 2:32pm 
To those of you bitchin, no one owes you a mod or their labor just so ya know. Fix it yourself if you're so upset.
Lamouchemasquee 30 Jan @ 2:23pm 
@Leather I have the same error, it started during my play yesterday and I really didn't know what was happening.
Leather 29 Jan @ 8:17am 
Mod worked fine until recently, non stop continuous red errors in the bottom right corner. Not sure what happened to cause this. Disabling mod stopped the continuous error popup.
PŌPPINGUMMY 27 Jan @ 9:44pm 
Any chance to have this apply to flashlights to display battery life?
angel05 23 Jan @ 7:59am 
Actualizan este buen mod por favor :steamhappy:
parseinteger 23 Jan @ 7:46am 
fix yer fn mod dude
Art Tippet 18 Jan @ 2:49pm 
Ciao! @Qudix.
I translated your mod into Italian, thanks for your work and for sharing it with the community!
Some Girl 15 Jan @ 11:37pm 
so theres a bug fix for this mod finally eh, could the dev maybe get in touch with the guy to put the fix in so a 2nd mod isnt needed for this gem of a mod?
Dubkito 13 Jan @ 9:18am 
yeah in b42 when you want to water a plant with a dispenser water jug it drops a lot of errors
tilarium 11 Jan @ 12:08pm 
Causes a running error tick anytime a liquid container is attacked to belt or other webbing that gives it a hot bar slot
Penumbra 10 Jan @ 4:52am 
@Pigz ah so that's why the mod suddenly started spamming error messages.... I had to disable the mod because of this. Also, I second the idea of adding an ammo count
Mr. Sinister 3 Jan @ 12:28pm 
How do you get water bottles or canteens to show up in the hotbar?
Wiking 3 Jan @ 6:01am 
Ammo counter is needed
sachkebab 1 Jan @ 11:52pm 
i wonder if this can show flashlight remaining battery, great mod! thank you!
Sentient_Worm 31 Dec, 2024 @ 8:14pm 
Fix available as different mod
Pugz 31 Dec, 2024 @ 6:40pm 
Bug report: attaching waterbottles to the hotbar breaks the system :(
Crashdown 28 Dec, 2024 @ 5:33pm 
@Hx - are you able to add the feature of the B41 version where the weapon slot will "flash" when the condition drops? As well as things like flashlight battery remaining life?
Hx 28 Dec, 2024 @ 2:31pm 
Barc 27 Dec, 2024 @ 4:02pm 
No ammo counter?
Sick Boy 27 Dec, 2024 @ 11:40am 
Shout out to Hx for the band-aid fix for this mod.
Sharky 26 Dec, 2024 @ 7:12pm 
using the watering can breaks this mod hard
Abyss 26 Dec, 2024 @ 5:56pm 
I get an error when trying to use the water container when farming. error is from this mod.
Bumbullbee 26 Dec, 2024 @ 5:39pm 
Causing errors every couple of ticks
Laxrey 26 Dec, 2024 @ 11:11am 
broken for B42
blueeyeddemon07 26 Dec, 2024 @ 2:17am 
when holding a bottle with water in it or anything that holds water a lot of errors show up
MarujaKing 25 Dec, 2024 @ 7:52pm 
It is not working~ cause errors
Sick Boy 25 Dec, 2024 @ 2:56pm 
This mod is busted. Do not use.
WoodyDaOcas 24 Dec, 2024 @ 5:12pm 
found a fix for a water canteen, probably other water containers, if there are any that fit on the belt.

B:\SteamLibrary\steamapps\workshop\content\108600\2852309899\mods\qdx_item_condition\42\media\lua\client\qdx\item_condition\ItemConditionUtil.lua


function ItemCondition.Util:GetItemCondition(a_item)
if not a_item then
return 0.0
end

local condition = 0.0

if self:IsItemHandWeapon(a_item) then
if not a_item.getCondition or not a_item.getConditionMax then
return 0.0
end
local percent = a_item:getCondition() / a_item:getConditionMax()
condition = ItemCondition.Math:Clamp(percent, 0.0, 1.0)
elseif self:IsItemWaterSource(a_item) then
if not a_item.getUsedDelta then
return 0.0
end
condition = ItemCondition.Math:Clamp(a_item:getUsedDelta(), 0.0, 1.0)
else
print("GPTDEBUG: Item type is not supported for condition calculation")
end

return condition
end
Murilo Melo 24 Dec, 2024 @ 9:26am 
it's not working properly, so many errors, and sometimes the hotbar just don't work
0暗羽狼0 23 Dec, 2024 @ 1:26am 
Opening the composite table will result in an inexplicable error
CarltoN. 22 Dec, 2024 @ 11:00am 
currently giving thousands of errors on startup. cant use for now.