Soundscape Not Working

  • If you're asking a question make sure to set the thread type to be a question!

CyanideNoodles

L2: Junior Member
Oct 1, 2012
89
8
Having trouble with my soundscapes not working correctly. I have my env_soundscape_triggerable and my trigger_soundscape set up as so:

1rbzae.png


a14nb5.png


My soundscape text, which is saved in the scripts folder and has the same name as my map looks like this:

"BGM.bird"
{
"dsp" "0"

"playlooping"
{
"volume" "1"
"pitch" "100"
"soundlevel" "SNDLVL_70dB"

"wave" "bgm_bird.wav"
}
}

"BGM.sans"
{
"dsp" "0"

"playlooping"
{
"volume" "1"
"pitch" "100"
"soundlevel" "SNDLVL_70dB"

"wave" "bgm_sans.wav"
}
}

"BGM.Stop"
{
"dsp" "0"

"channel" "CHAN_AUTO"
"volume" "VOL_NORM"
"pitch" "PITCH_NORM"
"soundlevel" "SNDLVL_NORM"
"wave" "common/null.wav"
}

I can't figure out why its working. When I use soundscape_debug, the soundscapes are being triggered but the music does not play. I copied and pasted the script text and the soundscapes from my previous map that worked, I just changed the file name and the music.
 

Izotope

Sourcerer
aa
May 13, 2013
698
764
Make sure your file's sample rate is 44100 Hz, otherwise it won't work.
Now I've never used the triggerable soundscapes before, but I think you need to stay within the trigger volume for it to play,
or maybe you need to increase the soundscape radius, too.
There's certainly no harm in trying!
 

nickybakes

You should've played Rumbleverse
aa
Jul 28, 2015
911
1,739
Also make the radius for the env_soundscape_triggerable 0 so that it only triggers from the trigger brushes.
 

CyanideNoodles

L2: Junior Member
Oct 1, 2012
89
8
None of the suggestions seemed to work. When I type "play bgm_birds" the sound plays. I am so lost on how this isn't working at all.
 

CyanideNoodles

L2: Junior Member
Oct 1, 2012
89
8
Might also be becuase you named the trigger_soundscape the same as the env_soundscape_triggerable, making it loop back to itself and not working. Try to name them differently from each other.

I've had them work with it like that. All the stuff I have in my map, I copied it from another map that had the soundscapes working.
 

CyanideNoodles

L2: Junior Member
Oct 1, 2012
89
8
I really don't know what to do, I've spent hours working on trying to fix it, even talked to way more experienced people..
 

worMatty

Repacking Evangelist
aa
Jul 22, 2014
1,257
999
You don't need to name your trigger_soundscape. Try removing its targetname.

Make sure you don't have any other env_soundscape visible to/touching (-1 radius/finite radius) the player.

Check your map is definitely compiling with your changes. If you have a discrete leak or other problem that is preventing the BSP from being overwritten, you might be testing the same flawed BSP over and over.
 

CyanideNoodles

L2: Junior Member
Oct 1, 2012
89
8
My map wasn't the issue. I have a guy who does really well with compressing songs without really any noticeable quality loss who I've used for years for my maps. The song he gave me wasn't working. I wanted to use an old song he did for me as well for ambient sounds and it wasn't working which is why I thought it was my mapping..or scripts. Well then I tried different songs he's done before and they were fine. He changed the song to 320kps and BAM. Everything worked. Including the old song I was using for ambient. Honestly the reason why the old song didn't work because of the new one confuses me but oh well.
 

worMatty

Repacking Evangelist
aa
Jul 22, 2014
1,257
999
Interesting. Would you be willing to upload the old and new sounds so we can have a look at them and gain better understanding of the game's limits and capabilities?