bossmansheild 10 Posted March 16, 2016 I have been trying to place music in trigger, but does not work anymore. I tried adding description.ext file with the following : class CfgMusic { tracks[]={}; class music1 { name = ""; sound[] = {\music\sami.ogg, db+1, 1.0}; }; class music2 { name = ""; sound[] = {\music\03.ogg, db+1, 1.0}; }; }; inside trigger 1 fademusic 1: playmusic "sami"; The names match the files in music folder in mission but will not play Im getting this error when using music setting inside the trigger. Is there a new way to do this now, in built effects sfx and game music when selecting in triggers also does not work. Share this post Link to post Share on other sites
R3vo 2654 Posted March 16, 2016 You need to use the class name of the track not the music file name. Share this post Link to post Share on other sites
bossmansheild 10 Posted March 25, 2016 Thankds for spotting the error I posted the wrong script, I changed that but still will not working is there somewhere I need to add the class CfgMusic as the description.ext file isn't created anymore? { tracks[]={}; class music1 { name = ""; sound[] = {\music\sami.ogg, db+1, 1.0}; }; class music2 { name = ""; sound[] = {\music\03.ogg, db+1, 1.0}; }; }; Share this post Link to post Share on other sites
R3vo 2654 Posted March 25, 2016 I just did some testing and this works for me, both with triggers and with playSound/playMusic class CfgSounds { sounds[] = {}; class Gortoz_A_Ran { name = "Gortoz A Ran"; sound[] = {"Gortoz A Ran.ogg", 1, 1}; titles[] = {}; }; }; class CfgMusic { tracks[]={}; class Gortoz_A_Ran { name = "Gortoz A Ran"; sound[] = {"Gortoz A Ran.ogg", 1, 1}; }; }; Share this post Link to post Share on other sites
bossmansheild 10 Posted March 26, 2016 Finally got it working thanks for help R3vosmall changes in how the script works made something simple very hard.. For those that don't know here it is. Create a (description.ext) with notepad as before place it in the mission folder. place in side the notepad example: class CfgMusic{ tracks[]={mymusic,mymusic2}; class mymusic { name = "tracknumber1"; sound[] = {\music\mymusic.ogg, db+10, 1.0}; }; class mymusic2 { name = "tracknumber2"; sound[] = {\music\mymusic2.ogg, db+10, 1.0}; };}; Then save. Note in mission folder create music folder and place your .ogg files there. in description.ext find line that says (sound[] = {\music\mymusic.ogg, db+10, 1.0} ;) change high lighted mymusic to name of song or rename music. Create a trigger Place in = on activation playMusic "mymusic" get the name from class in script ie mymusic Share this post Link to post Share on other sites
R3vo 2654 Posted March 26, 2016 You simply create a description.ext in your mission root folder, same procedure as before Eden update. 1 Share this post Link to post Share on other sites
kelton2k 1 Posted July 8, 2016 Hi so I've followed every step on this topic and still the song I put in doesn't work. This is the code I put on the description.ext: This is the code I put in the trigger: I also made sure that the ogg file worked correctly. It may be simple but it would be great if somebody could help me figure out what I am missing. Thanks :) Also, in case this is relevant, here is a picture of the ogg file: 1 Share this post Link to post Share on other sites
killjoy78 0 Posted June 25, 2017 I get the same error, No entry,bin/CfgMusic/ATrack24.sound.? but im trying to use the game music not customized music Share this post Link to post Share on other sites