Project Zomboid

Project Zomboid

Proper Vehicle Injuries for MP [B41 & B42]
 이 토론은 고정되었습니다. 중요해서 그렇겠죠?
Fluffy89  [개발자] 2023년 7월 23일 오전 9시 02분
Bugs & Issues
Please report bugs and potential issues here!
< >
전체 댓글 38개 중 1~15개 표시 중
Rabbit 2023년 8월 29일 오전 12시 14분 
Gave myself a medium impact injury just by stopping on a motorcycle. Hit nothing other than the brakes - what setting should I adjust in the sandbox options to make it less likely to think that regular heavy-braking isn't an actual collision?
Fluffy89  [개발자] 2023년 8월 29일 오후 1시 01분 
Rabbit 님이 먼저 게시:
Gave myself a medium impact injury just by stopping on a motorcycle. Hit nothing other than the brakes - what setting should I adjust in the sandbox options to make it less likely to think that regular heavy-braking isn't an actual collision?

Adjust the interval sandbox option. It changes how many in game ticks must pass by before the mod will check again if you have been in a collision. The lower the number, the more frequent it will check.

By default, an interval of 30 in game ticks per collision check is enough for all vanilla vehicles with speed demon, but modded vehicles can be more touchy when it comes to braking/accelerating.
Fluffy89 님이 마지막으로 수정; 2023년 8월 29일 오후 1시 01분
Rabbit 2023년 8월 29일 오후 9시 06분 
So those of us hemorrhaging our guts via our seatbelts need to turn that option to a LOWer number, right?.. So that it sees the braking happen as a curve rather than just assuming that we hit an invisible brick wall, is that the correct direction to go?

Just want to make sure I have it in mind right before I get all zoomie again. I love how the mod works, I just gotta get it set right for these zippy bikes.
Fluffy89  [개발자] 2023년 8월 29일 오후 10시 00분 
Rabbit 님이 먼저 게시:
So those of us hemorrhaging our guts via our seatbelts need to turn that option to a LOWer number, right?.. So that it sees the braking happen as a curve rather than just assuming that we hit an invisible brick wall, is that the correct direction to go?

Just want to make sure I have it in mind right before I get all zoomie again. I love how the mod works, I just gotta get it set right for these zippy bikes.

On the right track, but only the host/config for the dedicated server needs to change their/its sandbox options.

If you're hosting via the 'Host' button in Zomboid, you can edit the server profile and the mods sandbox options there. If your hosting a dedicated server, you'll need to find and edit the config file, or set the sandbox options via the admin panel in game and restart the server.

When you set the interval lower, it basically lowers the time between checks for a collision. So if you lower it from 30 to say, 15, it will check your speed difference twice as often, meaning you would need to accelerate twice as hard to get the same injuries as you currently have.

Hope this helps!
Rabbit 2023년 8월 30일 오후 5시 02분 
That's basically how I was thinking, but just playing in SP here and speaking in plural because I'm sure there are other player's who'd benefit from the clarification. Great mod, and thank you!
Fluffy89  [개발자] 2023년 8월 30일 오후 5시 10분 
Rabbit 님이 먼저 게시:
That's basically how I was thinking, but just playing in SP here and speaking in plural because I'm sure there are other player's who'd benefit from the clarification. Great mod, and thank you!

Appreciated! Hope all goes well :)
Agitatio 2023년 12월 4일 오전 10시 07분 
Don't know if these are helpful, but they came up after Working Seatbelts update. On collision. But I bet you already know the issue judging from you conversation with the author.
attempted index: getValue of non-table: null function: initWorkingSeatbeltCompatibility -- file: ProperVehicleInjuries_Client.lua line # 375 | MOD: ProperVehicleInjuriesMP function: initMod -- file: ProperVehicleInjuries_Client.lua line # 478 | MOD: ProperVehicleInjuriesMP java.lang.RuntimeException: attempted index: getValue 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:65) at zombie.gameStates.IngameState.enter(IngameState.java:737) at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:145) 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)
function: doMultiInjury -- file: ProperVehicleInjuries_Client.lua line # 274 | MOD: ProperVehicleInjuriesMP function: checkCollision -- file: ProperVehicleInjuries_Client.lua line # 345 | MOD: ProperVehicleInjuriesMP java.lang.RuntimeException: __sub not defined for operands in doMultiInjury at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82) at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:676) 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)
Agitatio 님이 마지막으로 수정; 2023년 12월 4일 오전 10시 08분
Fluffy89  [개발자] 2023년 12월 4일 오전 11시 21분 
Agitatio 님이 먼저 게시:
Don't know if these are helpful, but they came up after Working Seatbelts update. On collision. But I bet you already know the issue judging from you conversation with the author.
attempted index: getValue of non-table: null function: initWorkingSeatbeltCompatibility -- file: ProperVehicleInjuries_Client.lua line # 375 | MOD: ProperVehicleInjuriesMP function: initMod -- file: ProperVehicleInjuries_Client.lua line # 478 | MOD: ProperVehicleInjuriesMP java.lang.RuntimeException: attempted index: getValue 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:65) at zombie.gameStates.IngameState.enter(IngameState.java:737) at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:145) 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)
function: doMultiInjury -- file: ProperVehicleInjuries_Client.lua line # 274 | MOD: ProperVehicleInjuriesMP function: checkCollision -- file: ProperVehicleInjuries_Client.lua line # 345 | MOD: ProperVehicleInjuriesMP java.lang.RuntimeException: __sub not defined for operands in doMultiInjury at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82) at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:676) 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)

