OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Messiah on 15 Jul 2004, 17:18:37
-
well, i've never used the cfgradio class before, but i assumed it would be as easy as the cfgsounds which i've never ha d aproblem with...
so, i've got my edited sound files, all oggs and i;ve put them into the description as follows:
class CfgRadio
{
sounds[] = {mamabear, babybear, alpha, bravo, charlie, delta, dry, cargo,
onboard};
class mamabear
{
name = "mamabear";
sound[] = {"mamabear.ogg", db+0, 1.0};
title = $STRM_MAMABEAR;
};
class babybear
{
name = "babybear";
sound[] = {"babybear.ogg", db+0, 1.0};
title = $STRM_BABYBEAR;
};
class alpha
{
name = "alpha";
sound[] = {"LZ_Alpha2.ogg", db+0, 1.0};
title = {};
};
class bravo
{
name = "bravo";
sound[] = {"LZ_Bravo2.ogg", db+0, 1.0};
title = {};
};
class charlie
{
name = "charlie";
sound[] = {"LZ_Charlie2.ogg", db+0, 1.0};
title = {};
};
class delta
{
name = "delta";
sound[] = {"LZ_Delta2.ogg", db+0, 1.0};
title = {};
};
class cargo
{
name = "cargo";
sound[] = {"Cargo_Delivered2.ogg", db+0, 1.0};
title = {};
};
class onboard
{
name = "onboard";
sound[] = {"team_onboard2.ogg", db+0, 1.0};
title = {};
};
class dry
{
name = "dry";
sound[] = {"feet_dry2.ogg", db+0, 1.0};
title = {};
};
};
now, i've added them into the game as chop1 sideradio "alpha" etc, but it says it cant find the file... now the sounds are in a 'sound' folder in the mission, but so are the cfg sounds... i've never had a problem not defining the folder they were in... so i've messed around with that, removed the underscore, everything... whats going on! :'(
-
class alpha
         {
         name = "alpha";
         sound[] = {"\sound\LZ_Alpha2.ogg", db+0, 1.0};
         title = $STRM_alpha;
         };
this is a small modification i thought may work, but no luck - i'm using a working example descrip to help, but still no luck at all :'(
[edit]
I changed it a little again, but still no luck - looking at the one im using as an example, the class, name and file were the same name, but this made no difference at all
class alpha
{
name = "alpha";
sound[] = {"alpha.ogg", db+0, 1.0};
title = $STRM_alpha;
};
-
I don't have to add \sound\ to the .ogg files, ofp searches for sound there already.
Couldn't spot anything wrong with your desc btw. You did reload the mission before trying, didn't you.
If in trouble this program helps me out, maybe give it a shot: http://www.ofpec.com/editors/browse.php?browseon=&browsewhat=-1&catselected=-1_-1&catagory=-1&subcategory=-1_-1&numreturn=25&displayformat=0&ofpv=1&searchwhat=1&searchlevel=0&searchwhat=1&searchopts=&searchstring=dialogg&x=0&y=0 (http://www.ofpec.com/editors/browse.php?browseon=&browsewhat=-1&catselected=-1_-1&catagory=-1&subcategory=-1_-1&numreturn=25&displayformat=0&ofpv=1&searchwhat=1&searchlevel=0&searchwhat=1&searchopts=&searchstring=dialogg&x=0&y=0)
-
i reloaded it, tried every way and how on the description - still can't find the file :-\
-
ok, seems to have started working now. closing and starting up OFP seemed to do the trick - silly ofp sometimes.
thanks for the help
(sorry about the PM Sui, too late now i guess :) )
-
Hey Messy :)
That may have been due to the fact that when you make changes to your description.ext, you must save the mission (in the editor), before OFP will detect the changes.
So when you were previewing the mission, it was running off the old .ext, hence not finding the sounds.
I dunno, my 2c anyway ;)
-
thats what i reckon it was - silly OFP i guess ::)