Project Zomboid

Project Zomboid

True Smoking [B42]
 This topic has been pinned, so it's probably important
Ratamus  [developer] 10 Feb @ 11:49pm
Errors / Bugs / Issues
Post them here, you can access your console.txt from your Zomboid folder under your user account ex. (C:\Users\RATAMUS\Zomboid) if you want an easier time finding and copying errors.

You can also find me on Discord and post them there if that's easier
Last edited by Ratamus; 15 Mar @ 6:08pm
< >
Showing 1-15 of 118 comments
Hans-Landa 11 Feb @ 12:57am 
I checked again and the errors changed now, seems to have a conflict with true music jukebox now (i honestly dont know why)

Error 1:
`Callframe at: getKeyName
function: addModOptionsPanel -- file: MainOptions.lua line # 3600 | Vanilla
function: create -- file: MainOptions.lua line # 645 | Vanilla
function: create -- file: Options.lua line # 55 | MOD: True Music Jukebox
function: instantiate -- file: MainScreen.lua line # 729 | Vanilla
function: addToUIManager -- file: ISUIElement.lua line # 1138 | Vanilla
function: LoadMainScreenPanelInt -- file: MainScreen.lua line # 2180 | Vanilla
function: LoadMainScreenPanel -- file: MainScreen.lua line # 2078 | Vanilla
`

Error 2:
`java.lang.IllegalArgumentException
at jdk.internal.reflect.GeneratedMethodAccessor143.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.LuaJavaInvoker.call(LuaJavaInvoker.java:201)
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.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:81)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:281)
at zombie.core.Core.ResetLua(Core.java:4907)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.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.onMouseUp(UIElement.java:1626)
at zombie.ui.UIElement.onMouseUp(UIElement.java:1581)
at zombie.ui.UIElement.onMouseUp(UIElement.java:1581)
at zombie.ui.UIElement.onConsumeMouseButtonUp(UIElement.java:1688)
at zombie.ui.UIManager.updateMouseButtons(UIManager.java:861)
at zombie.ui.UIManager.update(UIManager.java:721)
at zombie.GameProfiler.invokeAndMeasure(GameProfiler.java:176)
at zombie.GameWindow.logic(GameWindow.java:324)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:76)
at zombie.GameWindow.frameStep(GameWindow.java:924)
at zombie.GameWindow.run_ez(GameWindow.java:817)
at zombie.GameWindow.mainThread(GameWindow.java:615)
at java.base/java.lang.Thread.run(Unknown Source)
`

Just in case this error doesn't happen with True Music Jukebox enabled without this mod enabled only appears when both are enabled.
Sorry for the sudden second post error appears if i disabled True Music Jukebox too but enable your mod, here are the errors for that scenario

Error 1:
`Callframe at: getKeyName
function: addModOptionsPanel -- file: MainOptions.lua line # 3600 | Vanilla
function: create -- file: MainOptions.lua line # 645 | Vanilla
function: instantiate -- file: MainScreen.lua line # 729 | Vanilla
function: addToUIManager -- file: ISUIElement.lua line # 1138 | Vanilla
function: LoadMainScreenPanelInt -- file: MainScreen.lua line # 2180 | Vanilla
function: LoadMainScreenPanel -- file: MainScreen.lua line # 2078 | Vanilla
`

