Jump to content
Scott

Sound not found - Custom

Recommended Posts

Sound not found

 

So im learning to add custom sounds, and this is what i did so far:
Made the description.ext file for it to include the cfg and looks like this:
https://gyazo.com/4fca47f95de40f3e0623967ed1480508

Now, i have added those 3 sounds in a "sound" folder in the directory of the mission:
https://gyazo.com/41879c59b412ad725cc5ddc36ff113e9

I have made a "sound.sqf" file which looks like this:
https://gyazo.com/830ce4538ef4e43eba2254e3a0255a5a

At last i made a trigger activated by blufor to start the "sound.sqf" file that will start the sounds: this = [] execVM "sound.sqf";


What im getting is this tho:
https://gyazo.com/58cd8bf0ffdaec8e904b848a0cb7a39c

Anyone know what i might have done wrong? Im trying to make them play one after another with a small 4-3 seconds break on the same trigger activation.

  • Like 1

Share this post


Link to post
Share on other sites

playsound "sea";

 

Don't add the extension.

Share this post


Link to post
Share on other sites

class CfgSounds is messed up.

 

Use this as a template.

Spoiler

class CfgSounds {
	sounds[] = {};
	class airraid {
		name="airraid";
		sound[]={sound\airraid.ogg, 20, 1, 500}; // filename, volume, pitch, distance
		titles[] = {};
	};	
	class truckairhorn {
		name="truckairhorn";
		sound[]={sound\truckairhorn.ogg, 10, 1, 200};
		titles[] = {};
	};
	class datadownload {
		name="datadownload";
		sound[]={sound\datadownload.ogg, 4, 1, 100};
		titles[] = {};
	};	
	class error {
		name="error";
		sound[]={sound\error.ogg, 10, 1, 25};
		titles[] = {};
	};	
	class giveup {
		name = "giveup"; 
		sound[] = {"sound\giveup.ogg", 4, 1, 100}; 
		titles[] = {};
	};
	class found {
		name = "found"; 
		sound[] = {"sound\found.ogg", 4, 1, 100}; 
		titles[] = {};
	};

	class siren2 {
		name = "siren2"; 
		sound[] = {"sound\siren2.ogg", 4, 1, 100}; 
		titles[] = {};
	};	
	class generator {
		name="generator";
		sound[]={sound\generator.ogg, 10, 1, 100};
		titles[] = {};
	};	
	class siren {
		name="siren";
		sound[]={sound\siren.ogg, 10, 1, 200};
		titles[] = {};
	};	
	class The_Good_The_Bad_And_The_Ugly {
		name="The_Good_The_Bad_And_The_Ugly";
		sound[]={sound\The_Good_The_Bad_And_The_Ugly.ogg, 3, 1, 25};
		titles[] = {};
	};	
	class hostages {
		name="hostages";
		sound[]={sound\hostages.ogg, 3, 1, 25};
		titles[] = {};
	};
	class mosque {
		name="mosque";
		sound[]={sound\mosque.ogg, 8, 1, 25};
		titles[] = {};
	};
	class 10secs {
		name="10secs";
		sound[]={sound\10secs.ogg, 10, 1, 25};
		titles[] = {};
	};
	class Grenade_Explosion {
		name="Grenade_Explosion";
		sound[]={sound\Grenade_Explosion.ogg, 10, 1, 100};
		titles[] = {};
	};
	class mortar_Explosions_x3 {
		name="mortar_Explosions_x3";
		sound[]={sound\mortar_Explosions_x3.ogg, 10, 1, 25};
		titles[] = {};
	};
	class Explosion {
		name="Explosion";
		sound[]={sound\Explosion.ogg, 10, 1, 100};
		titles[] = {};
	};
	class Car_Explosion {
		name="Car_Explosion";
		sound[]={sound\Car_Explosion.ogg, 10, 1, 100};
		titles[] = {};
	};	
	class ambient_radio {
		name="ambient_radio";
		sound[]={sound\ambient_radio.ogg, 20, 1, 200};
		titles[] = {};
	};
	class SmallExplosion {
		name="SmallExplosion";
		sound[]={sound\SmallExplosion.ogg, 5, 1, 100};
		titles[] = {};
	};
	class exfil_inbound {
		name="exfil_inbound";
		sound[]={sound\exfil_inbound.ogg, 5, 1, 100};
		titles[] = {};
	};
	class exfil_takeoff {
		name="exfil_takeoff";
		sound[]={sound\exfil_takeoff.ogg, 5, 1, 100};
		titles[] = {};
	};
	class arrivechopper {
		name="arrivechopper";
		sound[]={sound\arrivechopper.ogg, 10, 1, 100};
		titles[] = {};
	};
	class 2tanks {
		name="2tanks";
		sound[]={sound\2tanks.ogg, 10, 1, 100};
		titles[] = {};
	};
	
};

 

 

Share this post


Link to post
Share on other sites
26 minutes ago, major-stiffy said:

class CfgSounds is messed up.

 

Use this as a template.

  Reveal hidden contents


