OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ryankaplan on 02 Jul 2004, 19:55:18

Title: what is wrong with this description file?
Post by: ryankaplan on 02 Jul 2004, 19:55:18
class CfgRadio
{
sounds[] = {abort,beachisclear,bicreply,nochance,negalpha};
class abort
{
name = "abort";
sound[] = {"abort.ogg",db+20, 1.0};
title = $STRM_abort;
};

class beachisclear
{
name = "beachisclear";
sound[] = {"beachisclear.ogg",db+20, 1.0};
title = $STRM_beachisclear;
};

class bicreply
{
name = "bicreply";
sound[] = {"bicreply.ogg", db+20, 1.0};
title = $STRM_bicreply;
};

class nochance
{
name = "nochance";
sound[] = {"nochance.ogg", db+20, 1.0};
title = $STRM_nochance;
};

class negalpha
{
name = "negalpha";
sound[] = {"negalpha.ogg", db+20, 1.0};
title = $STRM_negalpha;
};
};

class CfgSounds
{
sounds[] = {whatthefuck,ourmission};
class whatthefuck
{
name = "whatthefuck";
sound[] = {"whatthefuck.ogg", db+10, 1.0};
titles[] =
{
0, $STRM_whatthefuck;
};
};

class ourmission
{
name = "ourmission";
sound[] = {"ourmission.ogg", db+10, 1.1};
titles[] =
{
0, $STRM_ourmission;
};
};
};

class CfgMusic
{
tracks[]={spearheadsurprise};

class spearheadsurprise
{
name = "spearheadsurprise";
sound[] = {\music\spearheadsurprise.ogg, db+20, 1.0};
};
};



what the hell is wrong with it? it plays all the ones except the music and the negalpha. with negalpha it says it couldn't find the negalpha radiomessage and it doesn't give me any warnings with music it justt doesn't play it. every sound file is intact and in the right place (don't tell me to make sure) and also they are all in the format they are supposed to be.(Ogg,44100khz,mono,16bit,64kbs)so i tmust be the description file. i couldn't spot the mistake. can somebody help me?
Title: Re:what is wrong with this description file?
Post by: Blanco on 02 Jul 2004, 20:07:27
I don't see anything wrong with it, but I noticed before that the order ( of the soundclasses) is important.

First the class cfgSounds
then the radiocfg
then the musiccfg

I strongly recommend you to download DialogG (http://www.ofpec.com/editors/browse.php?browseon=&browsewhat=3&category=3&subcategory=3_&numreturn=25&displayformat=0&ofpv=1&searchstring=DialoGG&searchwhat=1&searchlevel=0&searchopts=). It's a very handy tool that creates the description.ext for you, you just have to locate you missionfolder with the SOUND-subfolder, select the soundtype (It supports speech, radio and music) , save & exit and you're done.

PS : You have to put all your Oggs in the SOUND folder or DialogG is not able to locate them!
 
Title: Re:what is wrong with this description file?
Post by: ponq on 02 Jul 2004, 20:11:43
Are you sure you have the music turned on in the first place?

3 FadeMusic 1 would turn it on if it's off.