Hi Folks,
I looked through the bug tracker and haven't seen this one mentioned, so I hope it's not a dupe of something already reported.
I've recently returned to Zomboid after a little hiatus and been playing with the latest build of 41.39 and was excited to hear that clothing can actually be repaired!
However, when I attempt to repair clothing I see the progress dialog bar but nothing gets repaired and the resources are consumed. I also see little red error boxes in the lower right of UI after I inspect clothing and right-click Hole to get the Patch Hole context dialog. I followed the console.txt log and see the following errors regarding getScratchDefenseFromItem(Clothing.java:936) and getBiteDefenseFromItem(Clothing.java:922) methods:
LOG : General, 1593988288187> -----------------------------------------
STACK TRACE
-----------------------------------------
Callframe at: getScratchDefenseFromItem
function: doPatch -- file: ISGarmentUI.lua line # 124
function: doContextMenu -- file: ISGarmentUI.lua line # 167
function: onBodyPartListRightMouseUp -- file: ISGarmentUI.lua line # 92
ERROR: General, 1593988288194> ExceptionLogger.logException> Exception thrown java.lang.reflect.InvocationTargetException at NativeMethodAccessorImpl.invoke0 (Native Method).
ERROR: General, 1593988288195> DebugLogStream.printException> Stack trace:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at se.krka.kahlua.integration.expose.caller.MethodCaller.call(MethodCaller.java:62)
at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:198)
at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:188)
at se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:182)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:1002)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1975)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1777)
at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:76)
at zombie.ui.UIElement.onRightMouseUp(UIElement.java:1480)
at zombie.ui.UIElement.onRightMouseUp(UIElement.java:1434)
at zombie.ui.UIManager.update(UIManager.java:872)
at zombie.GameWindow.logic(GameWindow.java:237)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:722)
at zombie.GameWindow.run_ez(GameWindow.java:640)
at zombie.GameWindow.mainThread(GameWindow.java:467)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at zombie.inventory.types.Clothing.getScratchDefenseFromItem(Clothing.java:936)
... 22 more
LOG : General, 1593988288196> -----------------------------------------
STACK TRACE
-----------------------------------------
Callframe at: getBiteDefenseFromItem
function: doPatch -- file: ISGarmentUI.lua line # 124
function: doContextMenu -- file: ISGarmentUI.lua line # 167
function: onBodyPartListRightMouseUp -- file: ISGarmentUI.lua line # 92
ERROR: General, 1593988288196> ExceptionLogger.logException> Exception thrown java.lang.reflect.InvocationTargetException at NativeMethodAccessorImpl.invoke0 (Native Method).
ERROR: General, 1593988288196> DebugLogStream.printException> Stack trace:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at se.krka.kahlua.integration.expose.caller.MethodCaller.call(MethodCaller.java:62)
at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:198)
at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:188)
at se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:182)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:1002)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1975)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1777)
at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:76)
at zombie.ui.UIElement.onRightMouseUp(UIElement.java:1480)
at zombie.ui.UIElement.onRightMouseUp(UIElement.java:1434)
at zombie.ui.UIManager.update(UIManager.java:872)
at zombie.GameWindow.logic(GameWindow.java:237)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:722)
at zombie.GameWindow.run_ez(GameWindow.java:640)
at zombie.GameWindow.mainThread(GameWindow.java:467)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at zombie.inventory.types.Clothing.getBiteDefenseFromItem(Clothing.java:922)
... 22 more
ERROR: General, 1593988288197> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: __concat not defined for operands: + and null at KahluaUtil.fail line:82.
ERROR: General, 1593988288198> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: __concat not defined for operands: + and null
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:800)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1975)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1777)
at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:76)
at zombie.ui.UIElement.onRightMouseUp(UIElement.java:1480)
at zombie.ui.UIElement.onRightMouseUp(UIElement.java:1434)
at zombie.ui.UIManager.update(UIManager.java:872)
at zombie.GameWindow.logic(GameWindow.java:237)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:722)
at zombie.GameWindow.run_ez(GameWindow.java:640)
at zombie.GameWindow.mainThread(GameWindow.java:467)
at java.lang.Thread.run(Thread.java:748)
LOG : General, 1593988288198> -----------------------------------------
STACK TRACE
-----------------------------------------
function: doPatch -- file: ISGarmentUI.lua line # 124
function: doContextMenu -- file: ISGarmentUI.lua line # 167
function: onBodyPartListRightMouseUp -- file: ISGarmentUI.lua line # 92
So, there are already issues of some sort even with the context menu. When I attempt to repair the clothing, via Patch Hole -> Ripped Sheets I see the repair progress bar do its thing and consume the resources and new red error box pops up. The repair doesn't seem to do anything no matter how many times I try it. If it's its merely a skill failure, there has to be a better way to approach it, but from the console.txt it sounds like its just a bug. When I perform that action, I see the following in console log regarding addPatch(Clothing.java:1038) method:
LOG : General, 1593988295353> -----------------------------------------
STACK TRACE
-----------------------------------------
Callframe at: addPatch
function: perform -- file: ISRepairClothing.lua line # 30
ERROR: General, 1593988295354> ExceptionLogger.logException> Exception thrown java.lang.reflect.InvocationTargetException at NativeMethodAccessorImpl.invoke0 (Native Method).
ERROR: General, 1593988295354> DebugLogStream.printException> Stack trace:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at se.krka.kahlua.integration.expose.caller.MethodCaller.call(MethodCaller.java:62)
at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:198)
at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:188)
at se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:182)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:1002)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1975)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1777)
at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:85)
at zombie.characters.CharacterTimedActions.LuaTimedActionNew.perform(LuaTimedActionNew.java:102)
at zombie.characters.IsoGameCharacter.updateInternal(IsoGameCharacter.java:8830)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.characters.IsoGameCharacter.update(IsoGameCharacter.java:8561)
at zombie.characters.IsoPlayer.lambda$update$40(IsoPlayer.java:1938)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.characters.IsoPlayer.update(IsoPlayer.java:1930)
at zombie.MovingObjectUpdateSchedulerUpdateBucket.update(MovingObjectUpdateSchedulerUpdateBucket.java:69)
at zombie.MovingObjectUpdateScheduler.update(MovingObjectUpdateScheduler.java:131)
at zombie.iso.IsoCell.ProcessObjects(IsoCell.java:2764)
at zombie.iso.IsoCell.updateInternal(IsoCell.java:5559)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.iso.IsoCell.update(IsoCell.java:5502)
at zombie.iso.IsoWorld.updateInternal(IsoWorld.java:3125)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.iso.IsoWorld.update(IsoWorld.java:3053)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1561)
at zombie.gameStates.IngameState.update(IngameState.java:1275)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
at zombie.GameWindow.logic(GameWindow.java:282)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:722)
at zombie.GameWindow.run_ez(GameWindow.java:640)
at zombie.GameWindow.mainThread(GameWindow.java:467)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at zombie.inventory.types.Clothing.addPatch(Clothing.java:1038)
... 38 more
I'm playing Zomboid on a Macbook Pro, OSX 10.14.4 (18E227), but I'd be surprised if this issue is platform specific.
I love this game and thank you for your time! -Michael