Project Zomboid

Project Zomboid

Item Comparison
 此主题已被置顶,因此可能具有重要性
QAstral  [开发者] 1 月 6 日 上午 1:32
Bugs and glitches
Use this discussion to report bugs, glitches, and any other issues you encounter with this mod.
最后由 QAstral 编辑于; 1 月 6 日 上午 1:37
< >
正在显示第 1 - 15 条,共 23 条留言
Tesla Coyle 1 月 5 日 上午 11:11 
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  [开发者] 1 月 5 日 下午 4:14 
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)
最后由 RunYouCleverBoy 编辑于; 1 月 5 日 下午 9:03
Tesla Coyle 1 月 5 日 下午 10:42 
I saw it happen on the headphones that are converted to wearable by Authentic Z
QAstral  [开发者] 1 月 6 日 上午 1:07 
引用自 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  [开发者] 1 月 6 日 上午 1:20 
引用自 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.
引用自 QAstral
引用自 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://psteamcommunity.yuanyoumao.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  [开发者] 1 月 6 日 下午 2:28 
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.
Tesla Coyle 1 月 6 日 下午 4:58 
引用自 QAstral
引用自 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 1 月 6 日 下午 10:16 
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  [开发者] 1 月 7 日 上午 6:21 
引用自 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
引用自 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  [开发者] 1 月 7 日 下午 12:10 
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 1 月 8 日 上午 2:51 
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  [开发者] 1 月 9 日 上午 5:30 
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.
< >
正在显示第 1 - 15 条,共 23 条留言
每页显示数: 1530 50