class CfgSounds {
	sounds[] = {};
	class airraid {
		name="airraid";
		sound[]={sound\airraid.ogg, 20, 1, 500}; // filename, volume, pitch, distance
		titles[] = {};
	};	
	class truckairhorn {
		name="truckairhorn";
		sound[]={sound\truckairhorn.ogg, 10, 1, 200};
		titles[] = {};
	};
	class datadownload {
		name="datadownload";
		sound[]={sound\datadownload.ogg, 4, 1, 100};
		titles[] = {};
	};	
	class error {
		name="error";
		sound[]={sound\error.ogg, 10, 1, 25};
		titles[] = {};
	};	
	class giveup {
		name = "giveup"; 
		sound[] = {"sound\giveup.ogg", 4, 1, 100}; 
		titles[] = {};
	};
	class found {
		name = "found"; 
		sound[] = {"sound\found.ogg", 4, 1, 100}; 
		titles[] = {};
	};

	class siren2 {
		name = "siren2"; 
		sound[] = {"sound\siren2.ogg", 4, 1, 100}; 
		titles[] = {};
	};	
	class generator {
		name="generator";
		sound[]={sound\generator.ogg, 10, 1, 100};
		titles[] = {};
	};	
	class siren {
		name="siren";
		sound[]={sound\siren.ogg, 10, 1, 200};
		titles[] = {};
	};	
	class The_Good_The_Bad_And_The_Ugly {
		name="The_Good_The_Bad_And_The_Ugly";
		sound[]={sound\The_Good_The_Bad_And_The_Ugly.ogg, 3, 1, 25};
		titles[] = {};
	};	
	class hostages {
		name="hostages";
		sound[]={sound\hostages.ogg, 3, 1, 25};
		titles[] = {};
	};
	class mosque {
		name="mosque";
		sound[]={sound\mosque.ogg, 8, 1, 25};
		titles[] = {};
	};
	class 10secs {
		name="10secs";
		sound[]={sound\10secs.ogg, 10, 1, 25};
		titles[] = {};
	};
	class Grenade_Explosion {
		name="Grenade_Explosion";
		sound[]={sound\Grenade_Explosion.ogg, 10, 1, 100};
		titles[] = {};
	};
	class mortar_Explosions_x3 {
		name="mortar_Explosions_x3";
		sound[]={sound\mortar_Explosions_x3.ogg, 10, 1, 25};
		titles[] = {};
	};
	class Explosion {
		name="Explosion";
		sound[]={sound\Explosion.ogg, 10, 1, 100};
		titles[] = {};
	};
	class Car_Explosion {
		name="Car_Explosion";
		sound[]={sound\Car_Explosion.ogg, 10, 1, 100};
		titles[] = {};
	};	
	class ambient_radio {
		name="ambient_radio";
		sound[]={sound\ambient_radio.ogg, 20, 1, 200};
		titles[] = {};
	};
	class SmallExplosion {
		name="SmallExplosion";
		sound[]={sound\SmallExplosion.ogg, 5, 1, 100};
		titles[] = {};
	};
	class exfil_inbound {
		name="exfil_inbound";
		sound[]={sound\exfil_inbound.ogg, 5, 1, 100};
		titles[] = {};
	};
	class exfil_takeoff {
		name="exfil_takeoff";
		sound[]={sound\exfil_takeoff.ogg, 5, 1, 100};
		titles[] = {};
	};
	class arrivechopper {
		name="arrivechopper";
		sound[]={sound\arrivechopper.ogg, 10, 1, 100};
		titles[] = {};
	};
	class 2tanks {
		name="2tanks";
		sound[]={sound\2tanks.ogg, 10, 1, 100};
		titles[] = {};
	};
	
};

 

 

Not really. Human error. Works fine for me and many others.

Share this post


Link to post
Share on other sites

He has

sound[]={\sound\xxxx.ogg, 10, 1, 200};

\ in front of sound doesn't work for me.

  • Like 1

Share this post


Link to post
Share on other sites
23 hours ago, Scott said:

Made the description.ext file

 

4 hours ago, major-stiffy said:

He has

sound[]={\sound\xxxx.ogg, 10, 1, 200};

\ in front of sound doesn't work for me.

 

Off course , the path is the error!

But you could also make your cfgsounds more clear.

 

Personally i like to have everything in a row my ex is here :

class CfgSounds
{
	sounds[] = {};
		
	//adjust the volume from db0
	
	//__________________________ GF Ambient Environment Sounds Script __________________________
	
	//__________________________	Birds_day	__________________________
	
	class Birds_day_1{name = "Birds_day_1";sound[] = {"GF_Ambient_Environment_Sounds\Sounds\Birds_day\Birds_day_1.ogg", db0, 1.0};titles[] = {};};
	class Birds_day_2{name = "Birds_day_2";sound[] = {"GF_Ambient_Environment_Sounds\Sounds\Birds_day\Birds_day_2.ogg", db0, 1.0};titles[] = {};};
};

 

you have used also all the times this  like :

sounds[] = {sea};

 

you don't need to do this , just add this below the cfgsounds , as the ex.  above :

class CfgSounds
{
    sounds[] = {};

 

 

It's also your first post !

Welcome Scott to Bis Forums !

 

  • Like 1

Share this post


Link to post
Share on other sites
4 hours ago, major-stiffy said:

He has

sound[]={\sound\xxxx.ogg, 10, 1, 200};

\ in front of sound doesn't work for me.

Read the Wiki. \ in this case (CfgSounds) is for addon path.

  • Like 2

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

×