Jump to content
Midnighters

Question regarding CfgSound

Recommended Posts

when I pack my config.cpp as such:

class CfgPatches
{ 
          name = "MS Sound";
          author = "Midnight";
          url = "themedicstation.net";
          requiredVersion = 1.66;
          requiredAddons[]={};
          units[]={};
          weapons[]={};
};


class cfgSounds
{ 
      sounds[]={};
      class MS_Alarm
      {
          name = "MS-Alarm";
 sound[]={"@MS_Sounds\sounds\alarm.ogg",0.8,1,30};
 titles[] = {0,""};
       };
};

My addon paths go like this:

MS_Sounds\sounds\alarm.ogg

And MS_Sounds would be the pbo name I put into the regular addons folder.

am I doing anything wrong with the directory?

I go to pack this, everything is fine and no errors. With both MakePBO and addon builder (double checking)

And the sound doesn't play, the class comes up in the config viewer and in the sounds.

But no sound as to what I can hear?

thanks in advance. 

 

 

Share this post


Link to post
Share on other sites

This should have been posted here.

Anyway...looks like you need to drop the "@" from @MS_Sounds

Try this.  :)

class CfgPatches
{ 
          name = "MS Sound";
          author = "Midnight";
          url = "themedicstation.net";
          requiredVersion = 1.66;
          requiredAddons[]={};
          units[]={};
          weapons[]={};
};


class cfgSounds
{ 
      sounds[]={};
      class MS_Alarm
      {
          name = "MS-Alarm";
 sound[]={"MS_Sounds\sounds\alarm.ogg",0.8,1,30};
 titles[] = {0,""};
       };
};

Share this post


Link to post
Share on other sites

 

This should have been posted here.

Anyway...looks like you need to drop the "@" from @MS_Sounds

Try this.  :)

class CfgPatches
{ 
          name = "MS Sound";
          author = "Midnight";
          url = "themedicstation.net";
          requiredVersion = 1.66;
          requiredAddons[]={};
          units[]={};
          weapons[]={};
};


class cfgSounds
{ 
      sounds[]={};
      class MS_Alarm
      {
          name = "MS-Alarm";
 sound[]={"MS_Sounds\sounds\alarm.ogg",0.8,1,30};
 titles[] = {0,""};
       };
};

Oh thanks! Much appreciated, I'll make sure to post there next time :) 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×