Volgirian Posted February 6, 2025 Report Posted February 6, 2025 Hey everyone, I already asked on VS Reddit and Discord but absoluetly no reply. So I will try my luck here. So, I was wondering of there is an easy way to add more various thunder sounds to my game. I struggle so Iong trying to find out how these new sounds could be played along with the older ones, but sadly no success till this day. And there is no video or tutorial either. I tried to add new files into the survival's sound, weather folder as shown below. However nothing happened, only the old thunder sounds were playing. I am so frustrated at this point. Anyone here for help how the new sounds could played along with the already existing ones? Have anyone tried something similar? Spoiler I know absoluetly nothing about coding or how to edit them, but what I found on the VS Github is this, and I guess this affects the thunder sounds? if (dist < 150) { var loc = new AssetLocation("sounds/weather/lightning-verynear.ogg"); capi.World.PlaySoundAt(loc, 0, 0, 0, null, EnumSoundType.Weather, 1, 32, 1 - dist / 180); } else { if (dist < 200) { var loc = new AssetLocation("sounds/weather/lightning-near.ogg"); capi.World.PlaySoundAt(loc, 0, 0, 0, null, EnumSoundType.Weather, 1, 32, 1 - dist / 250); } else { if (dist < 320) { var loc = new AssetLocation("sounds/weather/lightning-distant.ogg"); capi.World.PlaySoundAt(loc, 0, 0, 0, null, EnumSoundType.Weather, 1, 32, 1 - dist / 500); } } } } So, is there any way how to easily edit the code without using any difficult programs, so the new thunder sounds would have a random chance to be played?
Thorfinn Posted February 6, 2025 Report Posted February 6, 2025 (edited) I take it yours is "My Recording"? Or are you "Gewitter"? Or both? Edited February 6, 2025 by Thorfinn
Volgirian Posted February 6, 2025 Author Report Posted February 6, 2025 1 hour ago, Thorfinn said: I take it yours is "My Recording"? Or are you "Gewitter"? Or both? The "Gewitter" and all flies that has numbers, for example "lighting-distant4.ogg", or "lightning-verynear7.ogg" are new thunder sounds I wish to add to the game. The ones that are in vanilla game are the ones without number, so for example "lighting-distant.ogg" is in base game.
Recommended Posts