#Sounds not Playing through ambient_generic

89 messages · Page 1 of 1 (latest)

halcyon hearth
#

I am trying to give my recreation of the FNAF 2 map in Gmod some sounds through ambient_generic, but No matter what I did even though I think I hooked up the .WAV to the file, hooked up the entity to play the Ambient_generic thing, it still remains silent

I theorize that this might have something to do with the fact that even WITH a sounds folder the file refused to load up in there, but I am not sure can somone please help?

copper ore
#

look in the console
if the sound is in the wrong format it'll say so

halcyon hearth
#

format as in like .wav?

copper ore
#

more like sample rate

halcyon hearth
copper ore
#

in-game

halcyon hearth
#

Neither Console said

copper ore
#

are you using a raw file
it could just be too quiet to hear due to attenuation
it uses the radius of the ambient_generic to determine that

halcyon hearth
#

so how do I fix the attenuation?

copper ore
#

increase the radius and see if that helps

halcyon hearth
#

so I think its an issue with how I structred the location of the file or how to access it

copper ore
#

does it play with the play command

halcyon hearth
#

Yeah it DOES play

copper ore
#

and you're using the exact same path as in the ambient_generic?

halcyon hearth
copper ore
#

the folder names and such

halcyon hearth
#

I think the ambient and stuff is in the .vpks

copper ore
#

so these are files already in the game
not custom sounds

halcyon hearth
#

and like I said I TRIED testing both this and the files in the game already and NEITHER worked

copper ore
#

surely you're doing something wrong with the ambient_generic itself then
if files that come with the game don't work either

halcyon hearth
#

would ambient/tones/fan2_loop.wav be considered "files that come with the game?"

copper ore
#

if you added that yourself then no

halcyon hearth
#

so I can hear a looping sound that came with the Game fine I think its just the FNaF 2 fan sound thats giving me issues

copper ore
#

are you sure it's not playing at all or just not looping

#

because you have to add cue points to a WAV to allow it to loop

halcyon hearth
copper ore
#

make sure the FNAF 2 one is 44100 hz, 16-bit PCM

#

that's what Source requires

halcyon hearth
#

I dont know why its not playing

#

I give up

#

Do you think you could try to take a loot at it?

#

because at this point I am completely stumped

halcyon hearth
#

Like I even put the file in the SAME FOLDER AS A FILE that I KNOW Works, and yet it STILL COMES UP MUTE

willow meteor
#

delete the sound cache

halcyon hearth
willow meteor
#

in the sound folder

halcyon hearth
#

... where would the sound.cache be?
Because iirc I didnt HAVE a sound Folder

halcyon hearth
willow meteor
#

gmods one

halcyon hearth
#

I literally MADE ONE

willow meteor
#

ok then, so what if anything appears in the console when the sound is meant to be played

halcyon hearth
#

I Also forgot to mention that I am using the x64-x86 version of Gmod

willow meteor
#

specificaly the first page and the inputs tab

halcyon hearth
willow meteor
#

and the flags

halcyon hearth
#

yeah I know i'm just setting things up

#

and like I said previously, a fansound that came with I think Half Life 2 played just fine so I think it has something to do with the way the folders are set up

willow meteor
#

sounds should be in the sound folder

halcyon hearth
willow meteor
#

sound

#

also i cant help but notice from ur discord status that the map ur editing has spaces in the file name? the map wont compile like this, instead of spaces use _

halcyon hearth
willow meteor
#

bsp will compile fine somtimes but vis rad and the engine its self will always fail to open the file

halcyon hearth
#

so might the missing of _ by why the sounds arent playing?

willow meteor
#

it would cause all sorts of issues so while we're here just fix it up

halcyon hearth
willow meteor
#

u sure theres nothing in the console

#

launch the game with -dev to enable verbose console

#

when a sound cant be played it will either complain about the file being missing or the sound not being the right sample rate

halcyon hearth
willow meteor
#

a launch option

#

when you launch gmod in steam

halcyon hearth
#

add -dev to the launch options?

willow meteor
#

or if you're using hammers expert compile set put it somewhere in the game_exe area (but not after +map %file)

willow meteor
halcyon hearth
#

ok but if this doesnt work then would the only other solution be to uninstall and reinstall the entire game?

#

becuase I have tried literally EVERYTHING and nothing worked thus far

#

welp...

#

Tried everything
Nothing worked
I've already started uninstalling

willow meteor
#

no idea at this point sorry

halcyon hearth
#

if the sound folder still isnt there should creating one work the same way as it being pre-installed?

halcyon hearth
#

is that right?

halcyon hearth
#

well then...

#

I guess I will NEVER be able to import custom sounds ever

#

I tried LITERALLY EVERYTHING
even uninstalling and Reinstalling the ENTIRE DAMN GAME, and ITS STILL MUTE

halcyon hearth
#

Update:
I think something is corrupting the .wav files

halcyon hearth
#

I FINALLY GOT IT TO WORK!!!!!!11!!!!1!1