Project Zomboid

Project Zomboid

[B41/B42] Item Condition
92 Comments
Axiom Jun 21 @ 2:42pm 
Does this have any weird interactions with Clean Hotbar?
Dester Jun 10 @ 5:27pm 
Any known bugs with 42.9.0 and this mod??
securednul Apr 12 @ 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 Apr 5 @ 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 Mar 27 @ 5:09pm 
good
Thrice Mar 7 @ 12:43pm 
Yeah Ive had issues with filling water on this too. Even with the water fix.
Choko Mar 6 @ 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 Mar 5 @ 6:27am 
без него никуда
이도 Mar 4 @ 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 Feb 20 @ 7:15am 
How I stup a horizontal ou vertical bar?
cherry-wave Feb 16 @ 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 Feb 15 @ 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
ᴶᵃʳ Feb 15 @ 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 Feb 12 @ 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 Feb 6 @ 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 Jan 31 @ 3:16am 
@MissPriss thank you!
MissPriss Jan 30 @ 8:23pm 
For the ones having the nonstop errors (me too) use the fix mod: https://steamcommunity.com/sharedfiles/filedetails/?id=3394609418&searchtext=item+condition
Principal Spanky Jan 30 @ 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 Jan 30 @ 2:23pm 
@Leather I have the same error, it started during my play yesterday and I really didn't know what was happening.
Leather Jan 29 @ 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 Jan 27 @ 9:44pm 
Any chance to have this apply to flashlights to display battery life?
angel05 Jan 23 @ 7:59am 
Actualizan este buen mod por favor :steamhappy:
parseinteger Jan 23 @ 7:46am 
fix yer fn mod dude
Art Tippet Jan 18 @ 2:49pm 
Ciao! @Qudix.
I translated your mod into Italian, thanks for your work and for sharing it with the community!
Some Girl Jan 15 @ 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 Jan 13 @ 9:18am 
yeah in b42 when you want to water a plant with a dispenser water jug it drops a lot of errors
tilarium Jan 11 @ 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 Jan 10 @ 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 Jan 3 @ 12:28pm 
How do you get water bottles or canteens to show up in the hotbar?
Wiking Jan 3 @ 6:01am 
Ammo counter is needed
sachkebab Jan 1 @ 11:52pm 
i wonder if this can show flashlight remaining battery, great mod! thank you!
Sentient_Worm Dec 31, 2024 @ 8:14pm 
Fix available as different mod
Pugz Dec 31, 2024 @ 6:40pm 
Bug report: attaching waterbottles to the hotbar breaks the system :(
Crashdown Dec 28, 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 Dec 28, 2024 @ 2:31pm 
Barc Dec 27, 2024 @ 4:02pm 
No ammo counter?
Sick Boy Dec 27, 2024 @ 11:40am 
Shout out to Hx for the band-aid fix for this mod.
Sharky Dec 26, 2024 @ 7:12pm 
using the watering can breaks this mod hard
Abyss Dec 26, 2024 @ 5:56pm 
I get an error when trying to use the water container when farming. error is from this mod.
Bumbullbee Dec 26, 2024 @ 5:39pm 
Causing errors every couple of ticks
Laxrey Dec 26, 2024 @ 11:11am 
broken for B42
blueeyeddemon07 Dec 26, 2024 @ 2:17am 
when holding a bottle with water in it or anything that holds water a lot of errors show up
MarujaKing Dec 25, 2024 @ 7:52pm 
It is not working~ cause errors
Sick Boy Dec 25, 2024 @ 2:56pm 
This mod is busted. Do not use.
WoodyDaOcas Dec 24, 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 Dec 24, 2024 @ 9:26am 
it's not working properly, so many errors, and sometimes the hotbar just don't work
0暗羽狼0 Dec 23, 2024 @ 1:26am 
Opening the composite table will result in an inexplicable error
CarltoN. Dec 22, 2024 @ 11:00am 
currently giving thousands of errors on startup. cant use for now.