Project Zomboid

Project Zomboid

KillCount
Arkitekt 2023 年 8 月 28 日 下午 4:17
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.
< >
正在显示第 1 - 15 条,共 15 条留言
Arkitekt 2023 年 8 月 28 日 下午 4:30 
I am running More Traits - Dynamic submod.
benedu3095 2023 年 8 月 28 日 下午 6:31 
Same, I'm also getting errors after each kill now.
BB7 2023 年 8 月 28 日 下午 8:00 
Same here
Vulgar Calluna 2023 年 8 月 28 日 下午 8:25 
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 2023 年 8 月 28 日 下午 8:28 
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 2023 年 8 月 28 日 下午 10:23 
引用自 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  [开发者] 2023 年 8 月 29 日 上午 2:03 
@Arkitekt thank you for report.
@Wrench In The Plan thank you for workaround.
最后由 Tchernobill 编辑于; 2023 年 8 月 29 日 上午 2:05
Tchernobill  [开发者] 2023 年 8 月 29 日 上午 2:11 
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 2023 年 8 月 29 日 下午 5:53 
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:
最后由 benedu3095 编辑于; 2023 年 8 月 29 日 下午 5:54
Weima 2023 年 8 月 30 日 上午 9:20 
I am getting error too, even with thoso features disabled and mod updated i dont know how to fix it :/
Weima 2023 年 8 月 30 日 上午 9:21 
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  [开发者] 2023 年 8 月 30 日 上午 9:21 
@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.
最后由 Tchernobill 编辑于; 2023 年 8 月 30 日 上午 9:23
Weima 2023 年 8 月 30 日 上午 9:53 
Thanks , unsub and sub again after 5 min solved the problem no more red errors
Eddy63 9 月 25 日 上午 10:07 
since today's update 42.12.0. I get this error every time I kill a zombie

The kill also wasn't counted

`function: GetWeaponCategoryFromWeapon -- file: WeaponTypeKillCount.lua line # 61 | MOD: KillCount
function: addToKillCount -- file: WeaponTypeKillCount.lua line # 86 | MOD: KillCount
function: OnWeaponHitXp -- file: WeaponTypeKillCount.lua line # 170 | MOD: KillCount
java.lang.RuntimeException: Object tried to call nil in GetWeaponCategoryFromWeapon
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:101)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:817)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:174)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1826)
at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1653)
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:509)
at zombie.CombatManager.attackCollisionCheck(CombatManager.java:1282)
at zombie.ai.states.SwipeStatePlayer.OnAnimEvent_AttackCollisionCheck(SwipeStatePlayer.java:367)
at zombie.core.skinnedmodel.advancedanimation.events.AnimEventListenerWrapperNoTrackEnum.animEvent(AnimEventListenerWrapperNoTrackEnum.java:31)
at zombie.core.skinnedmodel.advancedanimation.events.AnimEventListenerWrapperNoTrackEnum.animEvent(AnimEventListenerWrapperNoTrackEnum.java:25)
at zombie.core.skinnedmodel.advancedanimation.events.AnimEventBroadcaster.animEvent(AnimEventBroadcaster.java:106)
at zombie.ai.State.animEvent(State.java:48)
at zombie.ai.StateMachine.lambda$stateAnimEvent$4(StateMachine.java:310)
at zombie.util.lambda.Consumers$Params4$CallbackStackItem.accept(Consumers.java:210)
at zombie.util.list.PZArrayUtil.forEach(PZArrayUtil.java:1110)
at zombie.util.Lambda.lambda$forEachFrom$7(Lambda.java:307)
at zombie.util.lambda.Stacks$Params7$CallbackStackItem.invoke(Stacks.java:487)
at zombie.util.lambda.Stacks$GenericStack.invokeAndRelease(Stacks.java:26)
at zombie.util.Lambda.capture(Lambda.java:164)
at zombie.util.Lambda.forEachFrom(Lambda.java:304)
at zombie.ai.StateMachine.stateAnimEvent(StateMachine.java:306)
at zombie.characters.IsoGameCharacter.OnAnimEvent(IsoGameCharacter.java:4754)
at zombie.characters.IsoPlayer.OnAnimEvent(IsoPlayer.java:9227)
at zombie.core.skinnedmodel.advancedanimation.AdvancedAnimator.invokeAnimEvent(AdvancedAnimator.java:310)
at zombie.core.skinnedmodel.advancedanimation.AdvancedAnimator.OnAnimEvent(AdvancedAnimator.java:302)
at zombie.core.skinnedmodel.advancedanimation.AnimLayer.invokeAnimEvent(AnimLayer.java:287)
at zombie.core.skinnedmodel.advancedanimation.AnimLayer.updateInternal(AnimLayer.java:597)
at zombie.core.skinnedmodel.advancedanimation.AnimLayer.Update(AnimLayer.java:476)
at zombie.core.skinnedmodel.advancedanimation.SubLayerSlot.update(SubLayerSlot.java:40)
at zombie.core.skinnedmodel.advancedanimation.AdvancedAnimator.updateInternal(AdvancedAnimator.java:565)
at zombie.core.skinnedmodel.advancedanimation.AdvancedAnimator.update(AdvancedAnimator.java:513)
at zombie.characters.IsoGameCharacter.postUpdateInternal(IsoGameCharacter.java:13187)
at zombie.characters.IsoGameCharacter.postupdate(IsoGameCharacter.java:13119)
at zombie.characters.IsoPlayer.postupdateInternal(IsoPlayer.java:3788)
at zombie.characters.IsoPlayer.postupdate(IsoPlayer.java:3781)
at zombie.MovingObjectUpdateSchedulerUpdateBucket.postupdate(MovingObjectUpdateSchedulerUpdateBucket.java:89)
at zombie.MovingObjectUpdateScheduler.postupdate(MovingObjectUpdateScheduler.java:180)
at zombie.iso.IsoWorld.updateWorld(IsoWorld.java:4216)
at zombie.iso.IsoWorld.updateInternal(IsoWorld.java:4323)
at zombie.iso.IsoWorld.update(IsoWorld.java:4237)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1700)
at zombie.gameStates.IngameState.update(IngameState.java:1465)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:87)
at zombie.GameWindow.logic(GameWindow.java:386)
at zombie.GameWindow.frameStep(GameWindow.java:923)
at zombie.GameWindow.mainThreadStep(GameWindow.java:647)
at zombie.MainThread.mainLoop(MainThread.java:76)
at java.base/java.lang.Thread.run(Unknown Source)
`
最后由 Eddy63 编辑于; 9 月 25 日 上午 10:08
Tchernobill  [开发者] 9 月 25 日 下午 1:12 
Version 1.29 is partially handling the problems. see description changes.
< >
正在显示第 1 - 15 条,共 15 条留言
每页显示数: 1530 50