Error 2:
`java.lang.IllegalArgumentException
at jdk.internal.reflect.GeneratedMethodAccessor143.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.LuaJavaInvoker.call(LuaJavaInvoker.java:201)
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.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:81)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:281)
at zombie.core.Core.ResetLua(Core.java:4907)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.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.onMouseUp(UIElement.java:1626)
at zombie.ui.UIElement.onMouseUp(UIElement.java:1581)
at zombie.ui.UIElement.onMouseUp(UIElement.java:1581)
at zombie.ui.UIElement.onConsumeMouseButtonUp(UIElement.java:1688)
at zombie.ui.UIManager.updateMouseButtons(UIManager.java:861)
at zombie.ui.UIManager.update(UIManager.java:721)
at zombie.GameProfiler.invokeAndMeasure(GameProfiler.java:176)
at zombie.GameWindow.logic(GameWindow.java:324)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:76)
at zombie.GameWindow.frameStep(GameWindow.java:924)
at zombie.GameWindow.run_ez(GameWindow.java:817)
at zombie.GameWindow.mainThread(GameWindow.java:615)
at java.base/java.lang.Thread.run(Unknown Source)
`
Ratamus  [developer] 11 Feb @ 1:11am 
@Hans-Landa Are you getting that error with just my mod and no other mods? I'll have to look into this more those errors are not pointing to anything explicitly so it's hard to tell what the problem is. It seems like it's an error getting a keybind somewhere

Also is this happening on the main menu or in game?
Last edited by Ratamus; 11 Feb @ 1:13am
Main menu, i tested just leaving error magnifier, mod update alert system, moodle framework and your mod enabled and i still got two errors in the main menu.

Error 1:
`Callframe at: getKeyName
function: addModOptionsPanel -- file: MainOptions.lua line # 3600 | Vanilla
function: create -- file: MainOptions.lua line # 645 | Vanilla
function: instantiate -- file: MainScreen.lua line # 729 | Vanilla
function: addToUIManager -- file: ISUIElement.lua line # 1138 | Vanilla
function: LoadMainScreenPanelInt -- file: MainScreen.lua line # 2180 | Vanilla
function: LoadMainScreenPanel -- file: MainScreen.lua line # 2078 | Vanilla
`

Error 2:
`java.lang.IllegalArgumentException
at jdk.internal.reflect.GeneratedMethodAccessor144.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.LuaJavaInvoker.call(LuaJavaInvoker.java:201)
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.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:81)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:281)
at zombie.core.Core.ResetLua(Core.java:4907)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.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.onMouseUp(UIElement.java:1626)
at zombie.ui.UIElement.onMouseUp(UIElement.java:1581)
at zombie.ui.UIElement.onMouseUp(UIElement.java:1581)
at zombie.ui.UIElement.onConsumeMouseButtonUp(UIElement.java:1688)
at zombie.ui.UIManager.updateMouseButtons(UIManager.java:861)
at zombie.ui.UIManager.update(UIManager.java:721)
at zombie.GameProfiler.invokeAndMeasure(GameProfiler.java:176)
at zombie.GameWindow.logic(GameWindow.java:324)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:76)
at zombie.GameWindow.frameStep(GameWindow.java:924)
at zombie.GameWindow.run_ez(GameWindow.java:817)
at zombie.GameWindow.mainThread(GameWindow.java:615)
at java.base/java.lang.Thread.run(Unknown Source)
`

Only happens with your mod enabled.
Ratamus  [developer] 11 Feb @ 1:41am 
Thanks for checking, it might simply be a print statement I left in getting called at the main menu but I'll look into it
Last edited by Ratamus; 11 Feb @ 2:19am
Its probably nothing serious but i'm happy to help to remove them so it doesn't distract from real errors with other mods.
Ratamus  [developer] 11 Feb @ 10:22am 
I've tested further and found that if you subscribed to a version of my mod with the improperly declared key bind it saved it into the ModOptions.ini file and was throwing an error on the main menu. I have sinced fixed it on my end but until the user changes that key bind it will keep throwing the error. (This is changed from the ESC menu -> Mod Options -> True Smoking)
Hans-Landa 11 Feb @ 10:42am 
Oh thank you very much, gonna fix it on my end then.
Hans-Landa 11 Feb @ 11:21am 
Ok changing the keybinds fixed it and i got no more errors, thank you so much for testing and finding the issue.
Ratamus  [developer] 11 Feb @ 11:30am 
No problem thanks for helping find the issue
ILya 16 Feb @ 10:38am 
function: equipVisualItem -- file: Smokable.lua line # 159 | MOD: True Smoking
function: stop -- file: TakePuff.lua line # 111 | MOD: True Smoking
function: update -- file: TakePuff.lua line # 41 | MOD: True Smoking

