Jump to content
Sign in to follow this  
rick rawlings

Help with cfgradio

Recommended Posts

I am getting back into custom missions and am trying to add in some recorded radio messages. when I trigger the message, I get this error message:

https://ibb.co/htTK0S , which grinds the mission to a halt, yet the sound still plays, just at a lower volume. Here is my description.ext :

class CfgSounds
{
	sounds[] = {};
	class CrashSite
	{
		// how the sound is referred to in the editor (e.g. trigger effects)
		name = "CrashSite";

		// filename, volume, pitch, distance (optional)
		sound[] = { "sounds\CrashSite.ogg", db+18, 1, 1 };

		// subtitle delay in seconds, subtitle text
		titles[] = { 0, "Test" };
	};
	
	class PrairiePilotNotOK
	{
		name = "PrairiePilotNotOK";
		sound[] = { "sounds\PrairiePilotNotOK.ogg", db+18, 1 };
		titles[] = {0, "Test",};
	};
	class PrairiePilotOK
	{
		name = "PrairiePilotOK";
		sound[] = { "sounds\PrairiePilotOK.ogg",db+18, 1 };
		titles[] = {0, "Test",};
	};
	class PrairieRescue
	{
		name = "PrairieRescue";
		sound[] = { "sounds\PrairieRescue.ogg",db+18, 1 };
		titles[] = {0, "Test",};
	};
	
};

class CfgRadio 
{ 
	sounds[] = {}; 	
	class PilotOuttaHere
	{
		name = "PilotOuttaHere";
		sound[] = { "sounds\PilotOuttaHere.ogg", db+30, 1 };
		titles[] = {0, "Test",};
	};
	class PlainsmanDemo
	{
		name = "PlainsmanDemo";
		sound[] = { "sounds\PlainsmanDemo.ogg", db+18, 1 };
		titles[] = {0, "Test",};
	};
	class PlainsmanPilotNotOK
	{
		name = "PlainsmanPilotNotOK";
		sound[] = { "sounds\PlainsmanPilotNotOK.ogg", db+18, 1 };
		titles[] = {0, "Test",};
	};
	class PlainsmanPilotOK
	{
		name = "PlainsmanPilotOK";
		sound[] = { "sounds\PlainsmanPilotOK.ogg", db+18, 1 };
		titles[] = {0, "Test",};
	};
	class PlainsmanRescue
	{
		name = "PlainsmanRescue";
		sound[] = { "sounds\PlainsmanRescue.ogg", db+18, 1 };
		titles[] = {0, "Test",};
	};
	class PilotDropOff
	{
		name = "PilotDropOff";
		sound[] = { "sounds\PilotDropOff.ogg", db+30, 1 };
		titles[] = {0, "Test",};
	};
};

I've tried a few triggers, usually just a blufor activation with something like this to test:

player sideRadio "PilotOuttaHere"

 

Can anybody see where my error is?

Thank you,

 

Rick

Share this post


Link to post
Share on other sites

What's with the extra commas?

Quote

titles[] = {0, "Test",};

 

Share this post


Link to post
Share on other sites

Thank you, I changed the description.ext to this:

class CfgSounds
{
	sounds[] = {};
	class CrashSite
	{
		// how the sound is referred to in the editor (e.g. trigger effects)
		name = "CrashSite";

		// filename, volume, pitch, distance (optional)
		sound[] = { "sounds\CrashSite.ogg", db+18, 1, 1 };

		// subtitle delay in seconds, subtitle text
		titles[] = { 0, "Test" };
	};
	
	class PrairiePilotNotOK
	{
		name = "PrairiePilotNotOK";
		sound[] = { "sounds\PrairiePilotNotOK.ogg", db+18, 1 };
		titles[] = {0, "Test"};
	};
	class PrairiePilotOK
	{
		name = "PrairiePilotOK";
		sound[] = { "sounds\PrairiePilotOK.ogg",db+18, 1 };
		titles[] = {0, "Test"};
	};
	class PrairieRescue
	{
		name = "PrairieRescue";
		sound[] = { "sounds\PrairieRescue.ogg",db+18, 1 };
		titles[] = {0, "Test"};
	};
	
};

class CfgRadio 
{ 
	sounds[] = {}; 	
	class PilotOuttaHere
	{
		name = "PilotOuttaHere";
		sound[] = { "sounds\PilotOuttaHere.ogg", db+30, 1 };
		title = "Test";
	};
	class PlainsmanDemo
	{
		name = "PlainsmanDemo";
		sound[] = { "sounds\PlainsmanDemo.ogg", db+18, 1 };
		title = "Test";
	};
	class PlainsmanPilotNotOK
	{
		name = "PlainsmanPilotNotOK";
		sound[] = { "sounds\PlainsmanPilotNotOK.ogg", db+18, 1 };
		title = "Test";
	};
	class PlainsmanPilotOK
	{
		name = "PlainsmanPilotOK";
		sound[] = { "sounds\PlainsmanPilotOK.ogg", db+18, 1 };
		title = "Test";
	};
	class PlainsmanRescue
	{
		name = "PlainsmanRescue";
		sound[] = { "sounds\PlainsmanRescue.ogg", db+18, 1 };
		title = "Test";
	};
	class PilotDropOff
	{
		name = "PilotDropOff";
		sound[] = { "sounds\PilotDropOff.ogg", db+30, 1 };
		title = "Test";
	};
};

and it seems to be working, for future reference.

 

Thanks again!

 

Rick

  • Like 1

Share this post


Link to post
Share on other sites

Ok as a side topic, the say3D volume is great, but the sideradio volume is way too quiet to hear, especially in a chopper. I have tried some db boost, but it doesn't seem to do much. Here's how I am doing it:

	class PlainsmanPilotNotOK
	{
		name = "PlainsmanPilotNotOK";
		sound[] = { "sounds\PlainsmanPilotNotOK.ogg", db+60, 1 };
		title = "Test";
	};

Is there something different I should do to make it louder? I did a few searches related to sideradio volume and not much came up...

 

Thanks!

Rick

Share this post


Link to post
Share on other sites

How are you calling sideRadio?

Share this post


Link to post
Share on other sites

a commander back at the airfield:

[stan, "PlainsmanDemo"] remoteExec ["sideRadio", WEST, false];

Thank you

Share this post


Link to post
Share on other sites

Just played around with it a little and it seems that the volume parameters in CFGSounds and CFGRadio do nothing when calling sideRadio or its variants. You might need to adjust the inherent volume of your .ogg file.

Share this post


Link to post
Share on other sites

Also, Configure > Audio Options > Radio is the master volume for all radios, so make sure it isn't turned down.

Share this post


Link to post
Share on other sites

Thanks, I did have that volume up, I tried turning the environmental effects down which helped a bit, I will try boosting the volume of the files though, thank you for your help!

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  

×