Mod: env_soundscape with custom sound does not work

Grab your favourite IDE and tinker with the innards of game engines

Mod: env_soundscape with custom sound does not work

Postby ePDarky on Fri May 16, 2008 11:01 am

Hello. I am creating a mod using ep2 engine. I placed an env_soundscape to play an custom music in my map and this entity actually do work if I use standard half life 2 sounds but if I want to play custom stuff then it gives this error:

Failed to load sound "music/goldfrapp.wav", file probably missing from disk/repository

Here is everything I did and have:

soundscapes_manifest.txt - Added the line
Code: Select all
soundscaples_manifest
{
   "file"      "scripts/soundscapes.txt"

   // List additional soundscape files here

   "file"      "scripts/soundscapes_canals.txt"
   "file"      "scripts/soundscapes_klab.txt"
   "file"      "scripts/soundscapes_elab.txt"
   "file"      "scripts/soundscapes_streetwar.txt"
   "file"      "scripts/soundscapes_citadel.txt"
   "file"      "scripts/soundscapes_town.txt"
   "file"      "scripts/soundscapes_coast.txt"
   "file"      "scripts/soundscapes_prison.txt"
   "file"      "scripts/soundscapes_trainyard.txt"
   "file"      "scripts/soundscapes_club.txt"
}



soundscapes_club.txt
Code: Select all
// Interior Music

"club.goldfrapp_music"
{
   "dsp"   "1"
   "dsp_volume" "1.0"
   
   "playrandom"
   {
      "time"      "0.1, 1.5"
      "volume"   "0.5,1"
      "pitch"      "90,110"
      "soundlevel"   "SNDLVL_140dB"
      "position"   "random"
      "rndwave"
      {
         "wave"   "music/goldfrapp.wav"
      }
   }
}



My env_soundscape entity in hammer:
Name - goldfrapp_music
Start Disabled - No
Radius - 128
Soundscape - club.goldfrapp_music
everything else is blank


The Soundfile:
WAV Encoded in 44.100 Hz, 24 bit, Stereo, PCM
Tryed storing it in Mymod/sounds/music as well as Mymod/music - neither did work.
Tryed it as an MP3 as well, did no work.


The Map:
The map is simply named "club"



As said, standard half life 2 sounds and music do work, but custom ones does not. Anyone have a clue why?

If you need any further information please ask. Thank you all very much, I searched google the past 2 days, used the board search, searched on steam community and used the Wiki, I could not find any help for my problem.
ePDarky
Just Joined
Just Joined
 
Joined: Fri May 16, 2008 10:44 am

Return to Programming

Who is online

Users browsing this forum: No registered users