Project Zomboid

Project Zomboid

合成菜單卡頓修復 Fix Laggy Crafting Menu
Cokain8 2023 年 8 月 28 日 下午 1:05
ERROR
Hi, this error appears, any clue:?


`function: WholeEgg -- file: recipecode.lua line # 250 | Vanilla
Callframe at: IsRecipeValid
function: refreshRecipesListState -- file: ISCraftingUI.lua line # 1109 | MOD: Fix Laggy Crafting Menu [Build 41.68]
function: refresh -- file: ISCraftingUI.lua line # 83 | MOD: Fix Laggy Crafting Menu [Build 41.68]
function: addToFavorite -- file: ISCraftingCategoryUI.lua line # 244 | MOD: Fix Laggy Crafting Menu [Build 41.68]
function: onKeyRelease -- file: ISCraftingUI.lua line # 1557 | MOD: Fix Laggy Crafting Menu [Build 41.68]
java.lang.RuntimeException: Object tried to call nil in WholeEgg
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.pcallBoolean(KahluaThread.java:1899)
at se.krka.kahlua.integration.LuaCaller.protectedCallBoolean(LuaCaller.java:97)
at zombie.inventory.RecipeManager$RMRecipe.Test(RecipeManager.java:609)
at zombie.inventory.RecipeManager$RMRecipeItemList.getItemsFrom(RecipeManager.java:872)
at zombie.inventory.RecipeManager$RMRecipeSource.getItemsFrom(RecipeManager.java:703)
at zombie.inventory.RecipeManager$RMRecipe.getItemsFromContainers(RecipeManager.java:576)
at zombie.inventory.RecipeManager.getAvailableItems(RecipeManager.java:1062)
at zombie.inventory.RecipeManager.getAvailableItemsNeeded(RecipeManager.java:1039)
at zombie.inventory.RecipeManager.HasAllRequiredItems(RecipeManager.java:444)
at zombie.inventory.RecipeManager.IsRecipeValid(RecipeManager.java:333)
at jdk.internal.reflect.GeneratedMethodAccessor385.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.LuaJavaInvoker.call(LuaJavaInvoker.java:188)
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.pcallvoid(KahluaThread.java:1842)
at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:43)
at zombie.ui.UIElement.onKeyRelease(UIElement.java:2240)
at zombie.ui.UIManager.onKeyRelease(UIManager.java:2118)
at zombie.input.GameKeyboard.update(GameKeyboard.java:56)
at zombie.GameWindow.logic(GameWindow.java:249)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:765)
at zombie.GameWindow.run_ez(GameWindow.java:667)
at zombie.GameWindow.mainThread(GameWindow.java:495)
at java.base/java.lang.Thread.run(Unknown Source)
`
< >
正在显示第 1 - 8 条,共 8 条留言
LaysDragon  [开发者] 2023 年 8 月 31 日 下午 2:45 
Its seems like there are some invalid recipe cause built-in API broken,but I'm not sure.
You can try remove my mod and see if error gone.
If error still presented then the invalid recipe come from other mod.
Cokain8 2023 年 8 月 31 日 下午 3:10 
Hi! Yes, i have removed your mod and the error is already gone.
LaysDragon  [开发者] 2023 年 8 月 31 日 下午 3:40 
hmm,I checked my mod still runnable in 41.78.
The log not related to invalid recipe, but seems you may have some weird item existed in container causing the error.
I have no idea how does this happened,if you install back my mod then error appeared again, its should be a mod conflicting.
So how did you trigger the error?Opened the menu while nearby some container?
最后由 LaysDragon 编辑于; 2023 年 8 月 31 日 下午 3:42
Cokain8 2023 年 8 月 31 日 下午 11:35 
I will try to uninstall it and install it again.

The error appears without being near any container, only opening the crafting menu and then it also appears when I choose the favorites ones.
LaysDragon  [开发者] 2023 年 9 月 1 日 上午 12:46 
Are your game at version 41.78.16?
Is these error still the same error when you not near any container? If it is then its probably be an indirect conflicting with other mod.

The error is happened while game trying to check if any nearby items satisfy the recipe....it make nonsense when there are no nearby items to check but still occurring the error. :/
最后由 LaysDragon 编辑于; 2023 年 9 月 1 日 上午 12:48
Cokain8 2023 年 9 月 1 日 下午 3:22 
Hi again! I uninstall and install again and i create a new game, the error appears as soon as I start the game, without doing anything.

Im playing this version of the game.
最后由 Cokain8 编辑于; 2023 年 9 月 1 日 下午 3:26
LaysDragon  [开发者] 2023 年 9 月 1 日 下午 11:41 
Well you have other mods installed,right? The options left here is find which mod cause the confliction... :(
Lu5ck 7 月 21 日 上午 5:25 
Hello! Your mod is coded in a way that it override the entirety of ISCraftingUI though I am unsure why you need to do that when you simply overriding specific functions.

Anyway, this function
function ISCraftingUI:populateCookingRecipesList()

since the last time you update your codes. vanilla has included an check
if resultItem then

also, vanilla does not has
Keyboard.KEY_U

Please update your override
最后由 Lu5ck 编辑于; 7 月 21 日 下午 3:12
< >
正在显示第 1 - 8 条,共 8 条留言
每页显示数: 1530 50