sic-disaster 311 Posted September 27, 2008 For a while now i've been trying to get some custom sound files to work in a new mission im working on. I've got the custom music and soundfiles divided in 2 maps in the right path, called Sound and Music. The game is able to find and play the custom music, but for some reason i cannot get my soldiers to say the custom lines i've recorded and put in the Sound map, and the game will give me an error that it is unable to find the soundfile it needs. Could anybody tell me what the problem is, and how i could resolve this? Share this post Link to post Share on other sites
ck-claw 1 Posted September 27, 2008 Are the sound/music folders in the mission folder? Do you have a Decription.Ext in sed mission folder? Share this post Link to post Share on other sites
poweruser 10 Posted September 27, 2008 In the description.ext, sounds and music are defined in different classes. For the sounds on the soldiers you probably want to you the command 'say', so you have to define this sound in 'class CfgSounds'. While your music is in 'class CfgMusic' and played by 'playMusic' http://community.bistudio.com/wiki/Description.ext#Sounds Share this post Link to post Share on other sites
sic-disaster 311 Posted September 27, 2008 Yes, i have a description.ext, and the sounds are under the class CfgSounds. For the soldiers i use the line: Soldaat2 say "line4" But at first it didnt work at all, now i get a whole different sound, a female voice requesting fire-support lol. Share this post Link to post Share on other sites
poweruser 10 Posted September 27, 2008 Quote[/b] ]now i get a whole different sound, a female voice requesting fire-support lol. That's probably a sound file from warfare. (\Addons\warfare.pbo) warfare\Sounds\Sushi\warfare_08.ogg warfare\Sounds\Sushi\warfare_08b.ogg defined in the warfare\config.bin: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgSounds { Â Â Â class RequestFireMission0 { Â Â Â Â Â Â name = ""; Â Â Â Â Â Â sound = {"\Warfare\Sounds\Sushi\warfare_08.ogg", 1, 1}; Â Â Â Â Â Â titles = {}; Â Â Â }; Â Â Â class RequestFireMission1 { Â Â Â Â Â Â name = ""; Â Â Â Â Â Â sound = {"\Warfare\Sounds\Sushi\warfare_08b.ogg", 1, 1}; Â Â Â Â Â Â titles = {}; Â Â Â }; }; But I don't see how that relates to your problem. Try a different class name for your sound, like: 'SiC_line4', could be that 'line4' is already defined somewhere and you're overwriting it and that messes things up. Share this post Link to post Share on other sites
sic-disaster 311 Posted September 27, 2008 Renaming the file didnt help either unfortunately... It still says it cant find the soundfile. Share this post Link to post Share on other sites
poweruser 10 Posted September 27, 2008 I didn't suggest to rename the sound file, but the class name of that sound. And post the CfgSounds class of your description.ext Share this post Link to post Share on other sites
sic-disaster 311 Posted September 27, 2008 Here you go, hopefully you can see what's wrong cause i'm drowning in it all class CfgSounds { sounds[] = { SiC_line1, SiC_line2, SiC_line3, SiC_line4, SiC_line5, SiC_line6, SiC_line7 }; class SiC_line1 { name = "SiC_line1"; sound[] = {"SiC_line1.ogg", db+20, 1.0}; titles[] = { 0, $STRM_SiC_line1 }; }; Share this post Link to post Share on other sites
poweruser 10 Posted September 27, 2008 The mission itself looks for content in its root directory only, all contents in subdirectories or addons have to be stated: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">sound[] = {"\Sound\SiC_line1.ogg", db+20, 1.0}; edit: corrected the line of config code Share this post Link to post Share on other sites