Home   Help Search Login Register  

Author Topic: Radio sounds not found....  (Read 1332 times)

0 Members and 2 Guests are viewing this topic.

Offline Gogs

  • Contributing Member
  • **
  • WWIIEC - Gracefully retired boss
Radio sounds not found....
« on: 02 Jun 2006, 13:50:24 »
Guys, sorry to ask so many questions in so little time. I've got a problem with radio sounds not playing. Its not like I'm a novice, I've got radio to work in countless missions, and I've just copied and modified all the relavent files as usual. However, radio files come up with "Radio file filename not found" OK? boxes. Which is odd, because I'm having trouble spotting the problem. Here is the relavent section of the description.ext. I wonder if you can see a mistake?


Quote
class CfgRadio
{
   sounds[] =
   {
   
   };
   class farradio0
   {   
      name = " ";
      sound[] = {"farradio0.ogg", db+40, 1.0};
      title = $STRM_farradio0;
   };
   class farradio1
   {   
      name = " ";
      sound[] = {"farradio1.ogg", db+40, 1.0};
      title = $STRM_farradio1;
   };
   class farradio2
   {   
      name = " ";
      sound[] = {"farradio2.ogg", db+40, 1.0};
      title = $STRM_farradio2;
   };
   class farradio3
   {   
      name = " ";
      sound[] = {"farradio3.ogg", db+40, 1.0};
      title = $STRM_farradio3;
   };
   class farradio4
   {   
      name = " ";
      sound[] = {"farradio4.ogg", db+40, 1.0};
      title = $STRM_farradio4;
   };
   class farcp0
   {   
      name = " ";
      sound[] = {"farcp0.ogg", db+40, 1.0};
      title = $STRM_farcp0;
   };
   class farcp1
   {   
      name = " ";
      sound[] = {"farcp1.ogg", db+40, 1.0};
      title = $STRM_farcp1;
   };
   class farcp2
   {   
      name = " ";
      sound[] = {"farcp2.ogg", db+40, 1.0};
      title = $STRM_farcp2;
   };
   class farcp3
   {   
      name = " ";
      sound[] = {"farcp3.ogg", db+40, 1.0};
      title = $STRM_farcp3;
   };
   class farcp4
   {   
      name = " ";
      sound[] = {"farcp4.ogg", db+40, 1.0};
      title = $STRM_farcp4;
   };
};

All sounds are prefixed in each of my missions, because if the filename is the same as the one in a mission you load later, OFP won't forget the first one, if you follow. Anyway, this bug is all that stands in between me and my latest obsession, so any help would be much appreciated. Thanks guys.

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: Radio sounds not found....
« Reply #1 on: 02 Jun 2006, 17:21:11 »
um, i think there's supposed to be something between the name = " "; bits...

the way i do mine is

Code: [Select]
class beep
{
name = "beep";
sound[] = {"beep.ogg", db-20, 1.0};
titles[] = {};
};

class beep2
{
name = "beep2";
sound[] = {"beep2.ogg", db-20, 1.0};
titles[] = {};
};

that way you can call it by name and flashpoint knows what it is.

Offline Gogs

  • Contributing Member
  • **
  • WWIIEC - Gracefully retired boss
Re: Radio sounds not found....
« Reply #2 on: 02 Jun 2006, 17:51:46 »
Yes but... I thought a space was enough. I'll test it. Spaces have worked in the past...

Offline rado1265

  • Members
  • *
Re: Radio sounds not found....
« Reply #3 on: 02 Jun 2006, 17:57:31 »
Yes but... I thought a space was enough. I'll test it. Spaces have worked in the past...

Hm yes, true.

On the look it seems nothing to be wrong with the file. Are you sure you have all the sound files in the 'sound' folder?

Offline Gogs

  • Contributing Member
  • **
  • WWIIEC - Gracefully retired boss
Re: Radio sounds not found....
« Reply #4 on: 02 Jun 2006, 20:07:40 »
Tested with names instead of spaces. No Joy. Sounds are ogg files in a /sound folder with names that correspond to the names in the description.ext. Stringtable seems to be fine, but thats not the problem, or it would play the sound and miss the titles. Radio files fail to play using

unitname sideradio "farradio1"

or similar. Whats really weird is that the cfgsounds stuff seems to work absoulutely fine, lip files and all. I'm really stumped on this one....

Offline rado1265

  • Members
  • *
Re: Radio sounds not found....
« Reply #5 on: 02 Jun 2006, 20:54:50 »
Well, I can say again that nothing is wrong with the file; I've just tested it on my comp. So the file is not the problem, the problem lies somewhere else.

Offline Gogs

  • Contributing Member
  • **
  • WWIIEC - Gracefully retired boss
Re: Radio sounds not found....
« Reply #6 on: 02 Jun 2006, 21:34:33 »
Very odd. Right, checklist, what am I missing.....

  • Description.ext, as you've seen
  • /Sound folder - files in ogg vorbis format, 16 Bit Mono @ 16,000Hz
  • Stringtable - CSV file with names corresponding to titles section in description, minus the $
  • Files called ingame/by script using sideradio command. Name corresponds to class names in description file

Anywhere else I should look for the problem? I'm going to try transferring the mission bit by bit to a different folder, see what happens...

