Unable to get custom sounds to work in my map

Any aspects of level design for the Source engine.

Unable to get custom sounds to work in my map

Postby FPSMoto on Thu Jul 03, 2014 5:29 pm

Hi, so I'm working on a map but can never seem to get custom sounds to work, from .wavs to .mp3 files. Nothing works. I have the bit rate set to 44100hz and if it's a wav file, it will play in hammer but never in game, regardless of the settings I use.

I have named the sound, have a volume of 10, max audible distance at 200, source entity name of telly1 which is a trigger teleport entity. (I want the sound to start playing as people get near this teleport).

As far as the flags go, I've tried every combination of play everywhere, start silent and is NOT looped including unchecking each one.

I added a trigger near this sound so it would start playing as you pass through it, but it never works. Now I can get game sounds to work that are already available in hammer, just never able to get custom sounds to work.

When I load my map, there are no errors displayed in console regarding sounds. Any idea what I'm doing wrong and how to fix?
User avatar
FPSMoto
Member
Member
 
Joined: Wed Nov 06, 2013 5:26 am

Re: Unable to get custom sounds to work in my map

Postby Major Banter on Thu Jul 03, 2014 5:40 pm

You know I had a real pain of a time when it came to 'loop points' in Audacity once. I had things either looping even when I turned it off in the flags, or not playing at all. Might be worth a look - otherwise, not something I know much about I'm afraid.
ImageImageImage
Major Banter
Veteran
Veteran
 
Joined: Tue Apr 01, 2008 10:52 pm
Location: UK

Re: Unable to get custom sounds to work in my map

Postby Vicpop on Fri Jul 04, 2014 3:55 am

What game are you working with? CSGO maps need some special work for custom sounds to function. I can't remember for sure what ended up working, but try packing the sounds into your bsp using pakrat
Vicpop
Been Here A While
Been Here A While
 
Joined: Mon Oct 15, 2007 3:03 am

Re: Unable to get custom sounds to work in my map

Postby FPSMoto on Fri Jul 04, 2014 7:11 am

Yeah I dont think it's an issue with looping. I've checked the files in audacity and can't find anything like that.

Vicpop, I'm working in Fortress Forever which is on the Source 2006 SDK. It should be pretty forward I would think. I'll try packing up the files, but I've added custom materials to my map with no problems. Wouldn't the file location be pulling from the sound file I select when I add to hammer though? I've also considered decompiling a map or two that I'm pretty sure have custom sounds to see how other mappers did it.
User avatar
FPSMoto
Member
Member
 
Joined: Wed Nov 06, 2013 5:26 am

Re: Unable to get custom sounds to work in my map

Postby Vicpop on Fri Jul 04, 2014 8:42 am

The sound packing thing is just for CSGO. Can you put the .wav file up somewhere so we can test it out?
Vicpop
Been Here A While
Been Here A While
 
Joined: Mon Oct 15, 2007 3:03 am

Re: Unable to get custom sounds to work in my map

Postby Oskmos on Fri Jul 04, 2014 8:21 pm

I was told that it doesnt work. I wanted to add sounds for Insertion but couldn't :(
User avatar
Oskmos
Regular
Regular
 
Joined: Thu Apr 01, 2010 9:08 pm
Location: Sweden

Re: Unable to get custom sounds to work in my map

Postby FPSMoto on Fri Jul 04, 2014 8:33 pm

Sure, here's the sound file I'm testing with:
www.mildsclan.com/egyptian-creepy-voice2.wav
User avatar
FPSMoto
Member
Member
 
Joined: Wed Nov 06, 2013 5:26 am

Re: Unable to get custom sounds to work in my map

Postby Vicpop on Sat Jul 05, 2014 12:31 am

I made a little test map and the sound played back in Fortress Forever for me. I just put the .wav file in FF's sound/ directory. Here's the VMF: https://dl.dropboxusercontent.com/u/368 ... ndtest.vmf
Vicpop
Been Here A While
Been Here A While
 
Joined: Mon Oct 15, 2007 3:03 am

It now works correctly, but trigger_multiple delay does not

Postby FPSMoto on Wed Jul 09, 2014 2:33 am

Thanks for the help. I've finally got the sounds to work properly so I'm happy. There's still one issue however.

If I attempt to activate a sound using a trigger_multiple entity and have the delay set to 10 seconds, it plays the sound but it triggers the sound to play again even before those 10 seconds have passed when I walk through the trigger multiple times. The ambient_generic is set to NOT looped and set to start Silent.
User avatar
FPSMoto
Member
Member
 
Joined: Wed Nov 06, 2013 5:26 am

Re: Unable to get custom sounds to work in my map

Postby FPSMoto on Wed Jul 09, 2014 4:27 am

nvm, I found it. I had to use an output of OnTrigger instead of OnStartTouch to get it to work.
User avatar
FPSMoto
Member
Member
 
Joined: Wed Nov 06, 2013 5:26 am

Return to Hammer Editor Help

Who is online

Users browsing this forum: No registered users