Project Zomboid

Project Zomboid

Advanced Trajectory's Realistic Overhaul
Tämä keskustelu on lukittu
[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)
`
< >
Näytetään 1-6 / 6 kommentista
Radon226  [kehittäjä] 19.12.2024 klo 18.46 
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.12.2024 klo 21.23 
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
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.
Viimeisin muokkaaja on ☣ KeXe5 ☢; 20.12.2024 klo 3.31
Radon226  [kehittäjä] 20.12.2024 klo 12.46 
I rolled out a patch yesterday. Let me know if issue occurs again.
Looks like the problem is gone now. You can close this :) Thanks for your fast fix!
Radon226  [kehittäjä] 21.12.2024 klo 0.21 
Glad to hear that it's fixed!
< >
Näytetään 1-6 / 6 kommentista
Sivua kohden: 1530 50