Project Zomboid

Project Zomboid

Item Comparison
 This topic has been pinned, so it's probably important
QAstral  [developer] 6 Jan @ 1:32am
Bugs and glitches
Use this discussion to report bugs, glitches, and any other issues you encounter with this mod.
Last edited by QAstral; 6 Jan @ 1:37am
< >
Showing 1-15 of 22 comments
Exception thrown when hovering over modded items
As stated in the comments, modded items throw this exception:
ERROR: General f:450345, t:1736103787922> ExceptionLogger.logException> Exception thrown
java.lang.RuntimeException: Object tried to call nil in DoTooltip at KahluaUtil.fail(KahluaUtil.java:82).
Stack trace:
se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82)
se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:954)
se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1805)
se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:38)
zombie.ui.UIElement.render(UIElement.java:1997)
zombie.GameProfiler.invokeAndMeasure(GameProfiler.java:176)
zombie.ui.UIManager.render(UIManager.java:414)
zombie.GameProfiler.invokeAndMeasure(GameProfiler.java:176)
zombie.gameStates.IngameState.renderFrameUI(IngameState.java:1308)
zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:102)
zombie.gameStates.IngameState.renderframeui(IngameState.java:1297)
zombie.gameStates.IngameState.renderInternal(IngameState.java:1434)
zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:102)
zombie.gameStates.IngameState.render(IngameState.java:1382)
zombie.gameStates.GameStateMachine.render(GameStateMachine.java:37)
zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:102)
zombie.GameWindow.renderInternal(GameWindow.java:450)
zombie.GameWindow.frameStep(GameWindow.java:938)
zombie.GameWindow.run_ez(GameWindow.java:796)
zombie.GameWindow.mainThread(GameWindow.java:610)
java.base/java.lang.Thread.run(Unknown Source)
QAstral  [developer] 5 Jan @ 4:14pm 
Check it now. If it still fails, give me the mod name and the item name so I can check it.
no mod item, even vanilla (maybe it edited by mod, but anyway)


function: new -- file: qa_WeaponItem.lua line # 8 | MOD: [B42] Item Comparison
function: new -- file: qa_WeaponComparison.lua line # 23 | MOD: [B42] Item Comparison
function: generateEntries -- file: qa_Tooltip.lua line # 37 | MOD: [B42] Item Comparison
function: init -- file: qa_Tooltip.lua line # 22 | MOD: [B42] Item Comparison
function: new -- file: qa_Tooltip.lua line # 17 | MOD: [B42] Item Comparison
function: render -- file: qa_Render.lua line # 22 | MOD: [B42] Item Comparison
function: render -- file: qa_Init.lua line # 11 | MOD: [B42] Item Comparison.
[06-01-25 11:48:32.959] ERROR: General f:36434, t:1736138912959> ExceptionLogger.logException> Exception thrown
java.lang.RuntimeException: Object tried to call nil in new at KahluaUtil.fail(KahluaUtil.java:82).
Stack trace:
se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82)
se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:954)
se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1805)
se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:38)
zombie.ui.UIElement.render(UIElement.java:1997)
zombie.GameProfiler.invokeAndMeasure(GameProfiler.java:176)
zombie.ui.UIManager.render(UIManager.java:414)
zombie.GameProfiler.invokeAndMeasure(GameProfiler.java:176)
zombie.gameStates.IngameState.renderFrameUI(IngameState.java:1308)
zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:102)
zombie.gameStates.IngameState.renderframeui(IngameState.java:1297)
zombie.gameStates.IngameState.renderInternal(IngameState.java:1434)
zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:102)
zombie.gameStates.IngameState.render(IngameState.java:1382)
zombie.gameStates.GameStateMachine.render(GameStateMachine.java:37)
zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:102)
zombie.GameWindow.renderInternal(GameWindow.java:450)
zombie.GameWindow.frameStep(GameWindow.java:938)
zombie.GameWindow.run_ez(GameWindow.java:810)
zombie.GameWindow.mainThread(GameWindow.java:610)
java.base/java.lang.Thread.run(Unknown Source)
Last edited by RunYouCleverBoy; 5 Jan @ 9:03pm
I saw it happen on the headphones that are converted to wearable by Authentic Z
QAstral  [developer] 6 Jan @ 1:07am 
Originally posted by Tesla Coyle:
I saw it happen on the headphones that are converted to wearable by Authentic Z
Ok. I have tested Black Headphones from Authentic Z, and indeed it fails. But the issue is not in my mod.
I tried to run only Authentic Z with no other mods, not even mine. And I still got that issue. So, please, ask the owner of that mod to fix it.
The reason is, that it tries to check "HeadExtra" location on the body and for some reason can't find it out.
Plus, just in case, put my mod after that one, especially if it has to add something like that.
QAstral  [developer] 6 Jan @ 1:20am 
Originally posted by RunYouCleverBoy:
no mod item, even vanilla (maybe it edited by mod, but anyway)


function: new -- file: qa_WeaponItem.lua line # 8 | MOD: [B42] Item Comparison
function: new -- file: qa_WeaponComparison.lua line # 23 | MOD: [B42] Item Comparison
function: generateEntries -- file: qa_Tooltip.lua line # 37 | MOD: [B42] Item Comparison
function: init -- file: qa_Tooltip.lua line # 22 | MOD: [B42] Item Comparison
function: new -- file: qa_Tooltip.lua line # 17 | MOD: [B42] Item Comparison
function: render -- file: qa_Render.lua line # 22 | MOD: [B42] Item Comparison
function: render -- file: qa_Init.lua line # 11 | MOD: [B42] Item Comparison.
...

