Page MenuHomeFeedback Tracker

Cannot use addon sounds in mission CfgSounds
Closed, ResolvedPublic

Description

adding addon sounds to mission description.ext CfgSounds does not work.

Details

Legacy ID
2418742987
Severity
None
Resolution
Fixed
Reproducibility
Always
Category
Config
Steps To Reproduce

Lets take A3 addon sound "click" defined in A3 addon

class CfgSounds
{
class border_out
{

Border out;
		sound[] = {"A3\missions_f\data\sounds\border_out.ogg",0.56234133,1};
		titles[] = {};

};
class border_in
{

Border In;
		sound[] = {"A3\missions_f\data\sounds\border_in.ogg",0.56234133,1};
		titles[] = {};

};
class click
{

Click;
		sound[] = {"A3\missions_f\data\sounds\click.wss",0.91201085,1};
		titles[] = {};

};
};

execute playSound "click" in debug console and it works

define own click sound click2 in mission config (description.ext) identical to A3 one

class CfgSounds
{
class click2
{

Click;
		sound[] = {"A3\missions_f\data\sounds\click.wss",0.91201085,1};
		titles[] = {};

};
};
execute playSound "click2" in debug console and it DOESN'T work.

So if I want to use A3 sounds I have to copy them to my mission. This is very inefficient, please fix this.

Event Timeline

Killzone_Kid edited Additional Information. (Show Details)
Killzone_Kid set Category to Config.
Killzone_Kid set Reproducibility to Always.
Killzone_Kid set Severity to None.
Killzone_Kid set Resolution to Fixed.
Killzone_Kid set Legacy ID to 2418742987.May 7 2016, 5:25 PM
Killzone_Kid edited a custom field.
ragnos added a subscriber: ragnos.May 7 2016, 5:25 PM
ragnos added a comment.Apr 1 2015, 7:56 PM

Still an issue on 1.40 stable :( Ticket was created in 2013 and it's not fixed in 2015? C'mon! Please fix it.

Vitdom added a subscriber: Vitdom.May 7 2016, 5:25 PM
Vitdom added a comment.Apr 1 2015, 8:06 PM

I am not good at scripting but I think click2 is the classname and "Click" is the sound name.

Does it work if you execute playSound "Click2" and rename the sound to "Click2"?

ragnos added a comment.Apr 1 2015, 8:23 PM

I've tried it to be sure, not working. But I think it is correct to use classname, like in this example: https://community.bistudio.com/wiki/Description.ext#cfgSounds