Project Zomboid

Project Zomboid

True Smoking [B41] [Legacy]
Ratamus  [developer] 26 Jan, 2024 @ 11:03pm
Bug Reports
Please report any bugs or issues you encounter while using this mod.

If possible provide the error message / stack trace and provide any other information about what what happening at the time of the error if possible.
< >
Showing 1-15 of 15 comments
NonanteSeize 27 Jan, 2024 @ 7:40am 
There seems to be incompatibilities with one of these mods (AutoSmoke, SchiZ's Don't Eat With Mask, Lactose Intolerant Trait, Tidy Up Meister) Couldn't eat, and it gave me this error:
(I don't have the lactose trait nor was I wearing a mask, so maybe unlikely those?)
attempted index: getModData of non-table: null function: getPlayerStats -- file: TrueSmokingUtils.lua line # 156 | MOD: True Smoking function: new -- file: TrueSmokingOverrides.lua line # 27 | MOD: True Smoking function: eatItem -- file: ISInventoryPaneContextMenu.lua line # 3013 | Vanilla function: eatItem -- file: AutoSmokeOverrides.lua line # 19 | MOD: AutoSmoke function: eatItem -- file: NoEatWithMask.lua line # 62 | MOD: SchiZ's Don't Eat With Mask function: eatItemHook -- file: lactoseIntolerant.lua line # 24 | MOD: Lactose Intolerant Trait function: onEatItems -- file: ISInventoryPaneContextMenu.lua line # 3134 | Vanilla function: onEatItems -- file: P4TidyUpMeister.lua line # 178 | MOD: Tidy Up Meister function: onMouseUp -- file: ISContextMenu.lua line # 90 | Vanilla java.lang.RuntimeException: attempted index: getModData of non-table: null at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1689) at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:641) 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:1924) at se.krka.kahlua.integration.LuaCaller.protectedCallBoolean(LuaCaller.java:104) at zombie.ui.UIElement.onMouseUp(UIElement.java:1228) at zombie.ui.UIManager.update(UIManager.java:816) at zombie.GameWindow.logic(GameWindow.java:262) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71) at zombie.GameWindow.frameStep(GameWindow.java:765) at zombie.GameWindow.run_ez(GameWindow.java:681) at zombie.GameWindow.mainThread(GameWindow.java:495) at java.base/java.lang.Thread.run(Unknown Source)
NonanteSeize 27 Jan, 2024 @ 8:36am 
Removed all mentioned mods and issue is still there. here's the error without them:
attempted index: getModData of non-table: null function: getPlayerStats -- file: TrueSmokingUtils.lua line # 156 | MOD: True Smoking function: new -- file: TrueSmokingOverrides.lua line # 27 | MOD: True Smoking function: eatItem -- file: ISInventoryPaneContextMenu.lua line # 3013 | Vanilla function: onEatItems -- file: ISInventoryPaneContextMenu.lua line # 3134 | Vanilla function: onMouseUp -- file: ISContextMenu.lua line # 90 | Vanilla java.lang.RuntimeException: attempted index: getModData of non-table: null at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1689) at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:641) 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:1924) at se.krka.kahlua.integration.LuaCaller.protectedCallBoolean(LuaCaller.java:104) at zombie.ui.UIElement.onMouseUp(UIElement.java:1228) at zombie.ui.UIManager.update(UIManager.java:816) at zombie.GameWindow.logic(GameWindow.java:262) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71) at zombie.GameWindow.frameStep(GameWindow.java:765) at zombie.GameWindow.run_ez(GameWindow.java:681) at zombie.GameWindow.mainThread(GameWindow.java:495) at java.base/java.lang.Thread.run(Unknown Source)
Ratamus  [developer] 27 Jan, 2024 @ 10:07am 
I think this should be fixed now :) There was a function being called incorrectly, thanks for the report!
Last edited by Ratamus; 27 Jan, 2024 @ 10:20am
Ratamus  [developer] 27 Jan, 2024 @ 12:17pm 
Pushed another update that will likely be related to this issue as well
NonanteSeize 27 Jan, 2024 @ 2:44pm 
Hell yea, Happy to help. Will continue to test with my current setup o7
RagingLoony 9 Feb, 2024 @ 7:29am 
Using Smoker, Dynamic Traits, and smoking sound overhaul, smoking is working, but I dont get any of the stats from it, stress doesn't go down or reset once smoking is finished, even when holding the smoke key to smoke the entire thing

