Project Zomboid

Project Zomboid

Bow and Arrow
G-t01l3t. 1 Feb, 2022 @ 2:44am
Error Log - Continuous errors -
I 'think' I was receiving these errors when I was in a car, driver side, parallel to a wall. Zambies were around trying to get me.

I'm thinking (wild guess) that this 'might' have something to do with AutoLoot mod? Or not.

Of note: Also received a bunch of 'square is nil' (not errors) when I was in the car and the zambies couldn't get me. No idea how any of this is related to errors blowing up from 'MandelaBowAndArrowClient.lua'


LOG : General , 1643710262107> -----------------------------------------
STACK TRACE
-----------------------------------------
Callframe at: removeFromSquare
function: onPlayerUpdate -- file: MandelaBowAndArrowClient.lua line # 471

ERROR: General , 1643710262107> ExceptionLogger.logException> Exception thrown java.lang.reflect.InvocationTargetException at GeneratedMethodAccessor1074.invoke.
ERROR: General , 1643710262108> DebugLogStream.printException> Stack trace:
java.lang.reflect.InvocationTargetException
at jdk.internal.reflect.GeneratedMethodAccessor1074.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.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:88)
at zombie.characters.IsoPlayer.updateInternal2(IsoPlayer.java:2074)
at zombie.characters.IsoPlayer.updateInternal1(IsoPlayer.java:1866)
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:1858)
at zombie.MovingObjectUpdateSchedulerUpdateBucket.update(MovingObjectUpdateSchedulerUpdateBucket.java:79)
at zombie.MovingObjectUpdateScheduler.update(MovingObjectUpdateScheduler.java:145)
at zombie.iso.IsoCell.ProcessObjects(IsoCell.java:2929)
at zombie.iso.IsoCell.updateInternal(IsoCell.java:5718)
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:5664)
at zombie.iso.IsoWorld.updateInternal(IsoWorld.java:3334)
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:3262)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1666)
at zombie.gameStates.IngameState.update(IngameState.java:1367)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
at zombie.GameWindow.logic(GameWindow.java:289)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:745)
at zombie.GameWindow.run_ez(GameWindow.java:647)
at zombie.GameWindow.mainThread(GameWindow.java:475)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: Cannot invoke "zombie.iso.IsoChunk.recalcHashCodeObjects()" because "this.square.chunk" is null
at zombie.iso.objects.IsoWorldInventoryObject.removeFromSquare(IsoWorldInventoryObject.java:776)
... 55 more
< >
Showing 1-15 of 17 comments
YuroKashine 3 Mar, 2022 @ 1:32pm 
Same here

STACK TRACE
-----------------------------------------
Callframe at: removeFromSquare
function: onPlayerUpdate -- file: MandelaBowAndArrowClient.lua line # 471.
[03-03-22 22:28:50.865] ERROR: General , 1646342930865> 1.893.710.154> ExceptionLogger.logException> Exception thrown java.lang.reflect.InvocationTargetException at GeneratedMethodAccessor6071.invoke..
[03-03-22 22:28:50.865] ERROR: General , 1646342930865> 1.893.710.154> DebugLogStream.printException> Stack trace:.
[03-03-22 22:28:50.868] LOG : General , 1646342930868> 1.893.710.156> Bow and Arrow mod Error: Square is nil (2) 1 2.
[03-03-22 22:28:50.868] LOG : General , 1646342930868> 1.893.710.156> ArrowX, ArrowY, ArrowZ: nan nan nan.
[03-03-22 22:28:50.868] LOG : General , 1646342930868> 1.893.710.156> player:getX(), player:getY(), player:getZ(): 8147.638671875 11478.9736328125 0.
[03-03-22 22:28:50.868] LOG : General , 1646342930868> 1.893.710.157> Cell, targetCell zombie.iso.IsoCell@2d7ac2ab zombie.iso.IsoCell@2d7ac2ab.
[03-03-22 22:28:50.868] LOG : General , 1646342930868> 1.893.710.157> Cell:getGridSquare(ArrowX,ArrowY,ArrowZ) nil.
[03-03-22 22:28:50.868] LOG : General , 1646342930868> 1.893.710.157> targetCell:getGridSquare(ArrowX,ArrowY,ArrowZ) nil.
[03-03-22 22:28:50.882] LOG : General , 1646342930882> 1.893.710.171> -----------------------------------------
STACK TRACE
dtoxic 6 Nov, 2022 @ 4:56am 
Got this error when firing arrow, i think it has something to do with arrow display angles while arrow is inflight


