Project Zomboid

Project Zomboid

Advanced Trajectory's Realistic Overhaul
Denne tråd er blevet låst
☣ KeXe5 ☢ 19. dec. 2024 kl. 12:14
[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)
`
< >
Viser 1-6 af 6 kommentarer
Radon226  [udvikler] 19. dec. 2024 kl. 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. dec. 2024 kl. 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
☣ KeXe5 ☢ 20. dec. 2024 kl. 3:20 
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.
Sidst redigeret af ☣ KeXe5 ☢; 20. dec. 2024 kl. 3:31
Radon226  [udvikler] 20. dec. 2024 kl. 12:46 
I rolled out a patch yesterday. Let me know if issue occurs again.
☣ KeXe5 ☢ 20. dec. 2024 kl. 14:30 
Looks like the problem is gone now. You can close this :) Thanks for your fast fix!
Radon226  [udvikler] 21. dec. 2024 kl. 0:21 
Glad to hear that it's fixed!
< >
Viser 1-6 af 6 kommentarer
Per side: 1530 50