ERROR: General f:6321, t:1739730976542> ExceptionLogger.logException> Exception thrown
java.lang.RuntimeException: attempted index: getBodyLocation of non-table: false at KahluaThread.tableget(KahluaThread.java:1667).
Stack trace:
se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1667)
se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:624)
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.characters.CharacterTimedActions.LuaTimedActionNew.update(LuaTimedActionNew.java:88)
zombie.characters.IsoGameCharacter.updateInternal(IsoGameCharacter.java:10433)
zombie.characters.IsoGameCharacter.update(IsoGameCharacter.java:10078)
zombie.characters.IsoPlayer.updateInternal1(IsoPlayer.java:2203)
zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:102)
zombie.characters.IsoPlayer.update(IsoPlayer.java:2183)
zombie.MovingObjectUpdateSchedulerUpdateBucket.update(MovingObjectUpdateSchedulerUpdateBucket.java:71)
zombie.MovingObjectUpdateScheduler.update(MovingObjectUpdateScheduler.java:155)
zombie.iso.IsoCell.ProcessObjects(IsoCell.java:3058)
zombie.GameProfiler.invokeAndMeasure(GameProfiler.java:195)
zombie.iso.IsoCell.updateInternal(IsoCell.java:5942)
zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:102)
zombie.iso.IsoCell.update(IsoCell.java:5884)
zombie.iso.IsoWorld.updateWorld(IsoWorld.java:3955)
zombie.iso.IsoWorld.updateInternal(IsoWorld.java:4055)
zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:102)
zombie.iso.IsoWorld.update(IsoWorld.java:3979)
zombie.gameStates.IngameState.updateInternal(IngameState.java:1799)
zombie.gameStates.IngameState.update(IngameState.java:1492)
zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
zombie.GameWindow.logic(GameWindow.java:377)
zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:76)
zombie.GameWindow.frameStep(GameWindow.java:909)
zombie.GameWindow.run_ez(GameWindow.java:802)
zombie.GameWindow.mainThread(GameWindow.java:600)
java.base/java.lang.Thread.run(Unknown Source)
LOG : General f:6321, t:1739730976542> -----------------------------------------
STACK TRACE
Ratamus  [developer] 16 Feb @ 11:23am 
@ILya could you provide some context as to what you were doing when that error occurred? I pushed a few separate fixes last night so you could have potentially had a older version with a bug.

I am investigating that error and the code but I'm not able to replicate the issue so far.
Ratamus  [developer] 16 Feb @ 11:59am 
I pushed a patch that adds another check for managing the VisualItem (wearable smoke) so hopefully that clears the error up. I think it might have been a case where the auto puff was trying to call after the smoke has been put out.

Additionally I added in tags so when eating or drinking with the smoke in the mouth it stays there

Also the primary hand item should properly display while smoking with the other hand
Ullatec 16 Feb @ 12:22pm 
Authentic Z, You can make a hook and attach a lighter to it . I could not light up a smoke when i had made a lighter attachable (can put on belt). I could use a stove to light my cig which it did the inhale whole cig in 5 second thing. I use, I Might Need A Lighter, for the stove as a fire source.
Ratamus  [developer] 16 Feb @ 12:47pm 
Originally posted by Ullatec:
Authentic Z, You can make a hook and attach a lighter to it . I could not light up a smoke when i had made a lighter attachable (can put on belt). I could use a stove to light my cig which it did the inhale whole cig in 5 second thing. I use, I Might Need A Lighter, for the stove as a fire source.

I'll take a look at this. With authentic Z was it the keybind that wasn't working but smoking through the menu option worked still?

I'm hoping it's something simple with I might need a lighter as my mod doesn't change much if any of vanilla logic, makes me think that mod might be overwriting something but I won't know for sure till I can look.
< >
Showing 1-15 of 118 comments
Per page: 1530 50