Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Radio sounds  (Read 1016 times)

0 Members and 1 Guest are viewing this topic.

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Radio sounds
« on: 22 May 2005, 10:19:28 »
I must be doing something stupid but I just can't see it.

I want to use sideRadio.  

The description.ext contains

class CfgRadio
{
   class Civi2_11
   {
      name = "";
      sound[] = {"\sound\Civi2_11.ogg", db+30, 1.0};
      titles[] = {0,$STRCivi2_11};
   };

   class Civi2_12
   {
      name = "";
      sound[] = {"\sound\Civi2_12.ogg", db+30, 1.0};
      titles[] = {0,$STRCivi2_12};
   };

};

and the stringtable.csv looks like:

LANGUAGE,English,French,Italian,Spanish,German,Comment


STRCivi2_11,Well all the civilians are now safe in the lodge.  I am ready for your orders.,,,,,
STRCivi2_12,I am now at the lodge, but I am afraid we suffered some civilian casualties on the way.  I am ready for your orders.,,,,,


stringtable.csv is in the mission folder.

I have the following command:

karl sideRadio "civi2_11"

What I get is an error message:  No entry 'Users......\description.ext/CfgRadio/Civi2_11.title'
then the sound plays correctly (that is, it sounds like it should through a radio)

I have tried with and without the 0,  I have tried putting the text directly into description.ext file so:

      titles[] = {"Well all the civilians are now safe in the lodge.  I am ready for your orders."};

I just can't get rid of the error message.

Please help me avoid a complete sense of humour failure

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Radio sounds
« Reply #1 on: 22 May 2005, 14:52:31 »
Hmmmmm.....try:

 titles[] = {0,$STR_Civi2_11};


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

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Radio sounds
« Reply #2 on: 22 May 2005, 15:00:11 »
Solved it.  The answer is:

Code: [Select]
     title = $STRCivi2_11;