Home   Help Search Login Register  

Author Topic: 2 .exts  (Read 1778 times)

0 Members and 1 Guest are viewing this topic.

Dubieman

  • Guest
Re:2 .exts
« Reply #15 on: 12 Aug 2004, 22:36:55 »
Another snag, wow that was fast.

I'm guessing this is a .ext problem now, cause my first sound works. I got sounds labeled (File1, File2, File3,...File27) and they are .ogg and in my Sound folder. Now when I put playsound "File2" it says it cannot find it.

Then every other sound after does not play and no error comes up. :P Only File1 works.

Here's the nesssary part of the .ext without ammo and stuff.

Code: [Select]
// ***********************************************************************

class CfgSounds
{
   // List of sounds
   sounds[] = {File1, File10, File11, File12, File13, File14, File15, File16, File17, File18, File19, File2, File20, File21, File22, File23, File24, File25, File26, File27, File3, file4, File5, file6, File7, File8, File9};

   // Class definition needed for each sound
   class File1
   {
      // Name to display in mission editor
      name = "File1";
      // Sound path, volume, pitch
      sound[] = {\sound\File1.ogg, db + 0, 1.0};
      //
      titles[] = {0, ""};
};
   };
   class File10
   {
      // Name to display in mission editor
      name = "File10";
      // Sound path, volume, pitch
      sound[] = {\sound\File10.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
   class File11
   {
      // Name to display in mission editor
      name = "File11";
      // Sound path, volume, pitch
      sound[] = {\sound\File11.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
   class File12
   {
      // Name to display in mission editor
      name = "File12";
      // Sound path, volume, pitch
      sound[] = {\sound\File12.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
   class File13
   {
      // Name to display in mission editor
      name = "File13";
      // Sound path, volume, pitch
      sound[] = {\sound\File13.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
   class File14
   {
      // Name to display in mission editor
      name = "File14";
      // Sound path, volume, pitch
      sound[] = {\sound\File14.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
   class File15
   {
      // Name to display in mission editor
      name = "File15";
      // Sound path, volume, pitch
      sound[] = {\sound\File15.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
   class File16
   {
      // Name to display in mission editor
      name = "File16";
      // Sound path, volume, pitch
      sound[] = {\sound\File16.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
   class File17
   {
      // Name to display in mission editor
      name = "File17";
      // Sound path, volume, pitch
      sound[] = {\sound\File17.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
   class File18
   {
      // Name to display in mission editor
      name = "File18";
      // Sound path, volume, pitch
      sound[] = {\sound\File18.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
   class File19
   {
      // Name to display in mission editor
      name = "File19";
      // Sound path, volume, pitch
      sound[] = {\sound\File19.ogg, db + 0, 1.0};
   // Sound title text (set to no text)
      titles[] = {0, ""};
   };
   class File2
   {
      // Name to display in mission editor
      name = "File2";
      // Sound path, volume, pitch
      sound[] = {\sound\File2.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
   class File20
   {
      // Name to display in mission editor
      name = "File20";
      // Sound path, volume, pitch
      sound[] = {\sound\File20.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
   class File21
   {
      // Name to display in mission editor
      name = "File21";
      // Sound path, volume, pitch
      sound[] = {\sound\File21.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
   class File22
   {
      // Name to display in mission editor
      name = "File22";
      // Sound path, volume, pitch
      sound[] = {\sound\File22.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
   class File23
   {
      // Name to display in mission editor
      name = "File23";
      // Sound path, volume, pitch
      sound[] = {\sound\File23.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
   class File24
   {
      // Name to display in mission editor
      name = "File24";
      // Sound path, volume, pitch
      sound[] = {\sound\File24.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
   class File25
   {
      // Name to display in mission editor
      name = "File25";
      // Sound path, volume, pitch
      sound[] = {\sound\File25.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
   class File26
   {
      // Name to display in mission editor
      name = "File26";
      // Sound path, volume, pitch
      sound[] = {\sound\File26.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
   class File27
   {
      // Name to display in mission editor
      name = "File27";
      // Sound path, volume, pitch
      sound[] = {\sound\File27.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
   class File3
   {
      // Name to display in mission editor
      name = "File3";
      // Sound path, volume, pitch
      sound[] = {\sound\File3.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
   class file4
   {
      // Name to display in mission editor
      name = "file4";
      // Sound path, volume, pitch
      sound[] = {\sound\file4.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
   class File5
   {
      // Name to display in mission editor
      name = "File5";
      // Sound path, volume, pitch
      sound[] = {\sound\File5.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
   class file6
   {
      // Name to display in mission editor
      name = "file6";
      // Sound path, volume, pitch
      sound[] = {\sound\file6.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
   class File7
   {
      // Name to display in mission editor
      name = "File7";
      // Sound path, volume, pitch
      sound[] = {\sound\File7.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
   class File8
   {
      // Name to display in mission editor
      name = "File8";
      // Sound path, volume, pitch
      sound[] = {\sound\File8.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
   class File9
   {
      // Name to display in mission editor
      name = "File9";
      // Sound path, volume, pitch
      sound[] = {\sound\File9.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
};




And the part of the intro when I put the File2 in....

Code: [Select]
;=== 14:08:47
_camera camSetTarget [105605.63,7518.66,6618.32]
_camera camSetPos [5901.34,3522.43,1.35]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera
~6
playsound "File2"
~6
;=== 14:09:30
_camera camSetTarget [8333.68,103266.09,-6601.60]
_camera camSetPos [5898.76,3517.57,1.29]
_camera camSetFOV 0.700
_camera camCommit 0
@camCommitted _camera

However File1 is used like this....
Code: [Select]
playsound "File1"
cuttext ["All units get ready, the target is approaching.","plain down",1]


And like I said above, it won't work.... >:( :P

thanks once again... :)

Dubieman

  • Guest
Re:2 .exts
« Reply #16 on: 13 Aug 2004, 02:07:47 »
Okay I examined a BIS mission with sounds and found they leave

sounds[] = {File1, File10, File11, File12, File13, File14, File15, File16, File17, File18, File19, File2, File20, File21, File22, File23, File24, File25, File26, File27, File3, file4, File5, file6, File7, File8, File9};


empty, like this

sounds[] = {}


now I tried that and still File2 cannot be found. I tried looking in effects where File1 is listed but now I have a new question. Is my sound drop down menu maxed? ECP convientantly dropped every sound it has in my drop down menu as did the C130, F18, and a few other addons.

Can this be problematic? No more sounds after a bit? :P

   


   


Unnamed

  • Guest
Re:2 .exts
« Reply #17 on: 13 Aug 2004, 11:09:07 »
Code: [Select]
class CfgSounds
{
   // List of sounds
   sounds[] = {File1, File10, File11, File12, File13, File14, File15, File16, File17, File18, File19, File2, File20, File21, File22, File23, File24, File25, File26, File27, File3, file4, File5, file6, File7, File8, File9};

   // Class definition needed for each sound
   class File1
   {
      // Name to display in mission editor
      name = "File1";
      // Sound path, volume, pitch
      sound[] = {\sound\File1.ogg, db + 0, 1.0};
      //
      titles[] = {0, ""};
};
   };

Looks like your ending your CfgSounds section after File1? You have one extra bracket at the end of the above code.

Dubieman

  • Guest
Re:2 .exts
« Reply #18 on: 13 Aug 2004, 16:28:23 »
OMG I feel so stupid now, :-[  so easy to fix that damn thing...

Thanks all of you for helping.:thumbsup:  ;)
« Last Edit: 13 Aug 2004, 17:59:28 by GuiltyRoachKillar »