Jump to content
Sign in to follow this  
sturmfalkerda

Can't define CfgSounds for mod - Sound not found ingame

Recommended Posts

Hello!

Ingame error when trying to say3D. My first sound the list as an example: "Sound selfinformthrowgrenade0 not found"

Addon file structure:

 

@Callouts\Addons\callout_sounds.pbo

 

callout_sounds.pbo file structure:

 

callout_sounds.pbo\config.cpp

callout_sounds.pbo\Sounds\informthrowgrenade

callout_sounds.pbo\Sounds\informthrowgrenade\selfinformthrowgrenadeX.ogg, where X = 0 through 24. I also have all the generated .lip files for each.

 

config.cpp contents: I've tried all kinds of directory variants and I can't seem to get my missions to recognize that I have tried to define these sounds :(

 

class CfgSounds
{
	sounds[] = {};
		class selfinformthrowgrenadec0
	{
		name = "selfinformthrowgrenade0";
		// start path to sound file in AddOn with @
		sound[] = {"callout_sounds\Sounds\informthrowgrenade\selfinformthrowgrenade0.ogg", 0.8, 1};
		titles[] = {0,""};
	};
		class selfinformthrowgrenadec1
	{
		name = "selfinformthrowgrenade1";
		// start path to sound file in AddOn with @
		sound[] = {"callout_sounds\Sounds\informthrowgrenade\selfinformthrowgrenade1.ogg", 0.8, 1};
		titles[] = {0,""};
	};
		class selfinformthrowgrenadec2
	{
		name = "selfinformthrowgrenade2";
		// start path to sound file in AddOn with @
		sound[] = {"callout_sounds\Sounds\informthrowgrenade\selfinformthrowgrenade2.ogg", 0.8, 1};
		titles[] = {0,""};
	};
		class selfinformthrowgrenadec3
	{
		name = "selfinformthrowgrenade3";
		// start path to sound file in AddOn with @
		sound[] = {"callout_sounds\Sounds\informthrowgrenade\selfinformthrowgrenade3.ogg", 0.8, 1};
		titles[] = {0,""};
	};
		class selfinformthrowgrenadec4
	{
		name = "selfinformthrowgrenade4";
		// start path to sound file in AddOn with @
		sound[] = {"callout_sounds\Sounds\informthrowgrenade\selfinformthrowgrenade4.ogg", 0.8, 1};
		titles[] = {0,""};
	};

		class selfinformthrowgrenadec5
	{
		name = "selfinformthrowgrenade5";
		// start path to sound file in AddOn with @
		sound[] = {"callout_sounds\Sounds\informthrowgrenade\selfinformthrowgrenade5.ogg", 0.8, 1};
		titles[] = {0,""};
	};
		class selfinformthrowgrenadec6
	{
		name = "selfinformthrowgrenade6";
		// start path to sound file in AddOn with @
		sound[] = {"callout_sounds\Sounds\informthrowgrenade\selfinformthrowgrenade6.ogg", 0.8, 1};
		titles[] = {0,""};
	};
		class selfinformthrowgrenadec7
	{
		name = "selfinformthrowgrenade7";
		// start path to sound file in AddOn with @
		sound[] = {"callout_sounds\Sounds\informthrowgrenade\selfinformthrowgrenade7.ogg", 0.8, 1};
		titles[] = {0,""};
	};
		class selfinformthrowgrenadec8
	{
		name = "selfinformthrowgrenade8";
		// start path to sound file in AddOn with @
		sound[] = {"callout_sounds\Sounds\informthrowgrenade\selfinformthrowgrenade8.ogg", 0.8, 1};
		titles[] = {0,""};
	};
		class selfinformthrowgrenadec9
	{
		name = "selfinformthrowgrenade9";
		// start path to sound file in AddOn with @
		sound[] = {"callout_sounds\Sounds\informthrowgrenade\selfinformthrowgrenade9.ogg", 0.8, 1};
		titles[] = {0,""};
	};
		class selfinformthrowgrenadec10
	{
		name = "selfinformthrowgrenade10";
		// start path to sound file in AddOn with @
		sound[] = {"callout_sounds\Sounds\informthrowgrenade\selfinformthrowgrenade10.ogg", 0.8, 1};
		titles[] = {0,""};
	};
		class selfinformthrowgrenadec11
	{
		name = "selfinformthrowgrenade11";
		// start path to sound file in AddOn with @
		sound[] = {"callout_sounds\Sounds\informthrowgrenade\selfinformthrowgrenade11.ogg", 0.8, 1};
		titles[] = {0,""};
	};
		class selfinformthrowgrenadec12
	{
		name = "selfinformthrowgrenade12";
		// start path to sound file in AddOn with @
		sound[] = {"callout_sounds\Sounds\informthrowgrenade\selfinformthrowgrenade12.ogg", 0.8, 1};
		titles[] = {0,""};
	};
		class selfinformthrowgrenadec13
	{
		name = "selfinformthrowgrenade13";
		// start path to sound file in AddOn with @
		sound[] = {"callout_sounds\Sounds\informthrowgrenade\selfinformthrowgrenade13.ogg", 0.8, 1};
		titles[] = {0,""};
	};
		class selfinformthrowgrenadec14
	{
		name = "selfinformthrowgrenade14";
		// start path to sound file in AddOn with @
		sound[] = {"callout_sounds\Sounds\informthrowgrenade\selfinformthrowgrenade14.ogg", 0.8, 1};
		titles[] = {0,""};
	};
		class selfinformthrowgrenadec15
	{
		name = "selfinformthrowgrenade15";
		// start path to sound file in AddOn with @
		sound[] = {"callout_sounds\Sounds\informthrowgrenade\selfinformthrowgrenade15.ogg", 0.8, 1};
		titles[] = {0,""};
	};
		class selfinformthrowgrenadec16
	{
		name = "selfinformthrowgrenade16";
		// start path to sound file in AddOn with @
		sound[] = {"callout_sounds\Sounds\informthrowgrenade\selfinformthrowgrenade16.ogg", 0.8, 1};
		titles[] = {0,""};
	};
		class selfinformthrowgrenadec17
	{
		name = "selfinformthrowgrenade17";
		// start path to sound file in AddOn with @
		sound[] = {"callout_sounds\Sounds\informthrowgrenade\selfinformthrowgrenade17.ogg", 0.8, 1};
		titles[] = {0,""};
	};
		class selfinformthrowgrenadec18
	{
		name = "selfinformthrowgrenade18";
		// start path to sound file in AddOn with @
		sound[] = {"callout_sounds\Sounds\informthrowgrenade\selfinformthrowgrenade18.ogg", 0.8, 1};
		titles[] = {0,""};
	};
		class selfinformthrowgrenadec19
	{
		name = "selfinformthrowgrenade19";
		// start path to sound file in AddOn with @
		sound[] = {"callout_sounds\Sounds\informthrowgrenade\selfinformthrowgrenade19.ogg", 0.8, 1};
		titles[] = {0,""};
	};
		class selfinformthrowgrenadec20
	{
		name = "selfinformthrowgrenade20";
		// start path to sound file in AddOn with @
		sound[] = {"callout_sounds\Sounds\informthrowgrenade\selfinformthrowgrenade20.ogg", 0.8, 1};
		titles[] = {0,""};
	};
		class selfinformthrowgrenadec21
	{
		name = "selfinformthrowgrenade21";
		// start path to sound file in AddOn with @
		sound[] = {"callout_sounds\Sounds\informthrowgrenade\selfinformthrowgrenade21.ogg", 0.8, 1};
		titles[] = {0,""};
	};
		class selfinformthrowgrenadec22
	{
		name = "selfinformthrowgrenade22";
		// start path to sound file in AddOn with @
		sound[] = {"callout_sounds\Sounds\informthrowgrenade\selfinformthrowgrenade22.ogg", 0.8, 1};
		titles[] = {0,""};
	};
		class selfinformthrowgrenadec23
	{
		name = "selfinformthrowgrenade23";
		// start path to sound file in AddOn with @
		sound[] = {"callout_sounds\Sounds\informthrowgrenade\selfinformthrowgrenade23.ogg", 0.8, 1};
		titles[] = {0,""};
	};
		class selfinformthrowgrenadec24
	{
		name = "selfinformthrowgrenade24";
		// start path to sound file in AddOn with @
		sound[] = {"callout_sounds\Sounds\informthrowgrenade\selfinformthrowgrenade24.ogg", 0.8, 1};
		titles[] = {0,""};
	};
	
};

Share this post


Link to post
Share on other sites

You have stated that your sound files are located in:

callout_sounds\informthrowgrenade\...

but in your config you have the addition of the \Sounds\ directory:

sound[] = {"callout_sounds\Sounds\informthrowgrenade\selfinformthrowgrenade0.ogg", 0.8, 1};

Share this post


Link to post
Share on other sites

Oops, I posted that wrong... Thank you for catching that.

callout_sounds.pbo\Sounds\informthrowgrenade is what it currently is. Updated post to reflect changes.

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
Sign in to follow this  

×