Yes, the issue stems from their major update this morning, the name for sandbox options have changed so PVI is throwing a fit because the options technically no longer exist.

Im at University for another 4 or so hours, but Ill push out an update fixing the issue once Im home.
Fluffy89  [개발자] 2023년 12월 4일 오후 3시 40분 
Agitatio 님이 먼저 게시:
Don't know if these are helpful, but they came up after Working Seatbelts update. On collision. But I bet you already know the issue judging from you conversation with the author.
attempted index: getValue of non-table: null function: initWorkingSeatbeltCompatibility -- file: ProperVehicleInjuries_Client.lua line # 375 | MOD: ProperVehicleInjuriesMP function: initMod -- file: ProperVehicleInjuries_Client.lua line # 478 | MOD: ProperVehicleInjuriesMP java.lang.RuntimeException: attempted index: getValue 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:65) at zombie.gameStates.IngameState.enter(IngameState.java:737) at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:145) 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)
function: doMultiInjury -- file: ProperVehicleInjuries_Client.lua line # 274 | MOD: ProperVehicleInjuriesMP function: checkCollision -- file: ProperVehicleInjuries_Client.lua line # 345 | MOD: ProperVehicleInjuriesMP java.lang.RuntimeException: __sub not defined for operands in doMultiInjury at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82) at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:676) 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)

I'm home and have uploaded a fix so PVI should behave as previously, airbags will have to wait on compatibility as I'm finishing up my term at uni, so this will probably wait until winter break.

The stacktrace you posted is quite helpful by the way, in this case I was already made aware of the issue my the Working Seatbelts author, but the stacktrace otherwise is a huge help in diagnosing issues.
Bambino 2023년 12월 13일 오전 8시 40분 
Currently using an interval of 15 in MP. Players are reporting taking damage for using the handbrake and turning while not colliding with anything. If it matters, we are using Filibuster Rhymes' Used Cars. It's also quite random - I cannot recreate the issue on command.
Bambino 님이 마지막으로 수정; 2023년 12월 13일 오전 8시 58분
Fluffy89  [개발자] 2023년 12월 13일 오전 10시 53분 
Bambino 님이 먼저 게시:
Currently using an interval of 15 in MP. Players are reporting taking damage for using the handbrake and turning while not colliding with anything. If it matters, we are using Filibuster Rhymes' Used Cars. It's also quite random - I cannot recreate the issue on command.

Lowering the interval slightly to 10 should fix the issue, without hitting things at least.

It also appears quite random most likely because slowing down your momentum really quickly is causing a low severity injury, which by default only has like a 30% chance for the scratch to apply.

Hope this helps!
Fluffy89 님이 마지막으로 수정; 2023년 12월 13일 오전 10시 54분
Foxenn 2024년 5월 28일 오전 7시 24분 
I did you you said, even lowered the interval to 5 but it was still happening, and has caused deaths for some of my server users, the mod is fantastic but because of this issue i have to remove it for the health of my server, im sorry :(
Fluffy89  [개발자] 2024년 5월 28일 오후 9시 36분 
Foxenn 님이 먼저 게시:
I did you you said, even lowered the interval to 5 but it was still happening, and has caused deaths for some of my server users, the mod is fantastic but because of this issue i have to remove it for the health of my server, im sorry :(

Hi! I'm sorry to hear that PVI has caused issues for your server :(

With an interval as low as 5 ticks, unintentional injuries via braking extremely hard is impossible in all my testing. By 'has caused deaths for some of my server users' are you meaning that the injuries from a car crash are causing deaths, they're dying on impact (when the option is unticked and/or chance is at 0%), or they are randomly dying when a vehicle breaks hard?

Since I haven't gotten any widespread reports of this issue past vehicles that accelerate/brake very hard causing low severity injuries, I'd appreciate any and all info you can give me to help diagnose if this is a more widespread issue with PVI, or a more local issue.
Rachel L 2025년 1월 1일 오후 8시 37분 
Hey, i am having some weird interaction between this mod and non vanilla vehicles.
Its on b42
The mod of the vehicle is this one:
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3217685049

Truck: Dash Highwayman (pzkFreightlinerFlat)
Situation: Whenever something makes the truck moves like hitting something, running over some dead zombies, or anything like that. Example in the vids:
https://streamable.com/e3iaxg
https://streamable.com/msnruz
Fluffy89  [개발자] 2025년 1월 2일 오후 2시 47분 
Rachel L 님이 먼저 게시:
Hey, i am having some weird interaction between this mod and non vanilla vehicles.
Its on b42
The mod of the vehicle is this one:
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3217685049

Truck: Dash Highwayman (pzkFreightlinerFlat)
Situation: Whenever something makes the truck moves like hitting something, running over some dead zombies, or anything like that. Example in the vids:
https://streamable.com/e3iaxg
https://streamable.com/msnruz

My best guess is this is a build 42 bug since its very much still in its unstable stages as far as I know. PVI itself doesn't actually change any behaviour of the vanilla game, and instead sort of 'observes' what is happening as you drive, and acting accordingly.

It doesn't touch any visual, of physics components of PZ.

However, from personal experience I've noticed trucks and trailers can be particularly problematic, and show some weird physics behaviours.

Can you try testing again with PVI disabled and see if the issues still occur? I'm guessing there are some kinks with B42 and vehicles that TIS will have to iron out as the build is refined amd updated.
< >
전체 댓글 38개 중 1~15개 표시 중
페이지당 표시 개수: 1530 50