Project Zomboid

Project Zomboid

Common Injuries
BearAE 11 Feb, 2023 @ 7:13pm
Bug Report
Sorry, this one is too long for a normal comment so I'll have to put it in here.
Was taking apart a bed, wearing some modded clothes rest of its vanilla.
If you need anymore info let me know.

function: getValidCloth -- file: CMcore.lua line # 110 | MOD: Common Injuries function: TryDamage -- file: CMcore.lua line # 195 | MOD: Common Injuries function: perform -- file: CMcore.lua line # 236 | MOD: Common Injuries function: perform -- file: ISMoveablesAction.lua line # 171 | Vanilla java.lang.RuntimeException: Object tried to call nil in getValidCloth at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82) at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:973) at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163) at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1980) at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1782) at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:85) at zombie.characters.CharacterTimedActions.LuaTimedActionNew.perform(LuaTimedActionNew.java:104) at zombie.characters.IsoGameCharacter.updateInternal(IsoGameCharacter.java:9726) at zombie.util.lambda.Invokers$Params1$CallbackStackItem.run(Invokers.java:37) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71) at zombie.core.profiling.AbstractPerformanceProfileProbe.lambda$invokeAndMeasure$0(AbstractPerformanceProfileProbe.java:83) at zombie.util.lambda.Stacks$Params3$CallbackStackItem.invoke(Stacks.java:230) at zombie.util.lambda.Stacks$GenericStack.invokeAndRelease(Stacks.java:26) at zombie.util.Lambda.capture(Lambda.java:130) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:81) at zombie.characters.IsoGameCharacter.update(IsoGameCharacter.java:9464) at zombie.characters.IsoPlayer.updateInternal1(IsoPlayer.java:1943) at zombie.util.lambda.Invokers$Params1$CallbackStackItem.run(Invokers.java:37) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71) at zombie.core.profiling.AbstractPerformanceProfileProbe.lambda$invokeAndMeasure$0(AbstractPerformanceProfileProbe.java:83) at zombie.util.lambda.Stacks$Params3$CallbackStackItem.invoke(Stacks.java:230) at zombie.util.lambda.Stacks$GenericStack.invokeAndRelease(Stacks.java:26) at zombie.util.Lambda.capture(Lambda.java:130) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:81) at zombie.characters.IsoPlayer.update(IsoPlayer.java:1924) at zombie.MovingObjectUpdateSchedulerUpdateBucket.update(MovingObjectUpdateSchedulerUpdateBucket.java:79) at zombie.MovingObjectUpdateScheduler.update(MovingObjectUpdateScheduler.java:145) at zombie.iso.IsoCell.ProcessObjects(IsoCell.java:2955) at zombie.iso.IsoCell.updateInternal(IsoCell.java:5750) at zombie.util.lambda.Invokers$Params1$CallbackStackItem.run(Invokers.java:37) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71) at zombie.core.profiling.AbstractPerformanceProfileProbe.lambda$invokeAndMeasure$0(AbstractPerformanceProfileProbe.java:83) at zombie.util.lambda.Stacks$Params3$CallbackStackItem.invoke(Stacks.java:230) at zombie.util.lambda.Stacks$GenericStack.invokeAndRelease(Stacks.java:26) at zombie.util.Lambda.capture(Lambda.java:130) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:81) at zombie.iso.IsoCell.update(IsoCell.java:5696) at zombie.iso.IsoWorld.updateInternal(IsoWorld.java:3499) at zombie.util.lambda.Invokers$Params1$CallbackStackItem.run(Invokers.java:37) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71) at zombie.core.profiling.AbstractPerformanceProfileProbe.lambda$invokeAndMeasure$0(AbstractPerformanceProfileProbe.java:83) at zombie.util.lambda.Stacks$Params3$CallbackStackItem.invoke(Stacks.java:230) at zombie.util.lambda.Stacks$GenericStack.invokeAndRelease(Stacks.java:26) at zombie.util.Lambda.capture(Lambda.java:130) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:81) at zombie.iso.IsoWorld.update(IsoWorld.java:3427) at zombie.gameStates.IngameState.updateInternal(IngameState.java:1617) at zombie.gameStates.IngameState.update(IngameState.java:1333) at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101) at zombie.GameWindow.logic(GameWindow.java:298) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71) at zombie.GameWindow.frameStep(GameWindow.java:765) at zombie.GameWindow.run_ez(GameWindow.java:681) at zombie.GameWindow.mainThread(GameWindow.java:495) at java.base/java.lang.Thread.run(Unknown Source)
< >
Showing 1-15 of 17 comments
Brightex  [developer] 12 Feb, 2023 @ 7:29am 
@BearAE Hey thansk for reporting it, could you tell me from which mod come the cloth you were wearing when the bug happened ?
BearAE 12 Feb, 2023 @ 3:37pm 
Did some testing in debug wearing what I had on when the bug hit.
A lot of instant barricading and unbarricading until it triggered.
Stripped off clothes bit by bit until I MAYBE narrowed it down.

