Home   Help Search Login Register  

Author Topic: SideRadio + CFGRadio  (Read 974 times)

0 Members and 1 Guest are viewing this topic.

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
SideRadio + CFGRadio
« 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:

Code: [Select]
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!  :'(
Proud Member of the Volunteer Commando Battalion

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:SideRadio + CFGRadio
« Reply #1 on: 15 Jul 2004, 18:37:07 »
Code: [Select]
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

Code: [Select]
class alpha
              {
                   name = "alpha";
                   sound[] = {"alpha.ogg", db+0, 1.0};
                   title = $STRM_alpha;
              };
« Last Edit: 15 Jul 2004, 18:40:46 by Messiah »
Proud Member of the Volunteer Commando Battalion

ponq

  • Guest
Re:SideRadio + CFGRadio
« Reply #2 on: 15 Jul 2004, 20:08:52 »
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

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:SideRadio + CFGRadio
« Reply #3 on: 15 Jul 2004, 20:20:35 »
i reloaded it, tried every way and how on the description - still can't find the file  :-\
Proud Member of the Volunteer Commando Battalion

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:SideRadio + CFGRadio
« Reply #4 on: 15 Jul 2004, 23:31:15 »
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  :) )
Proud Member of the Volunteer Commando Battalion

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:SideRadio + CFGRadio
« Reply #5 on: 18 Jul 2004, 07:31:56 »
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 ;)

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:SideRadio + CFGRadio
« Reply #6 on: 18 Jul 2004, 11:25:59 »
thats what i reckon it was - silly OFP i guess  ::)
Proud Member of the Volunteer Commando Battalion