Jump to content
bossmansheild

Music with Eden 3D Editor

Recommended Posts

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.
 
guY0rS.jpg
cB4qXG.jpg
 
 
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

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

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

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

Finally got it working thanks for help

R3vo

small 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 8SpHDb.png

 

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

You simply create a description.ext in your mission root folder, same procedure as before Eden update.

  • Like 1

Share this post


Link to post
Share on other sites

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:1ZbiIH.png

 

This is the code I put in the trigger: 

30rYoD.jpg

 

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:sC9e6v.png

  • Like 1

Share this post


Link to post
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×