Project Zomboid

Project Zomboid

[B42/B41] UsefulWardrobe
.Rhah. 28 Dec, 2024 @ 12:05am
LUA errors
I'm getting some errors while using this mod. This particular instance was when I created a wardrobe on a mannequin, and then scrolling to the bottom of the list. Clicking and holding on the scroll bar and then scrolling to the bottom makes the scrollbar disappear and generates the 10 or so errors. The scrollbar appears when moving the mouse back up to the top of the list, so long as you're still holding the mouse button.

`attempted index: getDisplayName of non-table: null
function: drawCloth -- file: ISWardrobeUI.lua line # 181 | MOD: UsefulWardrobe
function: prerender -- file: ISScrollingListBox.lua line # 434 | Vanilla
java.lang.RuntimeException: attempted index: getDisplayName of non-table: null
at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1667)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:624)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1805)
at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:38)
at zombie.ui.UIElement.render(UIElement.java:1978)
at zombie.ui.UIElement.render(UIElement.java:1988)
at zombie.GameProfiler.invokeAndMeasure(GameProfiler.java:176)
at zombie.ui.UIManager.render(UIManager.java:414)
at zombie.GameProfiler.invokeAndMeasure(GameProfiler.java:176)
at zombie.gameStates.IngameState.renderFrameUI(IngameState.java:1308)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:102)
at zombie.gameStates.IngameState.renderframeui(IngameState.java:1297)
at zombie.gameStates.IngameState.renderInternal(IngameState.java:1434)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:102)
at zombie.gameStates.IngameState.render(IngameState.java:1382)
at zombie.gameStates.GameStateMachine.render(GameStateMachine.java:37)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:102)
at zombie.GameWindow.renderInternal(GameWindow.java:450)
at zombie.GameWindow.frameStep(GameWindow.java:938)
at zombie.GameWindow.run_ez(GameWindow.java:810)
at zombie.GameWindow.mainThread(GameWindow.java:610)
at java.base/java.lang.Thread.run(Unknown Source)
`
< >
Showing 1-2 of 2 comments
耄耋  [developer] 2 Jan @ 11:12pm 
fixed
Happens when I select an existing template, meaning when I click the name, not yet equip. Equip goes fine though, even though the template shows only belt and holster for some reason.

new error, dunno if it's lua or java, I'll paste the last lines first:

Caused by: java.lang.NullPointerException: Cannot read field "MutuallyExclusive" because the return value of "java.util.LinkedHashMap.get(Object)" is null
at zombie.characters.traits.TraitFactory.setMutualExclusive(TraitFactory.java:20)
... 41 more
`

and then the rest, from the first line:

`java.lang.reflect.InvocationTargetException
at jdk.internal.reflect.GeneratedMethodAccessor93.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at se.krka.kahlua.integration.expose.caller.MethodCaller.call(MethodCaller.java:62)
at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:211)
at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:201)
at se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:192)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:988)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1790)
at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:66)
at se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:139)
at zombie.Lua.Event.trigger(Event.java:81)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:281)
at zombie.core.Core.ResetLua(Core.java:4892)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at se.krka.kahlua.integration.expose.caller.MethodCaller.call(MethodCaller.java:62)
at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:211)
at se.krka.kahlua.integration.expose.MultiLuaJavaInvoker.call(MultiLuaJavaInvoker.java:60)
at se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:192)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:988)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
at se.krka.kahlua.vm.KahluaThread.pcallBoolean(KahluaThread.java:1902)
at se.krka.kahlua.integration.LuaCaller.protectedCallBoolean(LuaCaller.java:104)
at zombie.ui.UIElement.onMouseUp(UIElement.java:1626)
at zombie.ui.UIElement.onMouseUp(UIElement.java:1581)
at zombie.ui.UIElement.onConsumeMouseButtonUp(UIElement.java:1688)
at zombie.ui.UIManager.updateMouseButtons(UIManager.java:873)
at zombie.ui.UIManager.update(UIManager.java:733)
at zombie.GameProfiler.invokeAndMeasure(GameProfiler.java:176)
at zombie.GameWindow.logic(GameWindow.java:319)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:76)
at zombie.GameWindow.frameStep(GameWindow.java:917)
at zombie.GameWindow.run_ez(GameWindow.java:810)
at zombie.GameWindow.mainThread(GameWindow.java:610)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: Cannot read field "MutuallyExclusive" because the return value of "java.util.LinkedHashMap.get(Object)" is null
at zombie.characters.traits.TraitFactory.setMutualExclusive(TraitFactory.java:20)
... 41 more
`
< >
Showing 1-2 of 2 comments
Per page: 1530 50