Project Zomboid

Project Zomboid

Eat Smart
Bug Report
@Afyrmo, firstly, thank you for sharing your work/mods with the community of PZ, amazing QoL's, awesome work.

Secondly, i just got the same error popping while looting a garbage can, with food items plus clothing items, the error is this one below.

`function: addEatSmartOption -- file: EatSmartContextMenu.lua line # 104 | MOD: Eat Smart - Standard Submenu Callframe at: se.krka.kahlua.integration.expose.MultiLuaJavaInvoker@116b855c function: createMenu -- file: ISInventoryPaneContextMenu.lua line # 997 | Vanilla function: onRightMouseUp -- file: ISInventoryPane.lua line # 1465 | Vanilla java.lang.RuntimeException: Object tried to call nil in addEatSmartOption at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:100) 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:1790) 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:72) at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:410) at zombie.Lua.LuaEventManager.triggerEventGarbage(LuaEventManager.java:423) at zombie.Lua.LuaManager$GlobalObject.triggerEvent(LuaManager.java:4497) at jdk.internal.reflect.GeneratedMethodAccessor1133.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:211) at se.krka.kahlua.integration.expose.MultiLuaJavaInvoker.call(MultiLuaJavaInvoker.java:60) at se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:192) at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:988) 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.pcallBoolean(KahluaThread.java:1902) at se.krka.kahlua.integration.LuaCaller.protectedCallBoolean(LuaCaller.java:104) at zombie.ui.UIElement.onRightMouseUp(UIElement.java:1926) at zombie.ui.UIElement.onRightMouseUp(UIElement.java:1884) at zombie.ui.UIElement.onConsumeMouseButtonUp(UIElement.java:1698) at zombie.ui.UIManager.updateMouseButtons(UIManager.java:844) at zombie.ui.UIManager.update(UIManager.java:706) at zombie.GameWindow.logic(GameWindow.java:332) at zombie.GameWindow.frameStep(GameWindow.java:928) at zombie.GameWindow.run_ez(GameWindow.java:821) at zombie.GameWindow.mainThread(GameWindow.java:619) at java.base/java.lang.Thread.run(Unknown Source) `

I thought this has been fixed, but apparently not, this just happened on the most recent build(42.7) with the latest build version as well.

Hope is easy to fix.

Keep the awesome work.

Cheers.
< >
Showing 1-1 of 1 comments
Afyrmo  [developer] 21 May @ 5:26pm 
I fixed an error when food has not HungerChange or Calories by checking it to avoid that error. Thank you for your feedback.
< >
Showing 1-1 of 1 comments
Per page: 1530 50