Jump to content
Sign in to follow this  
sic-disaster

custom sound files

Recommended Posts

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

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

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

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
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

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

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

Here you go, hopefully you can see what's wrong cause i'm drowning in it all wink_o.gif

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×