Home   Help Search Login Register  

Author Topic: Radio Messaging  (Read 1938 times)

0 Members and 1 Guest are viewing this topic.

Offline CAS_Daniel

  • Members
  • *
  • Rifleman
Radio Messaging
« on: 20 Jun 2005, 17:07:55 »
Hi, Is there a way of putting radio .ogg files into your own missions without using the description file? Cause I can't figure it out.    :-\
I've tried putting .ogg files in the mission folder and getting them to play in game, but OFP can't find them, and I've seen radio files mentioned in the description file before.   ???

Thanks, [CAS] Daniel   :)

EDIT: If someone could make an example mission with an original radio message in it as simply as possible so I can change and develop it, that would also be much appreciated.  :)
« Last Edit: 20 Jun 2005, 17:32:01 by CAS_Daniel »
Romeo 2.5 UK-based Light Infantry Platoon
forums.romeo25.com/

Offline 456820

  • Contributing Member
  • **
Re:Radio Messaging
« Reply #1 on: 20 Jun 2005, 18:06:15 »
hey there is no way without a description.ext but dont worry its easy for radio sounds copy this into the description.ext and replace the radio_name with the name of your radio sound

class cfgradio
{
sounds[] = { };

      class radio_sound
   {
      name = "radio_sound";
      sound[] = {"radio_sound.ogg", db, 1.0};
      titles[] =
      {
         0, $STRM_radio_sound
      };
   };
};

that syntax is guaranteed correct as thats the temple i use in my missions and they all work
but remember to do a stringtable.csv file to have text some up aswell
also if there really is a way to do it without a desription.ext i would love to hear it

anyway hope this helps

Offline CAS_Daniel

  • Members
  • *
  • Rifleman
Re:Radio Messaging
« Reply #2 on: 20 Jun 2005, 18:32:48 »
Thanks for the reply.  :) However, I now get the message Sound "C02r01" cannot be found.  :(
I've put the sound in the mission file and changed radio_message to C02r01 in the description.ext. Any ideas?  :-\

EDIT: I tried to get west base to say it instead of a unit by using [west,"HQ"], and i now get this error:
Quote
No entry 'Users\Daniel\missions\Radio Test.Intro\description.ext/cfgradio/C02r01.title.'
« Last Edit: 20 Jun 2005, 18:38:06 by CAS_Daniel »
Romeo 2.5 UK-based Light Infantry Platoon
forums.romeo25.com/

Offline 456820

  • Contributing Member
  • **
Re:Radio Messaging
« Reply #3 on: 20 Jun 2005, 18:34:48 »
well how are you playing he sound is it
sideradio or
say
if its say thats because its a radio class not a sound class

Offline CAS_Daniel

  • Members
  • *
  • Rifleman
Re:Radio Messaging
« Reply #4 on: 20 Jun 2005, 18:39:31 »
I updated my post at the same time as you wrote a reply. ;)
Romeo 2.5 UK-based Light Infantry Platoon
forums.romeo25.com/

Offline 456820

  • Contributing Member
  • **
Re:Radio Messaging
« Reply #5 on: 20 Jun 2005, 18:41:52 »
well still a bit more did you do
[west,"HQ"] sideradio ? if so im not sure why this isnt working it work for me but what i usually do is define west,hq in the init.sqs
like this
papabear = [West, "HQ"]
that goes in the init.sqs
and to call the sound i use
papabear sideradio "blah blah blah"

Offline CAS_Daniel

  • Members
  • *
  • Rifleman
Re:Radio Messaging
« Reply #6 on: 20 Jun 2005, 18:50:35 »
I did what you said, but I still get the same error.  ???
Romeo 2.5 UK-based Light Infantry Platoon
forums.romeo25.com/

Offline 456820

  • Contributing Member
  • **
Re:Radio Messaging
« Reply #7 on: 20 Jun 2005, 18:59:30 »
are you using " " around the sound file ?
thats what happended to me once i had to do something like
papabear sideradio "soundfile"
but i used to do
papabear sideradio soundfile

Offline CAS_Daniel

  • Members
  • *
  • Rifleman
Re:Radio Messaging
« Reply #8 on: 20 Jun 2005, 19:05:35 »
No, it has the commas: papabear sideradio "C02r01"  :-\
Could you send me an example mission folder please?  :)
« Last Edit: 20 Jun 2005, 19:10:09 by CAS_Daniel »
Romeo 2.5 UK-based Light Infantry Platoon
forums.romeo25.com/

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Radio Messaging
« Reply #9 on: 20 Jun 2005, 19:34:31 »
Quote
I've put the sound in the mission file and changed radio_message to C02r01 in the description.ext. Any ideas?

Your sound file is actually called C02r01.ogg is it?


Planck
I know a little about a lot, and a lot about a little.

Offline CAS_Daniel

  • Members
  • *
  • Rifleman
Re:Radio Messaging
« Reply #10 on: 20 Jun 2005, 19:37:46 »
Yep, it's a BIS sound.
Romeo 2.5 UK-based Light Infantry Platoon
forums.romeo25.com/

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Radio Messaging
« Reply #11 on: 20 Jun 2005, 19:42:01 »
Make a folder inside your mission folder named sound.....or is that sounds....I can never remember.

Anyway, place your sound file in that and then make sure the path in your description.ext points to the correct place.

sound[] = {"\sound\C02r01.ogg", db, 1.0};

or perhaps its

sound[] = {"\sounds\C02r01.ogg", db, 1.0};

Like I said I can never remember.   ::) ::)


Planck
I know a little about a lot, and a lot about a little.

Offline 456820

  • Contributing Member
  • **
Re:Radio Messaging
« Reply #12 on: 20 Jun 2005, 19:45:41 »
erm planck those two examples are the exact same yeah i forgot to mention the folkder thing i persumed you already have

Offline CAS_Daniel

  • Members
  • *
  • Rifleman
Re:Radio Messaging
« Reply #13 on: 20 Jun 2005, 19:56:42 »
Yeah, its in the sound folder in the mission folder.  :-\
Could either of you send me a mission folder with a sound that definately works?  ;)
« Last Edit: 20 Jun 2005, 19:58:21 by CAS_Daniel »
Romeo 2.5 UK-based Light Infantry Platoon
forums.romeo25.com/

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Radio Messaging
« Reply #14 on: 20 Jun 2005, 19:57:44 »
No....they aren't the same, the second one has 'sounds', whilst the first one has 'sound'.


Planck
I know a little about a lot, and a lot about a little.