Project Zomboid

Project Zomboid

Fix Laggy Crafting Menu
Cokain8 28 Aug, 2023 @ 1:05pm
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)
`
< >
Showing 1-7 of 7 comments
LaysDragon  [developer] 31 Aug, 2023 @ 2:45pm 
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 31 Aug, 2023 @ 3:10pm 
Hi! Yes, i have removed your mod and the error is already gone.
LaysDragon  [developer] 31 Aug, 2023 @ 3:40pm 
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?
Last edited by LaysDragon; 31 Aug, 2023 @ 3:42pm
Cokain8 31 Aug, 2023 @ 11:35pm 
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  [developer] 1 Sep, 2023 @ 12:46am 
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. :/
Last edited by LaysDragon; 1 Sep, 2023 @ 12:48am
Cokain8 1 Sep, 2023 @ 3:22pm 
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.
Last edited by Cokain8; 1 Sep, 2023 @ 3:26pm
LaysDragon  [developer] 1 Sep, 2023 @ 11:41pm 
Well you have other mods installed,right? The options left here is find which mod cause the confliction... :(
< >
Showing 1-7 of 7 comments
Per page: 1530 50