Game Development Community

Audio Works in Debug; Fails with a Game Build

by Charlie Patterson · in Torque Game Builder · 06/15/2012 (12:15 pm) · 3 replies

Anybody have their sound quit when they "build" the game to a clean directory?

I was doing great following this thread

www.garagegames.com/community/forums/viewthread/124074

until I built! Now the same rules seem not to apply. Since there is no error output when sounds fail, I'm at a loss for now.


#1
06/15/2012 (12:41 pm)
Did the OpenAL.dll get copied into the output directory?
#2
06/15/2012 (4:46 pm)
Good suggestion Scott! I did not have the library. Now I do. Unfortunately, I'm still getting essentially "audio profile not found," which is puzzling. I'll keep looking for another problem.


Aside: for some reason I've never had to put the DLLs, such as openAL, into the directory with my custom-built TGBGame.exe. Weird.
#3
06/15/2012 (5:29 pm)
OK. Working! There is one more secret to getting this up.

When you build *without including the scripts*, you need to go ahead and include the script source with the sound configs (?!). In my case, this is gameScripts/datablocks.cs. In other words, datablocks.cs.dso is not enough.