Jump to content
Sign in to follow this  
fabl10

Custom Radio Sound not working

Recommended Posts

Hello there,

my custom Radio sound somehow doesn't work. Here's the description.ext:

onLoadMission = "BlackHawkDownFallujah";
onLoadMissionTime = true;

// === Radio ============================================>
class CfgRadio
{
sounds[] = {blackhawkdown1};
class blackhawkdown1
{
name = "blackhawkdown1";
sound[] = {"\sound\blackhawkdown1.ogg", db-5, 1.0};
title = “Black Hawk Down.";
};
};

My trigger:

hint "test"; playsound "blackhawkdown1";

And yes, it prints test and it says the sound is missing.

What am I doing wrong?

Thanks in Advance

fabl10

Share this post


Link to post
Share on other sites

Can't see anything wrong with it. Once you have created the description.ext did you shut down ArmA and restarted it. It won't recognize any custom added sounds until you do that. Have you set the trigger condition to "true" ?

try player playsound "blackhawkdown1";

Edited by nettrucker

Share this post


Link to post
Share on other sites

Thanks for the reply.

[...] Once you have created the description.ext did you shut down ArmA and restarted it. It won't recognize any custom added sounds until you do that. [...]

Didn't know that, sorry. But, after restart it still won't recognize the sound :\. Does it read the description.ext in Editor with Preview, too, or only at the final mission? Both won't work, though, so it doesn't really matter.

By the way, the Mission folder is in "ArmA 2 Other Profiles\(myname)\missions\", if that matters somehow. The OGG is 135kb and plays fine with VLC Media Player.

Do you have to add something to the mission.sqm so it loads the description.ext?

Share this post


Link to post
Share on other sites

You're using the wrong quotation marks.

The first ones of the following line must be replaced by the correct ones (those at the end of the line)

title = “Black Hawk Down.";

(In the German keyboard layout they are placed on the key "2", don't know what you are using...)

Share this post


Link to post
Share on other sites

The first ones of the following line must be replaced by the correct ones (those at the end of the line)

title = “Black Hawk Down.";

Done, no change, still "Sound blackhawkdown1 not found."

Share this post


Link to post
Share on other sites

You placed the ogg file in your sound folder right? Check if the ogg file is exactly the same name you declared in the description.ext. If you get the message file not found I guess that the ogg file is named differently or slightly differently. It's only my guess though.

Share this post


Link to post
Share on other sites

That's the thing I don't get, it's exactly the same name, I checked like 20 times, it just won't work. And yes, it's in the sound folder.

Share this post


Link to post
Share on other sites

try the following...

description file

#include "config.cpp"

config.cpp - (to make this just save the file as all files and add .cpp at end

class CfgSounds
{	
class example
{
	name="blackhawkdown1";
	sound[]={"Sound\blackhawkdown1.ogg",db-20,1.0};
	titles[]={};
}

};

place your sound in the sound folder.

In game create a trigger with activation Anyone- and detection by blufor.

cond - this

on act - playsound "blackhawkdown1";

just tested it - works fine

hope this helps

Share this post


Link to post
Share on other sites
try the following...

I did, and it still wont work O.o

config.cpp

class CfgSounds
{	
class example
{
	name="blackhawkdown1";
	sound[]={"Sound\blackhawkdown1.ogg",db-20,1.0};
	titles[]={};
}

};

description.ext

#include "config.cpp"
onLoadMission = "Black Hawk Down";
onLoadMissionTime = 1;

Mission folder

PtbLT.png

Sound folder

Whb7h.png

What the hell am I doing wrong...

Share this post


Link to post
Share on other sites

There you go Your file is named blackhawkdown1.ogg it must be blackhawkdown1 and that's it. the ogg extension is already there.

blackhawkdown1.ogg is causing your soundfile not to be found

Edited by nettrucker
added explanation

Share this post


Link to post
Share on other sites
There you go Your file is named blackhawkdown1.ogg it must be blackhawkdown1 and that's it. the ogg extension is already there.

blackhawkdown1.ogg is causing your soundfile not to be found

If only.. it's because I got view file extensions enabled

Share this post


Link to post
Share on other sites

Can you upload the ogg.file somewhere so I can run a couple of tests. It is difficult for me to understand what's not working. In order to help you I need the ogg file or send me the mission your working on. Maybe resave the ogg file once again. Check once again the extension. disable the extension viewer and check once again the soundfile name.

edited:

p.s thanks for uploading have sent you a PM with the mission examples. Both work without problems declared as sound and declared as radio both run pretty good. Check the example missions.

Edited by nettrucker

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  

×