OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Arctic on 22 Sep 2002, 18:14:22
-
I think I have figured out what was wrong with my custom music.
In this line of my description.ext:
sound[] = {\Music\Tool.ogg,db+30, 1.0};
I had " " marks around \Music and the ebd of 1.0. In another mission with WORKING custom music, I didn't have the quotation marks there so I removed them.
The next problem, however, is I included custom sounds (voice overs) and I get this "Config: '}' instead of '{'" error message. I can't figure out which } mark is wrong!
Here is my description.ext file in its entirety:
class CfgMusic
{
tracks[]={music};
class music
{
name = "Tool";
sound[] = {\Music\Tool.ogg,db+30, 1.0};
titles[] =
};
};
class CfgSounds
{
sounds[] = {voicesample, voicesample2};
class voicesample
{
name = "voicesample";
sound[] = {"A10Engage1.ogg", db-20, 1.0};
titles[] =
{
0, $STRM_Voice
{;
};
};
class voicesample2
{
name = "voicesample2";
sound[] = {"A10cvyDEAD.ogg", db-20, 1.0};
titles[] =
{
0, $STRM_Voice2
{;
};
};
Can someone help!
-
You have different numbers of { and }, and you have some that are turned the wrong way
{; when it should be };
-
>:( >:( >:( >:(
This thing is really starting to annoy me! :gunman: *shooting holes in the darn description.ext file*
I keep moving around the brackets to no avail!
:help:
This has to be my fifth topic on sound for OFP. At least this time I think I am headed in a good direction!
BTW, I tried using description.ext files from other missions as a guide, but they aren't helping.
-
Try this:
class CfgMusic
{
tracks[]={music};
class music
{
name = "Tool";
sound[] = {\Music\Tool.ogg,db+30, 1.0};
};
};
class CfgSounds
{
sounds[] = {voicesample, voicesample2};
class voicesample
{
name = "voicesample";
sound[] = {"A10Engage1.ogg", db-20, 1.0};
titles[] =
{
0, $STRM_Voice
};
};
class voicesample2
{
name = "voicesample2";
sound[] = {"A10cvyDEAD.ogg", db-20, 1.0};
titles[] =
{
0, $STRM_Voice2
};
};
};
8)PEACE
-
that worked! yay! Now if I can only get the stupid music to work!