Project Zomboid

Project Zomboid

Advanced Trajectory's Realistic Overhaul
This topic has been locked
☣ KeXe5 ☢ 19 Dec, 2024 @ 12:14pm
[B41] LUA error when hitting vehicle with a weapon
I dont know how relevant is this because im still playing on B41 but received the following error, i suppose when i accidentally hit my vehicle with my shotgun:

`attempted index: penCount of non-table: null
function: hitVehicle -- file: Advanced_trajectory_core.lua line # 568 | MOD: Advanced Trajectory's Realistic Overhaul
function: checkCollision -- file: Advanced_trajectory_core.lua line # 2583 | MOD: Advanced Trajectory's Realistic Overhaul
function: updateProjectiles -- file: Advanced_trajectory_core.lua line # 2645 | MOD: Advanced Trajectory's Realistic Overhaul
function: checkontick -- file: Advanced_trajectory_core.lua line # 3226 | MOD: Advanced Trajectory's Realistic Overhaul
java.lang.RuntimeException: attempted index: penCount 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:92)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1624)
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)
`
< >
Showing 1-6 of 6 comments
Radon226  [developer] 19 Dec, 2024 @ 6:46pm 
I can't seem to replicate this error. Can you help to answer a few questions?

What shotgun were you using (is it from a mod)?
What ammo type?
Is this in singleplayer or multiplayer?
RB 19 Dec, 2024 @ 9:23pm 
Yeah i had the same thing happen.

In singleplayer

M9 pistol with 9mm ammo

I started getting this error when shooting a destroyed burned out vehicle https://pastebin.com/ReiMm7ij

Turned the mod on&off and restarted the game and seems to have fixed it. Still felt like leaving this here incase it's helpful
☣ KeXe5 ☢ 20 Dec, 2024 @ 3:20am 
In my case it was the Over & Under Shotgun from Firearms B41 Revamped
I think its using the default 12ga shotgun ammo.
Later i received a similar error when hit a car from a large distance with an M14 which is using the 7.62x51 ammo (can be found randomly as well or can be converted from the vanilla .308 ammo in the Firearms B41 Revamped mod)

I play in SP only.
Last edited by ☣ KeXe5 ☢; 20 Dec, 2024 @ 3:31am
Radon226  [developer] 20 Dec, 2024 @ 12:46pm 
I rolled out a patch yesterday. Let me know if issue occurs again.
☣ KeXe5 ☢ 20 Dec, 2024 @ 2:30pm 
Looks like the problem is gone now. You can close this :) Thanks for your fast fix!
Radon226  [developer] 21 Dec, 2024 @ 12:21am 
Glad to hear that it's fixed!
< >
Showing 1-6 of 6 comments
Per page: 1530 50