Offline RichUK

  • OFPEC Patron
  • ****
  • Have fun!
Re: Radio sounds not found....
« Reply #7 on: 03 Jun 2006, 07:12:33 »
Hi Gogs...

I can remmber having some problems with sound too, although in my case is was only some sounds, not all of them.  Here are some things that you may like to look at:

First of all, here is a snapshot of some extacts from the begining and end of the main sound section of the descripton.ext file for a (rather over ambitious) mission that I will have to finish sometime, when I get the chance.  I have taken a snaphot of it and uploaded it to my site, as I got fed up with it not displaying properly when trying to use the "code" tags, and inserting the image in my post does not work either (unfortunatly, the forum seems to agressively limit dimentions of any larger images posted so that they are distorted and unreadable.

Please right-click this URL and open it in a new tab or window...

http://www.richuk.net/ofpecpics/mysound01.jpg

Here are some small extracts, without the indent, as code:

Code: [Select]
class say_shhh
{
       name = "shhh";
       sound[] = {"\sound\shhh.ogg", db+0,1};
       titles[] = { };
};

class ggv01
{
       name = "ggv01";
       sound[] = { "\sound\ggv01.ogg",db+0,1 };
       forceTitles = true;
       titles[] = { 0,$STRggv01 };
};

//
//
//

class s10toofar
{
        name = "s10toofar";
        sound[] = {"\userscud\SCUDsound\s10toofar.ogg",db+20,1.0};
        titles[] = {};
};


Here are some points, that I would like to make:

1.  I Use a "declaration" section at the top (which you can see in the snapshot), which has a LOT of items in it, in the form:

sounds[] = {sound1,sound2,sound3};

I understand that that is not stictly necessary anymore, but I started doing it for a much earlier version of OFP (v1.46 or older), where this was necessary, so I carried on with it.  You just have white space between the backets, which should be OK.

2.  You will see that I sometimes have string defined in the titles section (when I want to display text in my stringtable.csv) where other times I do not, or do not include titles[] at all!  One thing is that when I am using a title, my statement is like this:

       titles[] = { 0,$STRggv01 };

..whereas you are not using the curly backets, or the "0," prefix.  I wonder if that could be a problem (?), although quite probably not, if there was anything going wrong here, I expect the title stuff would not display.  That brings a question to mind, when you try to play the sound, do you see a title that you have defined in your stringtable.csv displayed or not when you get the "Radio file filename not found" dialog box.


3.  Even though when sounds are in a "sound" sub-directory, you should not need to specify it under the sound[] section, but I used to have problems at one time, so I always now include the sub-path.  You could try doing this, just in case, although that may be unlikely to be your problem.  Of course, you may have named your directory "sounds" instead of "sound" which could well stop thing working, without the path included. You will see that I have used sub-sub-directories too, and everything works fine. [edit] but see my edit at the bottom [/edit]

4.  Although it is not clear from the extracts I have shown, I found about 10 of my .ogg souns refused to play at all under OFP, even though they were sampled at the same rate and number of bits as others that did work.  I just converted them to .wss files and now they play fine!

5.  I previously found that there seemed to be a problem if a sound file was too small.  I cannot remember the figure, but when it was only a few KB, then OFP seemed to have problems with it as an .ogg, so that could be why the .wss ones worked, but I am not sure that that is true, or I probably would have remembered that.

6.  I can remember that I experience problems with sound files with a name of less than 3 or 4 characters (I think for the class name, rather than the name before the file extension, although it could have been for the name ="xxxx") section.  In spite of karantan using your file without problems, it may still be a problem on your machine due to a different versiion of OFP, or some configuration problem.

7.  Sampling rates, etc. when producing the .ogg files can be a problem, but you have already stated that you have been using 16-bit Mono at 16 KHz, which should be fine.

8.  You are using db+40 with all of your sounds, which is a very high figure. Perhaps OFP does not like that? Could it be out of range, causing no sound at all? ... I would try db+20, you never know it may work.

9.  How about trying a sound that you know works OK from another mission?  I would put it in twice, once under its original name (with the corresponding description.ext entry) and once renamed to one of the sound file names you are using (to replace your normal file).  If it works in both cases, you know that it is your normal sound file that hs the problem.  Conversely, you could put your renamed normal sound file into the other mission to try it... you ge the idea...

Of all of the above, number 3 looks the most likely problem, as with the path not overtly stated, any other name but "sound" as a sub-directory with your sounds in (if not in the root of your mission folder) would not work and be likely to give the "Radio file filename not found" error you are seeing (although I have not tested that)... it could be just an unwanted "s" after sound!

[edit]
I missed that you had already stated that your sound folder was called "sound", not "sounds" or something, bu you could still try putting the path in, like I do, just in case.  What version of OFP are you running?  v1.96?
[/edit]

Hope some of this helps others, if not yourself...

Rich.


« Last Edit: 03 Jun 2006, 07:51:39 by RichUK »

Offline Gogs

  • Contributing Member
  • **
  • WWIIEC - Gracefully retired boss
Re: Radio sounds not found....
« Reply #8 on: 03 Jun 2006, 13:10:32 »
Thanks Rich for the suggestions. I'll get cracking on those. I think its just a case of hardcore trial and error to find where the problem is. I will let you all know how I get on. Thanks.