Project Zomboid

Project Zomboid

Lingering Whispers...
SK1107 Oct 19, 2022 @ 8:51am
possible bug report
There is no error when I apply the mode and start it for the first time. However, when attempting to attack a zombie with or without a weapon (left-click on the zombie within range), an error occurs in the mode.

No sentences appear in the zombie, and when I checked the mode list after pressing esc during the game, I checked the "[error] Lingering Whispers" sentence in red.

I tried to determine the cause of the error through console.txt, and I was able to get this. (This may not be the cause of the error. In that case, I'm sorry.)

Callframe at: addWorldSoundUnlessInvisible
function: OnWeaponHitCharacter -- file: main.lua line # 95 | MOD: Lingering Voices

LOG : General , 1666193810230> -----------------------------------------
STACK TRACE

The above message was repeated several times within console.txt.

Is the 95th line of the main.lua file of the mode the problem?

I repeated the reinstallation of the mode several times, and even though I tried to start a new game with only that mode applied, all attempts failed.

Or is there a problem with my game file...?

For your information, the error box (the red box that appears in the lower right corner of the screen when the error occurs) was not shown.
< >
Showing 1-7 of 7 comments
Stormbox Oct 20, 2022 @ 4:06am 
Callframe at: addWorldSoundUnlessInvisible
function: OnWeaponHitCharacter -- file: main.lua line # 95 | MOD: Lingering Voices

It'll dump the sever with error logs. Especially if you have lots of players online at a time fighting zombies.

I personally removed that part of the line and problem solved. I'm not sure if that part of the coding was meant for PVP or PVE. Since it had character instead of zombie in the code.

All I know, after removing that line. No errors here, for now.
SK1107 Oct 20, 2022 @ 8:52am 
Originally posted by Hazy Lunar:
Callframe at: addWorldSoundUnlessInvisible
function: OnWeaponHitCharacter -- file: main.lua line # 95 | MOD: Lingering Voices

It'll dump the sever with error logs. Especially if you have lots of players online at a time fighting zombies.

I personally removed that part of the line and problem solved. I'm not sure if that part of the coding was meant for PVP or PVE. Since it had character instead of zombie in the code.

All I know, after removing that line. No errors here, for now.
thank you for responding. but I have a question :

if respondToSound then
victim:addWorldSoundUnlessInvisible(20, 50)
end

this is 94-96 line of main.lua. You deleted that whole part?
or just removed 1 line : 'victim:addWorldSoundUnlessInvisible(20, 50)' ?
SK1107 Oct 20, 2022 @ 3:34pm 
Update:
The 95th line has been deleted. And... There are two results.

The first is another error.
While I was driving around the zombies, I checked the mode and found out that there was an error again, and the log checked

Callframe at: addWorldSoundUnlessInvisible
function: OnZombieUpdate -- file: main.lua line # 82 | MOD: Lingering Voices

I was able to get the above results. I will check the result after deleting the 82nd line right away.

+) For your information, errors in the 82nd line often occurred when only this mode was applied and a new game was started. (Playtime in a few minutes, and I did activities to hit or kill zombies.)


The second one is... It looks fine for now.
I applied minimal mods including this mod, then started a new game and screamed (Q), hit zombies with weapons, killed them, and the mod didn't cause any errors.

However, 0.001% is definitely a small probability. The probability was not large enough to verify that the mode was operating normally in a short time.

In the second state, I didn't hit zombies with my car.
Sebastian  [developer] Oct 20, 2022 @ 11:42pm 
This issue may have been fixed, although if it still persists i'll see what I can do or if someone can help me
Last edited by Sebastian; Oct 21, 2022 @ 7:50pm
SK1107 Oct 21, 2022 @ 9:50am 
Originally posted by Sebastian:
This issue may have been fixed, although if it still persists i'll see what I can do

Just checked and Everything works Fine!
Thank you, developer.
Stormbox Oct 21, 2022 @ 1:38pm 
Originally posted by Sebastian:
This issue may have been fixed, although if it still persists i'll see what I can do

It began to persist again after using custom lines lua file.
It was fine before even touching the file. :scCatgirl:
Stormbox Oct 21, 2022 @ 1:39pm 
function: getRandomLine -- file: main.lua line # 20 | MOD: Lingering Voices [30 times ]
function: OnWeaponHitCharacter -- file: main.lua line # 96 | MOD: Lingering Voices [30 times ]
< >
Showing 1-7 of 7 comments
Per page: 1530 50