Home   Help Search Login Register  

Author Topic: Error with radio title  (Read 606 times)

0 Members and 1 Guest are viewing this topic.

Swedish Chef

  • Guest
Error with radio title
« on: 07 Oct 2005, 23:52:03 »
Hi all! I've just started scripting, in which the tutorials here have been most useful. 8) My question would have to do with sounds and subtitles.

I have understood the basics so far. I was able to include my own music and my own speech into my mission. Those worked perfectly. However, I get an error when I'm trying to use radio. The ogg file itself plays as expected, but there's no text - all I get is this error message:
Quote
No entry 'Users\Sergei\missions\Twilight00Hitrun.FDF_maldevic\description.ext/CfgRadio/radio1.title

So, the sound is played in radio, but with no text. ??? I have no such problem with sounds or music.

Let me show you what I have:

The script
Quote
poliisi1 GlobalRadio "radio1"

Description.ext
Quote
class CfgSounds
   {
   sounds[] = { voice1, voice2, voice3, voice4 };

   class voice1
      {
      name = "voice1";
      sound[] = {"M1-C1-A.ogg", db+50, 1.0};
      titles[] =
         {
         0, $STRM_Voice1
         };
      };
   class voice2
      {
      name = "voice2";
      sound[] = {"M1-C1-B.ogg", db+50, 1.0};
      titles[] =
         {
         0, $STRM_Voice2
         };
      };
   class voice3
      {
      name = "voice3";
      sound[] = {"M1-C1-C.ogg", db+50, 1.0};
      titles[] =
         {
         0, $STRM_Voice3
         };
      };
   class voice4
      {
      name = "voice4";
      sound[] = {"M1-C1-D.ogg", db+50, 1.0};
      titles[] =
         {
         0, $STRM_Voice4
         };
      };
   };

class CfgRadio
   {
   sounds[] = { radio1 };
   class radio1
      {
      name = "radio1";
      sound[] = {"radio.ogg", db+30, 1.15};
      titles[] = {0, $STRM_radio1};

      };
   };

class CfgMusic
   {
   tracks[]=
      { bensaa };
   class bensaa
      {
      name = "Bensaa";
      sound[] = {\music\bensaa.ogg, db+0, 1.0};
   };

Stringtable.csv
Quote
LANGUAGE,English,Comment

STRM_Voice1,"Blah blah blah",Comment

STRM_Voice2,"Blah blah blah",Comment

STRM_Voice3,"Blah blah blah",Comment

STRM_Voice4,"Blah blah blah",Comment

STRM_radio1,"Patrol A, there has been a hit and run case in a nearby village.\n\nPlease go and check. Thank you!",Comment

It would be great if any of you chums could offer any insight here! :)

Swedish Chef

  • Guest
Re:Error with radio title
« Reply #1 on: 08 Oct 2005, 05:16:55 »
Hello, me!
I was able to solve your (mine) problem after a bit of trying. Simply, this into description:

Quote
class CfgRadio
   {
   sounds[] = { radio1 };

   class radio1
      {
      name = "";
      sound[] = {"radio.ogg", db+30, 1.15};
      title = $STRM_radio1;

      };
   };

I'm not sure why, but hey, if it works... etc. ;D