Triggers on Medical Waist Pouches from Paw Low Loot / Paw Low Loot Patch
PLLoot & PLLoot_Patch specifically.

Secondary bug I might've found, or, I'm not understanding the math?
I have the Sandbox setting to 100, it did not 100% trigger. Skill was 0 in carpentry.
Last edited by BearAE; 12 Feb, 2023 @ 3:38pm
Brightex  [developer] 12 Feb, 2023 @ 4:45pm 
@BearAE I'll test with the mod you've linked, thanks for the help ! Regarding the trigger chance it might be related to clothes you had. If random damage are less than cloth defense value it does nothing as the game logic is binary on this (It's either a hole and 0 def or no hole and 100 % def)
Brightex  [developer] 13 Feb, 2023 @ 2:33pm 
@BearAE Just published a patch so the bug won't happen anymore
BearAE 13 Feb, 2023 @ 4:30pm 
Awesome! Thanks a lot.
BreakUrSelf 2 Mar, 2023 @ 9:51am 
Hey, thanks for the great mod! Got this issue all of the sudden when I was attaching a sling upgrade from Britas to my AK >

function: getValidCloth -- file: CMcore.lua line # 137 | MOD: Common Injuries
function: TryDamage -- file: CMcore.lua line # 215 | MOD: Common Injuries
function: perform -- file: CMcore.lua line # 259 | MOD: Common Injuries
function: perform -- file: ISUpgradeWeapon.lua line # 42 | Vanilla
BreakUrSelf 10 Mar, 2023 @ 9:01am 
Hey, getting some more errors;

function: getValidCloth -- file: CMcore.lua line # 137 | MOD: Common Injuries
function: TryDamage -- file: CMcore.lua line # 215 | MOD: Common Injuries
function: perform -- file: CMcore.lua line # 259 | MOD: Common Injuries
function: perform -- file: ISMoveablesAction.lua line # 171 | Vanilla


Think I was jsut picking up some trash from the ground this time.
BreakUrSelf 10 Mar, 2023 @ 9:38am 
function: getValidCloth -- file: CMcore.lua line # 137 | MOD: Common Injuries
function: TryDamage -- file: CMcore.lua line # 215 | MOD: Common Injuries
function: perform -- file: CMcore.lua line # 259 | MOD: Common Injuries
function: perform -- file: ISAddItemInRecipe.lua line # 56 | Vanilla
BreakUrSelf 10 Mar, 2023 @ 9:38am 
function: getValidCloth -- file: CMcore.lua line # 137 | MOD: Common Injuries
function: TryDamage -- file: CMcore.lua line # 215 | MOD: Common Injuries
function: perform -- file: CMcore.lua line # 259 | MOD: Common Injuries
function: perform -- file: FishingPlus.lua line # 175 | MOD: Fishing+
Brightex  [developer] 10 Mar, 2023 @ 2:27pm 
@BreakUrSelf Hey thanks for reporting, are you wearing clothings from mods ? If yes can you send me the name of those mods so I can't check what's wrong my guess being object is not classified as Clothing but i'm not sure
BreakUrSelf 10 Mar, 2023 @ 4:44pm 
That was Brita's
Brightex  [developer] 11 Mar, 2023 @ 6:22am 
@BreakUrSelf Hey I've uploaded a fix, it should be good now. Thanks again for reporting !
BreakUrSelf 11 Mar, 2023 @ 6:46am 
<3
McBee 17 Mar, 2023 @ 10:48am 
Playing on Vanilla. Getting an injury at an already bandaged part destroys the bandage. I am using sterilized bandages and observed the behavior a couple of times. There is an "ouch" and you get a new injury and the bandage already at place is gone.
Agitatio 8 Dec, 2023 @ 2:10pm 
That's what happens in vanilla already. If a zombie bites you on a bandaged part, the bandage will be gone.
< >
Showing 1-15 of 17 comments
Per page: 1530 50