EDIT: Ok after a little more testing, it does seem to function, the problem is that cigarettes in smoker mod have a very very low stress/unhappiness reduction, It is trying to apply the -7 stress from a menthol cigarette for example, but it isn't quick or strong enough to keep up with the stress increase from smoker trait in dynamic traits, so its effectively useless.
Also, when you start smoking you'll get a cigarette butt in your inventory immediately, and sometimes half a cigar if you tried smoking a cigar. Cancelling the smoking doesn't give a partly used cigarette
Last edited by RagingLoony; 9 Feb, 2024 @ 7:41am
Ratamus  [developer] 9 Feb, 2024 @ 12:33pm 
Ill look into the stress issue, seems to be a bug somewhere that's not calculating the changes correctly. As for the items like butts and half cigars I've been planning to update that at a later time so they show up after smoking
Ratamus  [developer] 9 Feb, 2024 @ 3:05pm 
Originally posted by RagingLoony:
Using Smoker, Dynamic Traits, and smoking sound overhaul, smoking is working, but I dont get any of the stats from it, stress doesn't go down or reset once smoking is finished, even when holding the smoke key to smoke the entire thing

EDIT: Ok after a little more testing, it does seem to function, the problem is that cigarettes in smoker mod have a very very low stress/unhappiness reduction, It is trying to apply the -7 stress from a menthol cigarette for example, but it isn't quick or strong enough to keep up with the stress increase from smoker trait in dynamic traits, so its effectively useless.
Also, when you start smoking you'll get a cigarette butt in your inventory immediately, and sometimes half a cigar if you tried smoking a cigar. Cancelling the smoking doesn't give a partly used cigarette

I think this is fixed now, I found an issue with how stress was accumulating on game ticks from not clearing the stressFromCigarettes value immediately leading to the behavior you described. I did some testing specifically with dynamic traits but didn't notice anymore issues, let me know if you encounter any other problems :)
RagingLoony 10 Feb, 2024 @ 6:17am 
Have tested the new update, its definitely seems improved, using status bars i can see the stress actively ticking down small amounts, but still running into the issue where the stress is increasing faster than its going down. I can add you can stream it to you to show you what I mean. The way im testing this is im adding it to my save, using cheat mode to activate ghost mode, take my mask off as im using susceptible and walking up to a zombie to max out stress, walking away then smoking. Stress starts to tick down as expected but very slowly even when holding the smoke key and fast forwarding, it'll go down a bit then jump up an amount, which I think is the dynamic traits smoker trait stress increase kicking in
RagingLoony 10 Feb, 2024 @ 10:02am 
Sorry for deleting posts, just wanna make things clear and in one spot. So, the mod seems to be working fine when playing at normal game speed, the problem is when you start fast forwarding, which is what I was doing.

With the help of a friend who is good at debugging, we managed to uncover this:
There are two issues that have been found:
- When fast forwarding, and holding the 'Smoke' key, stress starts to go up at some point, and for awhile. It eventually stops, but the result is the stress is never fully removed.
- When using the Susceptible mod (link below), whenever you smoke while wearing a mask, the default vanilla timed action occurs instead of what is expect with True Smoking.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2795677303&searchtext=susceptible
Ratamus  [developer] 10 Feb, 2024 @ 11:39am 
Originally posted by RagingLoony:
Sorry for deleting posts, just wanna make things clear and in one spot. So, the mod seems to be working fine when playing at normal game speed, the problem is when you start fast forwarding, which is what I was doing.

With the help of a friend who is good at debugging, we managed to uncover this:
There are two issues that have been found:
- When fast forwarding, and holding the 'Smoke' key, stress starts to go up at some point, and for awhile. It eventually stops, but the result is the stress is never fully removed.
- When using the Susceptible mod (link below), whenever you smoke while wearing a mask, the default vanilla timed action occurs instead of what is expect with True Smoking.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2795677303&searchtext=susceptible

Thanks for the reports I'll keep looking into these.

The stats from the smoke will start very slow and speed up about halfway through the smoke which is intended to try and distribute the effects more slowly.

