Project Zomboid

Project Zomboid

Shared Death Sound
61 則留言
Yummy  [作者] 4 月 11 日 上午 3:30 
I'll look into it a bit later, thanks for the information
marshmallow justice 4 月 2 日 上午 1:22 
https://www.reddit.com/r/projectzomboid/comments/rxcp8j/i_hear_gunfire_sound_radius_has_been_reduced_but/?sort=new this is the best example for it

I posted it on the PZ discord support since it's 3 years ago and still happening but the guy Beard there said it's probably hard coded into the game and B42 might address it.

it's funny because npc gunshots from the Bandits mod will play from a significantly farther distance away than player to player gunshot radius in MP. Which gives me hope that it IS actually addressable.. just nobodys done it yet... The most is the removal of the zombie audible range to gunshot nerf that they did in MP where gunshot sound range is nerfed further than single player. But that's a separate issue
Yummy  [作者] 3 月 28 日 上午 11:52 
Maybe. To answer your question, a more detailed analysis is required.
marshmallow justice 3 月 28 日 上午 4:07 
Is it at all possible to make a fix for multiplayer player gunshots not being audible beyond like 10-15 tiles? I don't know when exactly it happened, probably the same time they nerfed mp gunshot radius, but it seems like there's no mod on the workshop to address this. I don't even know if B42 will fix it when their multiplayer comes out, it seems like such an odd yet intentional decision from the devs.
Sayokhan 2024 年 11 月 20 日 上午 9:57 
a demonstration ?
Luke 2024 年 11 月 2 日 上午 1:27 
Oh you mean as opposed to hosting the server on the same computer that's connecting to the game? Yeah I could try that. Next time I get on a PZ kick I'll give it a shot and report back.
Yummy  [作者] 2024 年 10 月 30 日 下午 11:26 
@Luke Try testing this mod on a dedicated server with the same mods. If everything works correctly, then the problem is most likely in how the server handles sound.
Yummy  [作者] 2024 年 10 月 30 日 下午 11:23 
@Ashie Ajin дело ваше
Ashie. 2024 年 10 月 30 日 下午 11:10 
намного проще просто не включать этот мод в коллекцию, спасибо)
Luke 2024 年 10 月 30 日 下午 11:09 
1/2

Your previous response:

"@Luke Thanks for your feedback and for your interest in my mod. I want to clarify that the mod's code specifically targets zombie death sounds and uses the game's vanilla methods to play these sounds. The mod does not alter other sounds (like car doors or jump scares) and does not affect their audibility or volume.

All volume and sound range settings for zombie deaths are automatically handled by the game, and the mod simply adds a call to play the standard zombie death sounds. Therefore, if there are issues with other sounds in the game, it is likely due to the server settings or the others mod's mechanics, not this mod.

If you have any more questions or suggestions, I'd be happy to look into them. Thanks for your understanding!"
Luke 2024 年 10 月 30 日 下午 11:09 
2/2

Hey man, thanks for the response. My server settings are basically vanilla, though I do have some mods installed:

AutoHide Hotbar
Autotsar Trailers v.1.40
Bedford Falls
CDC Rapid Response
CDC Rapid Response Settings - Hardcore
Cat's Reading Mod
Common Sense
Condition On Dash
Filibuster Rhymes' Used Cars Names - Lore Friendly
Filibuster Rhymes' Used Cars!
Foraging screen Illustrations
Long-standing Metal Constructions
RV Interior (v1.4.14)
RV Interior - Vanilla Addon
Rain Wash
Raven Creek
Smarter Storage
True Music ADdon: Tales of Horror Vol.2: The Twilight Zone - Compressed
True Music_v.2.141/2

