Project Zomboid

Project Zomboid

Vehicle Light Chime
 This topic has been pinned, so it's probably important
Daszh  [developer] 8 May, 2022 @ 10:11am
Bugreports + Issue Tracker
Known Issues:
- Dying in a car, under some circumstances, spams the console with errors until you respawn

Fixed Issues:
- Sound playing for every player in same car, instead of only once
- Sound playing for Yachts+Boats
- Sound always playing (caused by releasing a broken version, fixed)
- Error "isDriver of non-table", added an additional check
- Errors when using with Doomsday Motorhome
Last edited by Daszh; 31 May, 2023 @ 5:26am
< >
Showing 1-14 of 14 comments
현각성 9 May, 2022 @ 3:57am 
I'm a multiplayer. Solo player. I still can't make sound What's the problem?
Daszh  [developer] 9 May, 2022 @ 5:46am 
Originally posted by 현각성(호시):
I'm a multiplayer. Solo player. I still can't make sound What's the problem?

The mod checks the following things, could you verify this:
1. Car needs working engine
2. Car needs working battery
3. You need to sit in the drivers seat
4. (The obvious) Engine needs to be off and lights turned on

The first 1+2 you can test if you can start the car, or check the vehicle mechanics screen.
Last edited by Daszh; 9 May, 2022 @ 5:46am
현각성 9 May, 2022 @ 7:02am 
I've solved it. Thank you very much for your answer
Swept 21 May, 2022 @ 7:22pm 
function: ChimeTick -- file: VehicleChime.lua line # 33.
[21-05-22 22:15:41.162] ERROR: General , 1653185741162> 288,394,923> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: isDriver of non-table: null at KahluaThread.tableget line:1689..
[21-05-22 22:15:41.162] ERROR: General , 1653185741162> 288,394,923> DebugLogStream.printException> Stack trace:.
[21-05-22 22:15:41.163] LOG : General , 1653185741163> 288,394,925> -----------------------------------------
STACK TRACE
Daszh  [developer] 27 May, 2022 @ 7:43am 
Originally posted by Swept:
function: ChimeTick -- file: VehicleChime.lua line # 33.
[21-05-22 22:15:41.162] ERROR: General , 1653185741162> 288,394,923> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: isDriver of non-table: null at KahluaThread.tableget line:1689..
[21-05-22 22:15:41.162] ERROR: General , 1653185741162> 288,394,923> DebugLogStream.printException> Stack trace:.
[21-05-22 22:15:41.163] LOG : General , 1653185741163> 288,394,925> -----------------------------------------
STACK TRACE

Does this happen when entering a particular vehicle?
TogoLonghole 23 Jun, 2022 @ 1:08am 
from what ive seen so far its throwing errors for doomsday vehicle mod when entering the interior, some autotsar vehicle mods, errors definitely showed from the autotsar motorclub when i was interacting with bike/jetski
WaPaKs 2 Jul, 2022 @ 7:01am 
yup throwing erros also for me

unction: ChimeTick -- file: VehicleChime.lua line # 33.
[02-07-22 21:22:22.332] ERROR: General , 1656768142332> 28,756,130> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: isDriver of non-table: null at KahluaThread.tableget line:1689..
[02-07-22 21:22:22.332] ERROR: General , 1656768142332> 28,756,130> DebugLogStream.printException> Stack trace:.
[02-07-22 21:22:22.332] LOG : General , 1656768142332> 28,756,131> -----------------------------------------
STACK TRACE
Originally posted by Daszh:
Originally posted by Swept:
function: ChimeTick -- file: VehicleChime.lua line # 33.
[21-05-22 22:15:41.162] ERROR: General , 1653185741162> 288,394,923> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: isDriver of non-table: null at KahluaThread.tableget line:1689..
[21-05-22 22:15:41.162] ERROR: General , 1653185741162> 288,394,923> DebugLogStream.printException> Stack trace:.
[21-05-22 22:15:41.163] LOG : General , 1653185741163> 288,394,925> -----------------------------------------
STACK TRACE

Does this happen when entering a particular vehicle?


This occurred to a player of mine that died while in the car. So I guess the loop is still registered after they die, since technically they didn't leave the vehicle? I would offer a suggestion how to fix it but I don't know how to check for a null value there, but if its null it should probably deregister the event.
Novashrugs 7 Nov, 2022 @ 9:47am 
Repost from comments section:

Died in my car, got errors every millisecond.


function: ChimeTick -- file: VehicleChime.lua line # 33 | MOD: Vehicle Light Chime

ERROR: General , 1665803370418> 190,686,641> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: isDriver of non-table: null at KahluaThread.tableget line:1689.
ERROR: General , 1665803370418> 190,686,641> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: isDriver of non-table: null
[Other stuff, comment too long]
LOG : General , 1665803370420> 190,686,644> -----------------------------------------
STACK TRACE
Daszh  [developer] 26 Dec, 2022 @ 6:51am 
Hi Everyone

I've added an additional check for the error:
java.lang.RuntimeException: attempted index: isDriver of non-table: null
So it (hopefully) should not happen anymore.
GabeTeuton 8 Oct, 2023 @ 8:47pm 
The mod works perfectly, however maybe this is bug, not game breaking... but if you have no fuel even if the engine is 100% and battery 100% the chime is not activated when engine if off (at least with KI5 Range Rover).
Daszh  [developer] 24 Nov, 2023 @ 10:48am 
Originally posted by GabeTeuton:
The mod works perfectly, however maybe this is bug, not game breaking... but if you have no fuel even if the engine is 100% and battery 100% the chime is not activated when engine if off (at least with KI5 Range Rover).

Hi @GabeTeuton
I've checked the code, but there is no specific check for the fuel level. I use a function by the game called "isEngineWorking", maybe it considers the engine "not working" if there is no fuel.
I'll see if I can do some tests. :)
Thanks for the hint
giftiger 3 Oct, 2024 @ 8:26am 
This mod and Freds Night Vision Goggles have a conflict. With your mod enabled, u can remove unlimited amounts of batteries out of the goggles. No error log.... Would be really nice if you could look into it, I really want to play with both of your mods.
Last edited by giftiger; 3 Oct, 2024 @ 8:34am
Daszh  [developer] 21 Oct, 2024 @ 6:53am 
Originally posted by giftiger:
This mod and Freds Night Vision Goggles have a conflict. With your mod enabled, u can remove unlimited amounts of batteries out of the goggles. No error log.... Would be really nice if you could look into it, I really want to play with both of your mods.

I'll see if I can test this, very strange behavior since my mod does not change anything in the game, just checks if you are in a car and plays a sound if the lights are on and engine off.
Do you also have other mods installed?
Last edited by Daszh; 21 Oct, 2024 @ 6:53am
< >
Showing 1-14 of 14 comments
Per page: 1530 50