LOG : General , 1667739074309> -----------------------------------------
STACK TRACE
-----------------------------------------
function: onPlayerUpdate -- file: MandelaBowAndArrowClient.lua line # 738 | MOD: Bow and Arrow

ERROR: General , 1667739074309> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: setWorldZRotation of non-table: null at KahluaThread.tableget line:1689.
ERROR: General , 1667739074309> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: setWorldZRotation 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.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:2140)
at zombie.characters.IsoPlayer.updateInternal1(IsoPlayer.java:1934)
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:1923)
at zombie.MovingObjectUpdateSchedulerUpdateBucket.update(MovingObjectUpdateSchedulerUpdateBucket.java:79)
at zombie.MovingObjectUpdateScheduler.update(MovingObjectUpdateScheduler.java:145)
at zombie.iso.IsoCell.ProcessObjects(IsoCell.java:2927)
at zombie.iso.IsoCell.updateInternal(IsoCell.java:5722)
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:5668)
at zombie.iso.IsoWorld.updateInternal(IsoWorld.java:3479)
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:3407)
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:297)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:764)
at zombie.GameWindow.run_ez(GameWindow.java:680)
at zombie.GameWindow.mainThread(GameWindow.java:494)
at java.base/java.lang.Thread.run(Unknown Source)
LOG : General , 1667739074312> -----------------------------------------
STACK TRACE
-----------------------------------------
function: onPlayerUpdate -- file: MandelaBowAndArrowClient.lua line # 738 | MOD: Bow and Arrow

LOG : General , 1667739074312>
LOG : General , 1667739074522> creating new sourcewindow: E:/Games HDD/PZ_Test/Saves/mods/Mandela Bow and Arrow/media/lua/client/MandelaBowAndArrowClient.lua
LOG : General , 1667739079998> Bow and Arrow mod Error: Square is nil (2) 1 1
LOG : General , 1667739079999> ArrowX, ArrowY, ArrowZ: 11764.685321601979 8841.076319510435 1.0637002133093694
LOG : General , 1667739079999> player:getX(), player:getY(), player:getZ(): 11759.5888671875 8839.5712890625 0
LOG : General , 1667739080000> Cell, targetCell zombie.iso.IsoCell@81b4c29 zombie.iso.IsoCell@81b4c29
LOG : General , 1667739080000> Cell:getGridSquare(ArrowX,ArrowY,ArrowZ) nil
LOG : General , 1667739080000> targetCell:getGridSquare(ArrowX,ArrowY,ArrowZ) nil
LOG : General , 1667739080001> -------------------------------------------------------------
attempted index: setWorldZRotation of non-table: null
Setraced 8 Nov, 2022 @ 4:04pm 
For me is: ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: getWorldObjects of non-table: null at KahluaThread.tableget line:1689..

happens when I kill a zombie with a the arrow. Sometimes I kill a zombie with other object and an arrow spawn in the zombie's body with the saying "(you are no supose to see this)"
Gluten the Sensitive  [developer] 10 Nov, 2022 @ 1:22pm 
What line in the Lua file does it give for the stack trace?
Rikki Nakesone 7 Dec, 2022 @ 11:12am 
Callframe at: se.krka.kahlua.integration.expose.MultiLuaJavaInvoker@31945081
function: onPlayerUpdate -- file: MandelaBowAndArrowClient.lua line # 716 | MOD: Bow and Arrow.
[07-12-22 19:02:17.796] ERROR: General , 1670439737796> ExceptionLogger.logException> Exception thrown java.lang.reflect.InvocationTargetException at GeneratedMethodAccessor1148.invoke..
[07-12-22 19:02:17.796] ERROR: General , 1670439737796> DebugLogStream.printException> Stack trace:.
[07-12-22 19:02:17.812] LOG : General , 1670439737812> -----------------------------------------
STACK TRACE