Do you know of any of these that might cause conflicts with your mod?
Yummy  [作者] 2024 年 10 月 30 日 下午 11:01 
Значит проверяйте на выделенном сервере или новом сервере только с этим модом.
Ashie. 2024 年 10 月 30 日 下午 10:58 
в случае с сервером - как раз удалить.
Yummy  [作者] 2024 年 10 月 30 日 下午 10:58 
@ベル спасибо за комментарий
Yummy  [作者] 2024 年 10 月 30 日 下午 10:57 
@Ashie Ajin "отключить" и "удалить" разные слова и имеют разное значение
bell 2024 年 10 月 30 日 下午 6:01 
спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо, спасибо!
Ashie. 2024 年 10 月 28 日 下午 10:46 
а, ну проще этот мод удалить, чем серверную коллекцию удалять. спасибо
Yummy  [作者] 2024 年 10 月 28 日 下午 10:43 
Все
Ashie. 2024 年 10 月 28 日 下午 10:41 
а какие, к примеру?
Yummy  [作者] 2024 年 10 月 28 日 下午 10:24 
Всё работает корректно. Попробуйте отключить другие моды и перепроверить
Ashie. 2024 年 10 月 28 日 下午 7:01 
звук часто багается и его слышно даже в 100 метрах, будто под ухом.
Yummy  [作者] 2024 年 10 月 19 日 下午 5:36 
not in the plans yet :3
Yummy  [作者] 2024 年 9 月 25 日 下午 8:00 
The error has been fixed, thanks for finding it, but be more careful in your reports. The error only appeared after joining the game. The more accurate the report, the faster I will find the error.
Deathstar 2024 年 9 月 25 日 上午 9:23 
Producing errors for players on my server, pretty much anytime they kill a zombie.
attempted index: playSoundLocal of non-table: null
function: Add -- file: PlayZombieDeathSound.lua line #51 | MOD: Shared Death Sound
Yummy  [作者] 2024 年 9 月 22 日 上午 7:39 
I appreciate the heads-up, but it seems to work fine for others. Maybe your MP just needs a little coffee? 😎 If there’s something specific you’re seeing, I’m all ears!
clover <3 2024 年 9 月 14 日 上午 8:34 
the entire point of this mod is so that other players can hear the death sound that happens when zombies die so yes x3
hyteq 2024 年 9 月 14 日 上午 4:56 
does this work in multiplayer
Yummy  [作者] 2024 年 9 月 1 日 下午 1:50 
@Chaos_02 The error popped up if you kill a zombie while driving. I just released an update, please check and let me know the result.
Chaos_02 2024 年 9 月 1 日 下午 1:08 
+1 @Katana I also get these exact Errors while driving (and possibly hitting Zeds).
The game is freshly installed, alongside all mods. Old and new players get them.

(Same Error as Katana here)

---------
STACK TRACE
-----
(.... KahluaThread.tableget....)
---------------------

RuntimeException: attempted index: isAimedFirearm of non-table: null
at se.krka.kahlua.vm.......tableget(KahluaThread.java:1689)
at ... (....very long KahluaThread at zombie.Lua....)


