Custom soundscape... only working for me? (It's packed in)
3 replies, posted
I have a custom soundscape packed into a map of mine.
I don't have the script anywhere else, EXCEPT the bsp file.
I can hear all the sounds fine, but I tested with about 4 people and they can't hear the sounds [b]**UNLESS** they type playsoundscape[/b] (custom soundscape name).
So the soundscape is there, but the game isn't playing it for them for some reason, but it is for me.
I honestly can't even begin to think how this happens.
Also:
[code]
"Rooftop"// Wind
{
"playrandom"
{
"volume" "0.06,.1.2"
"time" "10.0, 20.0"
"pitch" "90,130"
"position" "random"
"rndwave"
{
"wave" "ambient\levels\streetwar\city_battle13.wav"
"wave" "ambient\levels\streetwar\city_battle11.wav"
"wave" "ambient\levels\streetwar\city_battle11.wav"
"wave" "ambient\levels\streetwar\city_battle4.wav"
"wave" "ambient\levels\streetwar\strider_distant1.wav"
}
}
"dsp" "1"
"playlooping"
{
"volume" ".3"
"pitch" "100"
"wave" "ambient\wind\wind_rooftop1.wav"
}
"playlooping"
{
"volume" ".1"
"pitch" "50"
"wave" "ambient\explosions\battle_loop1.wav"
}
}
"Inbuilding"// Inside building
{
"playrandom"
{
"volume" "0.2,.3"
"time" "10.0, 20.0"
"pitch" "90,130"
"position" "random"
"rndwave"
{
"wave" "ambient\materials\cartrap_rope2.wav"
"wave" "ambient\materials\creaking.wav"
"wave" "ambient\materials\metal_stress5.wav"
}
}
"dsp" "1"
"playlooping"
{
"volume" ".4"
"pitch" "100"
"wave" "ambient\atmosphere\quiet_cellblock_amb.wav"
}
}
[/code]
To confirm, the soundscape file is named "soundscapes_<mapname>.txt" and under the ".../scripts/" directory within the BSP?
What game is running the map?
[QUOTE=Terrenteller;25258748]To confirm, the soundscape file is named "soundscapes_<mapname>.txt" and under the ".../scripts/" directory within the BSP?
What game is running the map?[/QUOTE]
Garrysmod.
And yeah, it's the soundscapes_mapname.txt, and it's packed specifically under scripts.
It plays for me, but nobody else unless they use the command.
I don't have it saved anywhere in my garrysmod folder, only in the bsp.
Do the sounds work if the map is loaded with another game?
What if the script is extracted from the BSP and placed within the game directory as a stand-alone file? If this works, might consider distributing the map as an addon.
Lastly, this may be worth a try even though it was intended for another game.
[quote=Valve Developer Wiki]Custom sounds in L4D require that you pakrat the sounds into the bsp file before they will play. If you are using a custom soundscape, pakrating will not work, instead you must rebuild the audio cache before the engine will read your soundscape. Ingame, type snd_rebuildaudiocache into the console. When it is finished your sounds will work ingame. Unfortunately every downloader of your campaign will need to manually enter this command for your soundscapes to work.
Tip: Once you rebuild the sound cache, you may include your _master.cache and custom sounds within your VPK (pakratting the cache into the bsp may be more reliable), which will allow your campaigns custom sounds to work without them being bspzip'd or having clients run snd_rebuildaudiocache.[/quote]
Sorry, you need to Log In to post a reply to this thread.