Fast forward support is something I was still tinkering with but I'll try to revisit it and see what I can do.

Will also take a look at that mod for compatibility issues :)
gamer 31 Mar, 2024 @ 1:51am 
function: init -- file: TrueSmoking.lua line # 283 | MOD: True Smoking

ERROR: General , 1711869295036> 781,492,489> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: init of non-table: null at KahluaThread.tableget line:1689.
ERROR: General , 1711869295036> 781,492,489> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: init of non-table: null
at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1689)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:492)
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:1812)
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:64)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:65)
at zombie.network.GameServer.doMinimumInit(GameServer.java:1441)
at zombie.network.GameServer.main(GameServer.java:688)
LOG : General , 1711869295037> 781,492,489> -----------------------------------------
STACK TRACE
-----------------------------------------
function: init -- file: TrueSmoking.lua line # 283 | MOD: True Smoking


some odd error in log, server is crashing not sure if this is related to it|


---------------------------------------------------------

Callframe at: getFontHeight
function: E:\SteamMain\steamapps\common\ProjectZomboid\media\lua\client\ISUI\ISInventoryPaneContextMenu.lua -- file: ISInventoryPaneContextMenu.lua line # 2392 | Vanilla
Callframe at: require
function: TrueSmoking.lua -- file: TrueSmoking.lua line # 2 | MOD: True Smoking
Callframe at: require
function: CantFinishSmokingOverride.lua -- file: CantFinishSmokingOverride.lua line # 1 | MOD: True Smoking

ERROR: General , 1711869290597> 781,488,049> ExceptionLogger.logException> Exception thrown java.lang.reflect.InvocationTargetException at NativeMethodAccessorImpl.invoke0 (Native Method).
ERROR: General , 1711869290597> 781,488,050> DebugLogStream.printException> Stack trace:
java.lang.reflect.InvocationTargetException
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: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.pcall(KahluaThread.java:1782)
at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:76)
at se.krka.kahlua.integration.LuaCaller.protectedCall(LuaCaller.java:117)
at zombie.Lua.LuaManager.RunLuaInternal(LuaManager.java:564)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:510)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:496)
at zombie.Lua.LuaManager$GlobalObject.require(LuaManager.java:3419)
at jdk.internal.reflect.GeneratedMethodAccessor11.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.pcall(KahluaThread.java:1782)
at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:76)
at se.krka.kahlua.integration.LuaCaller.protectedCall(LuaCaller.java:117)
at zombie.Lua.LuaManager.RunLuaInternal(LuaManager.java:564)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:510)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:496)
at zombie.Lua.LuaManager$GlobalObject.require(LuaManager.java:3419)
at jdk.internal.reflect.GeneratedMethodAccessor11.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.pcall(KahluaThread.java:1782)
at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:76)
at se.krka.kahlua.integration.LuaCaller.protectedCall(LuaCaller.java:117)
at zombie.Lua.LuaManager.RunLuaInternal(LuaManager.java:564)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:510)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:496)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:342)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:264)
at zombie.network.GameServer.doMinimumInit(GameServer.java:1417)
at zombie.network.GameServer.main(GameServer.java:688)
Caused by: java.lang.NullPointerException: Cannot invoke "zombie.core.fonts.AngelCodeFont.getLineHeight()" because "<local2>" is null
at zombie.ui.TextManager.getFontHeight(TextManager.java:232)
Last edited by gamer; 31 Mar, 2024 @ 1:58am
silent1 21 Dec, 2024 @ 10:29am 
One of my players had an issue with fishing while smoking. Seems it cancels the fishing animation everytime it puffs.... and then he got stuck in place. Like he couldn't move at all other than opening his inventory. Seemed to come back when the smoking was done.
I'll try to get his log...
Stack Trace error loading jigger green fire or something? But I do not have this mod, smoking override failure like above user:

"LOG : Lua , 1742383831849> 37,260,591> Loading: steamapps/workshop/content/108600/3142474424/mods/TrueSmoking/media/lua/server/Patches/ETW/ETWFunctionsOverride.lua
LOG : Lua , 1742383831861> 37,260,603> Loading: steamapps/workshop/content/108600/3142474424/mods/TrueSmoking/media/lua/server/Patches/JiggasGreenFire/CantFinishSmokingOverride.lua
LOG : Lua , 1742383831864> 37,260,606> Loading: steamapps/workshop/content/108600/3142474424/mods/TrueSmoking/media/lua/client/TrueSmoking.lua
LOG : Lua , 1742383831864> 37,260,606> Loading: media/lua/client/ISUI/ISInventoryPaneContextMenu.lua
LOG : Lua , 1742383831868> 37,260,610> Loading: media/lua/client/ISUI/ISToolTip.lua
LOG : Lua , 1742383831869> 37,260,611> Loading: media/lua/client/ISUI/ISPanel.lua
LOG : Lua , 1742383831869> 37,260,611> Loading: media/lua/client/ISUI/ISUIElement.lua
LOG : General , 1742383831872> 37,260,614> -----------------------------------------
STACK TRACE
-----------------------------------------
Callframe at: getFontHeight
function: D:\pzserver\media\lua\client\ISUI\ISInventoryPaneContextMenu.lua -- file: ISInventoryPaneContextMenu.lua line # 13 | Vanilla
Callframe at: require
function: TrueSmoking.lua -- file: TrueSmoking.lua line # 2 | MOD: True Smoking
Callframe at: require
function: CantFinishSmokingOverride.lua -- file: CantFinishSmokingOverride.lua line # 1 | MOD: True Smoking

ERROR: General , 1742383831881> 37,260,622> ExceptionLogger.logException> Exception thrown java.lang.reflect.InvocationTargetException at NativeMethodAccessorImpl.invoke0 (Native Method).
ERROR: General , 1742383831881> 37,260,623> DebugLogStream.printException> Stack trace:
java.lang.reflect.InvocationTargetException
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: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.pcall(KahluaThread.java:1782)
at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:76)
at se.krka.kahlua.integration.LuaCaller.protectedCall(LuaCaller.java:117)
at zombie.Lua.LuaManager.RunLuaInternal(LuaManager.java:564)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:510)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:496)
at zombie.Lua.LuaManager$GlobalObject.require(LuaManager.java:3419)
at jdk.internal.reflect.GeneratedMethodAccessor11.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.pcall(KahluaThread.java:1782)
at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:76)
at se.krka.kahlua.integration.LuaCaller.protectedCall(LuaCaller.java:117)
at zombie.Lua.LuaManager.RunLuaInternal(LuaManager.java:564)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:510)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:496)
at zombie.Lua.LuaManager$GlobalObject.require(LuaManager.java:3419)
at jdk.internal.reflect.GeneratedMethodAccessor11.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.pcall(KahluaThread.java:1782)
at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:76)
at se.krka.kahlua.integration.LuaCaller.protectedCall(LuaCaller.java:117)
at zombie.Lua.LuaManager.RunLuaInternal(LuaManager.java:564)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:510)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:496)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:342)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:264)
at zombie.network.GameServer.doMinimumInit(GameServer.java:1417)
at zombie.network.GameServer.main(GameServer.java:688)
Caused by: java.lang.NullPointerException: Cannot invoke "zombie.core.fonts.AngelCodeFont.getLineHeight()" because "<local2>" is null
at zombie.ui.TextManager.getFontHeight(TextManager.java:232)
... 55 more
LOG : General , 1742383831882> 37,260,624> -----------------------------------------
STACK TRACE
-----------------------------------------
Callframe at: getFontHeight
function: D:\pzserver\media\lua\client\ISUI\ISInventoryPaneContextMenu.lua -- file: ISInventoryPaneContextMenu.lua line # 2392 | Vanilla
Callframe at: require
function: TrueSmoking.lua -- file: TrueSmoking.lua line # 2 | MOD: True Smoking
Callframe at: require
function: CantFinishSmokingOverride.lua -- file: CantFinishSmokingOverride.lua line # 1 | MOD: True Smoking