at the very bottom:
----------------------------
STACK TRACE
-----------------------------------
function: Add -- file: PlayZombieDeathSoun.lua line #28 | MOD: Shared Death Sound
Yummy  [作者] 2024 年 9 月 1 日 上午 9:49 
Thanks for your comment
doge 2024 年 9 月 1 日 上午 8:41 
sounds pretty useful actually
Yummy  [作者] 2024 年 8 月 29 日 上午 11:26 
I have done tests, the mod works as expected. Please re-subscribe to the mod, most likely you have the previous version, where there was a similar error
Katana 2024 年 8 月 29 日 上午 10:24 
`attempted index: playSoundLocal of non-table: null
function: Add -- file: PlayZombieDeathSound.lua line # 45 | MOD: Shared Death Sound
java.lang.RuntimeException: attempted index: playSoundLocal 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:173)
at zombie.network.GameClient.receiveClientCommand(GameClient.java:1513)
at
Katana 2024 年 8 月 29 日 上午 10:22 
As soon as my friend kills a zombie
Yummy  [作者] 2024 年 8 月 29 日 上午 10:03 
In which case does the error occur?
Katana 2024 年 8 月 29 日 上午 9:34 
I can send you the txt file of the console if you tell me where
Katana 2024 年 8 月 29 日 上午 9:33 
bro they write me mistakes every time

function: Add -- file: PlayZombieDeathSound.lua line # 45 | MOD: Shared Death Sound
Yummy  [作者] 2024 年 8 月 28 日 下午 9:15 
@Jakub I made some fixes, now the sound should play at normal volume for the player who killed the zombie. Please test it and let me know the result
Yummy  [作者] 2024 年 8 月 28 日 下午 4:07 
Thanks for the suggestion, that's a really interesting and amusing idea! I can totally picture players just casually going about their business and suddenly hearing someone from Louisville bashing a horde of zombies — that would definitely add some adrenaline and surprises to the game! Your description made me chuckle a bit, so thanks for that! I’ll see how I can implement this fun feature in the mod.

Regarding your question about killing multiple zombies, I haven't tested this scenario, but the sound is played for each zombie killed separately, so I think the sound can overlap each other.
Loaf-fee 2024 年 8 月 28 日 下午 4:00 
Can you make it so that a person from Rosewood can hear someone from Louisville bashing a bunch of zombies. That would scare the crap out of newer players who are casually farming in their little farm house and suddenly hearing it miles away. Would the sound also reverberate if multiple people kill a horde of zombies all at the same time?
Yummy  [作者] 2024 年 8 月 27 日 上午 11:59 
Yes. Since this sound is also triggered for the player who killed the zombie... I will look for other ways to eliminate this, but for now this is the only way
Coby 2024 年 8 月 27 日 上午 11:55 
does this make the zombie death noise louder? really makes my ears hurt now
Yummy  [作者] 2024 年 8 月 26 日 上午 11:29 
@Luke Thanks for your feedback and for your interest in my mod. I want to clarify that the mod's code specifically targets zombie death sounds and uses the game's vanilla methods to play these sounds. The mod does not alter other sounds (like car doors or jump scares) and does not affect their audibility or volume.

All volume and sound range settings for zombie deaths are automatically handled by the game, and the mod simply adds a call to play the standard zombie death sounds. Therefore, if there are issues with other sounds in the game, it is likely due to the server settings or the others mod's mechanics, not this mod.

If you have any more questions or suggestions, I'd be happy to look into them. Thanks for your understanding!
Luke 2024 年 8 月 25 日 下午 10:33 
1/3

Hey man! I love the idea of this mod, but it seems that perhaps there are some issues.

First, I was hosting an online multiplayer server, and my friend joined as the client. He could hear my sounds, but he could hear them when we were several blocks away from each other. Perhaps you should greatly decrease the radius at which sounds can be heard? I think that the other player should need to be within pretty close range, otherwise it's kind of confusing.

The next issue is that he could also hear other sounds, like car doors opening whenever I would get in a car, jump scare sound effects, zombie sounds, etc. Is this supposed to be the case? The same issue was present in that the distance was much too far that he could hear this.

And finally, I'm not 100% sure if this is the case (because we didn't get a good chance to test), but I don't think I could hear any of his sounds regardless of my distance from him.
Luke 2024 年 8 月 25 日 下午 10:33 
2/3

I had to disable the mod on our server for now because of how he was hearing almost everything I was doing regardless of his distance from me. I think that allowing him to hear things like doors (house, car, etc.) opening/closing, and zombie attack/death sounds and things like that make sense IF he's really close to me, but he shouldn't hear things like the jump scare sound effect that plays whenever a zombie suddenly enters your cone of vision.

Aside from these things, something that would be really cool is if you could change the volume of the sound effects based on proximity. For example, if you're within 10 feet of the player, the other player hears your sounds at like ~80% volume (they shouldn't ever be 100%), and then the volume could fall off every 5-10 feet or so after that until it hits 0 db.
Luke 2024 年 8 月 25 日 下午 10:33 
3/3

Another thing that would be cool (and if it already works like this disregard) is if the sound effects were more directional in some way. Like if the other player is standing somewhat in front and to your right of you as they kill a zombie, perhaps you hear the sound effect like 40% in your left ear and 60% in your right ear or something along those lines.

I don't know what might and might not be possible, but at the very least, as I said just above I don't think the other player should ever hear your sound effects at 100% volume (as if they're the ones performing the actions). Even if the other player is standing directly next to you as you kill a zombie, the volume of the sound effect they hear should be perhaps ~80% of the full volume. That way it's more obvious that the other player is the one doing the action associated with that particular sound effect.
clover <3 2024 年 8 月 25 日 下午 5:18 
yea like some of them got their skulls and bones exposed imagine the potential with that
CaptainSzasz 2024 年 8 月 25 日 下午 5:12 
Man, I love finishing off the zombies!
clover <3 2024 年 8 月 25 日 上午 7:16 
the description is great wdym
libero2711 2024 年 8 月 25 日 上午 7:15 
bit psychotic of a description but if it works it works