Project Zomboid

Project Zomboid

KillCount
Arkitekt 28 Aug, 2023 @ 4:17pm
Getting an error every kill after update.
`function: OnClientCommand -- file: KillCountServer.lua line # 22 | MOD: KillCount
function: OnPlayerUpdate -- file: KillCountClient.lua line # 48 | MOD: KillCount
java.lang.RuntimeException: attempted index of non-table
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82)
at se.krka.kahlua.vm.KahluaUtil.luaAssert(KahluaUtil.java:70)
at se.krka.kahlua.vm.KahluaThread.tableSet(KahluaThread.java:1726)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:594)
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:92)
at zombie.characters.IsoPlayer.updateInternal2(IsoPlayer.java:2141)
at zombie.characters.IsoPlayer.updateInternal1(IsoPlayer.java:1935)
at zombie.util.lambda.Invokers$Params1$CallbackStackItem.run(Invokers.java:37)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.core.profiling.AbstractPerformanceProfileProbe.lambda$invokeAndMeasure$0(AbstractPerformanceProfileProbe.java:83)
at zombie.util.lambda.Stacks$Params3$CallbackStackItem.invoke(Stacks.java:230)
at zombie.util.lambda.Stacks$GenericStack.invokeAndRelease(Stacks.java:26)
at zombie.util.Lambda.capture(Lambda.java:130)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:81)
at zombie.characters.IsoPlayer.update(IsoPlayer.java:1924)
at zombie.MovingObjectUpdateSchedulerUpdateBucket.update(MovingObjectUpdateSchedulerUpdateBucket.java:79)
at zombie.MovingObjectUpdateScheduler.update(MovingObjectUpdateScheduler.java:145)
at zombie.iso.IsoCell.ProcessObjects(IsoCell.java:2955)
at zombie.iso.IsoCell.updateInternal(IsoCell.java:5750)
at zombie.util.lambda.Invokers$Params1$CallbackStackItem.run(Invokers.java:37)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.core.profiling.AbstractPerformanceProfileProbe.lambda$invokeAndMeasure$0(AbstractPerformanceProfileProbe.java:83)
at zombie.util.lambda.Stacks$Params3$CallbackStackItem.invoke(Stacks.java:230)
at zombie.util.lambda.Stacks$GenericStack.invokeAndRelease(Stacks.java:26)
at zombie.util.Lambda.capture(Lambda.java:130)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:81)
at zombie.iso.IsoCell.update(IsoCell.java:5696)
at zombie.iso.IsoWorld.updateInternal(IsoWorld.java:3499)
at zombie.util.lambda.Invokers$Params1$CallbackStackItem.run(Invokers.java:37)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.core.profiling.AbstractPerformanceProfileProbe.lambda$invokeAndMeasure$0(AbstractPerformanceProfileProbe.java:83)
at zombie.util.lambda.Stacks$Params3$CallbackStackItem.invoke(Stacks.java:230)
at zombie.util.lambda.Stacks$GenericStack.invokeAndRelease(Stacks.java:26)
at zombie.util.Lambda.capture(Lambda.java:130)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:81)
at zombie.iso.IsoWorld.update(IsoWorld.java:3427)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1617)
at zombie.gameStates.IngameState.update(IngameState.java:1333)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
at zombie.GameWindow.logic(GameWindow.java:298)
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)
`

I tried a new save, and still getting this error.
< >
Showing 1-13 of 13 comments
Arkitekt 28 Aug, 2023 @ 4:30pm 
I am running More Traits - Dynamic submod.
benedu3095 28 Aug, 2023 @ 6:31pm 
Same, I'm also getting errors after each kill now.
BB7 28 Aug, 2023 @ 8:00pm 
Same here
Wrench In The Plan 28 Aug, 2023 @ 8:25pm 
Go into the sandbox options (either through one of those mods that lets one change sandbox options or when starting a new game) and untick the "Share kills" and "Track Dead Scores" options. I'm not sure which specific one causes the issue, but if you're playing Solo, I don't think you're going to need either feature. Tested it myself, and the error badges no longer appeared when I killed zombies.
Ziodyne967 28 Aug, 2023 @ 8:28pm 
Oh, thank god I'm not the only one who got the error. I'm wondering what to do next. Unsubbed and subbed back, but that hasn't worked.
Arkitekt 28 Aug, 2023 @ 10:23pm 
Originally posted by Wrench In The Plan:
Go into the sandbox options (either through one of those mods that lets one change sandbox options or when starting a new game) and untick the "Share kills" and "Track Dead Scores" options.

Thank you! That fixed it for me as well.
Tchernobill  [developer] 29 Aug, 2023 @ 2:03am 
@Arkitekt thank you for report.
@Wrench In The Plan thank you for workaround.
Last edited by Tchernobill; 29 Aug, 2023 @ 2:05am
Tchernobill  [developer] 29 Aug, 2023 @ 2:11am 
Version 1.26 should correct the error on kill.
Can one of you retest if they have errors after re-ticking Share kills and Track Dead Scores and then restart their game ?
benedu3095 29 Aug, 2023 @ 5:53pm 
I was having the error yesterday and I didn't untick those two options. After today's update, it's working as intended, no problems on my end now.
:steamthumbsup:
Last edited by benedu3095; 29 Aug, 2023 @ 5:54pm
Weima 30 Aug, 2023 @ 9:20am 
I am getting error too, even with thoso features disabled and mod updated i dont know how to fix it :/
Weima 30 Aug, 2023 @ 9:21am 
Its really pain in the ass because around 1000 errors my game will be like very buggy with a lot whit sprites and invisible zombies ultil i reset
Tchernobill  [developer] 30 Aug, 2023 @ 9:21am 
@Vitão ! as always: stop the game, unsubscribe, wait 5 minutes, resubscribe restart the game.
I do not know what you are talking about. it is only red errors that were caused by previous versions. your other problems are unrelated.
Last edited by Tchernobill; 30 Aug, 2023 @ 9:23am
Weima 30 Aug, 2023 @ 9:53am 
Thanks , unsub and sub again after 5 min solved the problem no more red errors
< >
Showing 1-13 of 13 comments
Per page: 1530 50