I see it fails in qa_WeaponItem, which mean it is a Weapon. But... I tried around 20 vanilla weapons + 10 weapons added by Authentic Z mod and all work perfectly.

Can you please add my mod at the end of the list, so it is loaded after your other mods. And if it still fails, then I would need to know which weapon and from which mod.
Originally posted by QAstral:
Originally posted by RunYouCleverBoy:
no mod item, even vanilla (maybe it edited by mod, but anyway)


function: new -- file: qa_WeaponItem.lua line # 8 | MOD: [B42] Item Comparison
function: new -- file: qa_WeaponComparison.lua line # 23 | MOD: [B42] Item Comparison
function: generateEntries -- file: qa_Tooltip.lua line # 37 | MOD: [B42] Item Comparison
function: init -- file: qa_Tooltip.lua line # 22 | MOD: [B42] Item Comparison
function: new -- file: qa_Tooltip.lua line # 17 | MOD: [B42] Item Comparison
function: render -- file: qa_Render.lua line # 22 | MOD: [B42] Item Comparison
function: render -- file: qa_Init.lua line # 11 | MOD: [B42] Item Comparison.
...

I see it fails in qa_WeaponItem, which mean it is a Weapon. But... I tried around 20 vanilla weapons + 10 weapons added by Authentic Z mod and all work perfectly.

Can you please add my mod at the end of the list, so it is loaded after your other mods. And if it still fails, then I would need to know which weapon and from which mod.

i think this is https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3394442103
im already disabled ur and that mod, so errors are gone. if it doesn't help
i'll check again with all mods
QAstral  [developer] 6 Jan @ 2:28pm 
Nope. I tried to use this mod and my mod together, I spawned a fork (the weapon modified by that mod). Still works perfectly. Can you try to run:

1. all mods except this one + mine . Then test with same item if it fails.
2. all mods with this one but not mine and to confirm that it works also.
Originally posted by QAstral:
Originally posted by Tesla Coyle:
I saw it happen on the headphones that are converted to wearable by Authentic Z
Ok. I have tested Black Headphones from Authentic Z, and indeed it fails. But the issue is not in my mod.
I tried to run only Authentic Z with no other mods, not even mine. And I still got that issue. So, please, ask the owner of that mod to fix it.
The reason is, that it tries to check "HeadExtra" location on the body and for some reason can't find it out.
Plus, just in case, put my mod after that one, especially if it has to add something like that.

Oh that makes sense. I think it was just bad luck that I happened to find some right as I was testing your fix. Thanks for the quick follow up!
Foxgreat 6 Jan @ 10:16pm 
Hi Astral, thanks for the mod! Now I guess I'll have to turn it off because there are a lot of errors with things that have containers, like a big pot of water.
QAstral  [developer] 7 Jan @ 6:21am 
Originally posted by Foxgreat:
Hi Astral, thanks for the mod! Now I guess I'll have to turn it off because there are a lot of errors with things that have containers, like a big pot of water.
Should be fixed now
Originally posted by QAstral:
Nope. I tried to use this mod and my mod together, I spawned a fork (the weapon modified by that mod). Still works perfectly. Can you try to run:

1. all mods except this one + mine . Then test with same item if it fails.
2. all mods with this one but not mine and to confirm that it works also.


where can i find file contains mod order list?
QAstral  [developer] 7 Jan @ 12:10pm 
From the screen when you select which mods to enable, bottom right of the screen has button "Mod order". But if you need a file, then it's tricky.
Default file (the one which stores information before creating or loading game)
%USERPROFILE%\Zomboid\mods\default.txt
Each save has it's own file. For example:
%USERPROFILE%\Zomboid\Saves\Sandbox\2025-01-07_15-41-59\mods.txt
hoshie 8 Jan @ 2:51am 
Hi QAstral, thanks for the mod.

Got thrown this error multiple times the last days so i wanted to report it. I can't really say what triggers it - i was in the inventory sorting stuff.

Maybe it helps.

`function: new -- file: qa_WeaponItem.lua line # 8 | MOD: [B42] Item Comparison
function: new -- file: qa_WeaponComparison.lua line # 18 | MOD: [B42] Item Comparison
function: generateEntries -- file: qa_Tooltip.lua line # 37 | MOD: [B42] Item Comparison
function: init -- file: qa_Tooltip.lua line # 22 | MOD: [B42] Item Comparison
function: new -- file: qa_Tooltip.lua line # 17 | MOD: [B42] Item Comparison
function: render -- file: qa_Render.lua line # 22 | MOD: [B42] Item Comparison
function: render -- file: qa_Init.lua line # 11 | MOD: [B42] Item Comparison
java.lang.RuntimeException: Object tried to call nil in new
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:954)
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:1997)
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)
`
QAstral  [developer] 9 Jan @ 5:30am 
It's hard to tell from this log. On this position I call a vanilla function to from vanilla class, so it should not fail. Are you using any mods which adds weapons or items? It will help to know which mods and which item it really is. Maybe issue is somewhere else, but I do not see it from this log.
< >
Showing 1-15 of 22 comments
Per page: 1530 50