ERROR: General , 1742383831882> 37,260,624> ExceptionLogger.logException> Exception thrown java.lang.reflect.InvocationTargetException at NativeMethodAccessorImpl.invoke0 (Native Method).
ERROR: General , 1742383831882> 37,260,624> DebugLogStream.printException> Stack trace:
java.lang.reflect.InvocationTargetException
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: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.pcall(KahluaThread.java:1782)
at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:76)
at se.krka.kahlua.integration.LuaCaller.protectedCall(LuaCaller.java:117)
at zombie.Lua.LuaManager.RunLuaInternal(LuaManager.java:564)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:510)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:496)
at zombie.Lua.LuaManager$GlobalObject.require(LuaManager.java:3419)
at jdk.internal.reflect.GeneratedMethodAccessor11.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.pcall(KahluaThread.java:1782)
at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:76)
at se.krka.kahlua.integration.LuaCaller.protectedCall(LuaCaller.java:117)
at zombie.Lua.LuaManager.RunLuaInternal(LuaManager.java:564)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:510)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:496)
at zombie.Lua.LuaManager$GlobalObject.require(LuaManager.java:3419)
at jdk.internal.reflect.GeneratedMethodAccessor11.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.pcall(KahluaThread.java:1782)
at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:76)
at se.krka.kahlua.integration.LuaCaller.protectedCall(LuaCaller.java:117)
at zombie.Lua.LuaManager.RunLuaInternal(LuaManager.java:564)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:510)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:496)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:342)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:264)
at zombie.network.GameServer.doMinimumInit(GameServer.java:1417)
at zombie.network.GameServer.main(GameServer.java:688)
Caused by: java.lang.NullPointerException: Cannot invoke "zombie.core.fonts.AngelCodeFont.getLineHeight()" because "<local2>" is null
at zombie.ui.TextManager.getFontHeight(TextManager.java:232)
... 55 more
LOG : Lua , 1742383831884> 37,260,626> Loading: steamapps/workshop/content/108600/3142474424/mods/TrueSmoking/media/lua/server/TrueSmokingOverrides.lua
LOG : Lua , 1742383831889> 37,260,630> Loading: media/lua/client/TimedActions/ISEatFoodAction.lua
WARN : Lua , 1742383831889> 37,260,631> LuaManager.RunLua> recursive require(): D:/pzserver/steamapps/workshop/content/108600/3142474424/mods/TrueSmoking/media/lua/client/TrueSmoking.lua
LOG : Lua , 1742383831889> 37,260,631> Loading: steamapps/workshop/content/108600/3142474424/mods/TrueSmoking/media/lua/client/TrueSmokingUtils.lua
"




Then, later, a smaller stack trace:

"LOG : General , 1742383833465> 37,262,207> -------------------------------------------------------------
attempted index: init of non-table: null

LOG : General , 1742383833466> 37,262,207> -----------------------------------------
STACK TRACE
-----------------------------------------
function: init -- file: TrueSmoking.lua line # 283 | MOD: True Smoking

ERROR: General , 1742383833466> 37,262,208> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: init of non-table: null at KahluaThread.tableget line:1689.
ERROR: General , 1742383833466> 37,262,208> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: init of non-table: null
at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1689)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:492)
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:1812)
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:64)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:65)
at zombie.network.GameServer.doMinimumInit(GameServer.java:1441)
at zombie.network.GameServer.main(GameServer.java:688)
LOG : General , 1742383833466> 37,262,208> -----------------------------------------
STACK TRACE
-----------------------------------------
function: init -- file: TrueSmoking.lua line # 283 | MOD: True Smoking
"

No Idea what this one.

Using: Smoker Sounds Overhaul (loaded first), True Smoke, Smoker's Cough (loaded before True Smoke iirc).
I was facing an issue where it wouldn't let me launch the server, saying the mod was not installed. Weird error I've never gotten before, where it waits until after "loading world" to give me the popup and make me abort. I reinstalled and now when I try to load the server it waits until I've been in the black screen, almost in the game, then gives me a popup with red text saying

File doesn't exist on the client: media/lua/client/actions/takepuff.lua server: F:/SteamLibrary/SteamApps/common/ProjectZomboid/steamapps/workshop/content/108600/3142474424/mods/TrueSmoking/media/lua/client/actions/TakePuff.lua

Then it forces me to quit to desktop. I checked that directory and the file is there, I guess it just doesn't detect it for some reason. The only other mods I'm using that affect smoking are smoker and I Might Need A Lighter. I should note that I started this save with the mod enabled, but I realized it wasn't working because I forgot to enable the moodle dependency, so I relaunched it.
< >
Showing 1-15 of 15 comments
Per page: 1530 50