I just get this on repeat on trying to shoot a zombie, the mod worked for a couple hours until i wanted to shoot toward the top of my screen.
Gluten the Sensitive  [developer] 20 Dec, 2022 @ 1:18pm 
More detail plz, for working out how it happened or happens.
Æon 23 Mar, 2023 @ 9:04pm 
Got the same error last night when trying the mod out in debug mode. Not sure how to replicate it tough.
GameServer.mainLoopDealWithNetData> Error with packet of type: AddXP for admin
java.lang.NullPointerException: Cannot invoke "zombie.characters.skills.PerkFactory$Perk.getType()" because "<local6>" is null
at zombie.characters.IsoGameCharacter$XP.AddXP(IsoGameCharacter.java:14848)
at zombie.network.packets.AddXp.process(AddXp.java:52)
at zombie.network.GameServer.receiveAddXp(GameServer.java:1276)
at zombie.network.PacketTypes$PacketType.onServerPacket(PacketTypes.java:1022)
at zombie.network.GameServer.mainLoopDealWithNetData(GameServer.java:1532)
at zombie.network.GameServer.main(GameServer.java:800)
receiveObjectModData: index=-1 is invalid x,y,z=8038,11572,0
Gluten the Sensitive  [developer] 6 Apr, 2023 @ 8:23am 
Is that in multiplayer?
Yes. Server on Ubuntu 20.04
Gluten the Sensitive  [developer] 11 Apr, 2023 @ 2:13pm 
Maybe gaining XP needs to be server-side instead of client-side after a game update. I will investigate this eventually...
Originally posted by Gluten the Sensitive:
Maybe gaining XP needs to be server-side instead of client-side after a game update. I will investigate this eventually...

thank you.
Gluten the Sensitive  [developer] 13 Apr, 2023 @ 12:33pm 
I tried making xp gain server side, and although the code ran without an error message, the character (on the client at least) did not gain xp......
I have a similar issue (This was in singleplayer btw). I ended up receiving this error with the items in "Brita's Armor Pack," whilst hovering over the clothing items. Their tooltip info was missing, and kept generating this error:

Callframe at: se.krka.kahlua.integration.expose.MultiLuaJavaInvoker@46610183
function: render -- file: ISToolTipInv.lua line # 78 | Vanilla
function: render -- file: MandelaBowAndArrowClient.lua line # 1203 | MOD: Bow and Arrow.
[09-06-23 23:30:24.557] ERROR: General , 1686367824557> ExceptionLogger.logException> Exception thrown java.lang.reflect.InvocationTargetException at GeneratedMethodAccessor602.invoke..
[09-06-23 23:30:24.557] ERROR: General , 1686367824557> DebugLogStream.printException> Stack trace:.
[09-06-23 23:30:24.566] LOG : General , 1686367824566> -----------------------------------------
STACK TRACE

Dunno what the connection is, but Brita's didn't give any errors, just this mod. Haven't been able to replicate it yet, will try to give more info as best I can
Last edited by Jack The Ripper.357; 9 Jun, 2023 @ 8:55pm
Gluten the Sensitive  [developer] 27 Jun, 2023 @ 12:00pm 
Probably this mod hooks the tooltip render function last in the list, which is why it's listed as the function calling the original tooltip function. The line in the original code that fails is "self.item:DoTooltip(self.tooltip);". I don't know why that fails. I remember there's a more detailed error log file somewhere. I don't know where it is though.
< >
Showing 1-15 of 17 comments
Per page: 1530 50