Project Zomboid

Project Zomboid

Reorder Duplicates by Condition
dtoxic 18 May, 2023 @ 2:17pm
[FIXED]BUG
Using the mod CAN CAN Jerrycan Continue [41.73]+ https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2839607633&searchtext=CAN+CAN+Jerrycan and right clicking on "Bag Container" water container (empty inside the shelf) throws this error,nothing game breaking thou

function: createItemsTableValue -- file: ReorderDuplicates.lua line # 52 | MOD: Reorder Duplicates by Condition
function: getItemsFromCollapsed -- file: ReorderDuplicates.lua line # 84 | MOD: Reorder Duplicates by Condition
function: ReorderDuplicatesContextMenu -- file: ReorderDuplicates.lua line # 220 | MOD: Reorder Duplicates by Condition
Callframe at: se.krka.kahlua.integration.expose.MultiLuaJavaInvoker@1e8fa9c
function: createMenu -- file: ISInventoryPaneContextMenu.lua line # 787 | Vanilla
function: onRightMouseUp -- file: ISInventoryPane.lua line # 1444 | Vanilla

ERROR: General , 1684444374578> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: Object tried to call nil in createItemsTableValue at KahluaUtil.fail line:82.
ERROR: General , 1684444374578> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: Object tried to call nil in createItemsTableValue
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.pcallvoid(KahluaThread.java:1812)
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:64)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:173)
at zombie.Lua.LuaEventManager.triggerEventGarbage(LuaEventManager.java:186)
at zombie.Lua.LuaManager$GlobalObject.triggerEvent(LuaManager.java:3080)
at jdk.internal.reflect.GeneratedMethodAccessor1136.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:198)
at se.krka.kahlua.integration.expose.MultiLuaJavaInvoker.call(MultiLuaJavaInvoker.java:60)
at se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:182)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:1007)
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.pcallBoolean(KahluaThread.java:1924)
at se.krka.kahlua.integration.LuaCaller.protectedCallBoolean(LuaCaller.java:104)
at zombie.ui.UIElement.onRightMouseUp(UIElement.java:1458)
at zombie.ui.UIElement.onRightMouseUp(UIElement.java:1416)
at zombie.ui.UIManager.update(UIManager.java:910)
at zombie.GameWindow.logic(GameWindow.java:262)
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)
Last edited by dtoxic; 9 Nov, 2023 @ 11:18am
< >
Showing 1-4 of 4 comments
tu/m4+0r!  [developer] 20 May, 2023 @ 12:17pm 
@dtoxic Thank you for the bug report.

I was able to reproduce the issue when using my mod and the "CAN CAN Jerrycan Continue" mod simultaneously, with the item "Bag Plastic Jerrycan".

However, I agree that there seems to be something unnatural about the item information for "Bag Plastic Jerrycan". Despite being an item type that should not have any bloodstains, it has a parameter for bloodstains present. This is indeed the cause of the bug in this case.

In my mod, I have addressed this issue by tightening the detection for item types that should have bloodstains.

Thank you for bringing this to my attention.
If the situation does not improve, please let me know again.
Last edited by tu/m4+0r!; 20 May, 2023 @ 12:20pm
dtoxic 20 May, 2023 @ 12:51pm 
will do,but like i said nothing game breaking,i think that that particular item was intended to be worn like a backpack but never got to be implemented hence partial code casing the error in your mod that is thinking it;s a backpack? just a thought.... thx for taking a look into this
tu/m4+0r!  [developer] 20 May, 2023 @ 1:07pm 
Yes, I saw the same thing as you.
Thank you as well :steamthumbsup:
dtoxic 20 May, 2023 @ 1:09pm 
ok than arigato gozaimasu (i butchered it i know :D ) have fun
< >
Showing 1-4 of 4 comments
Per page: 1530 50