OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: seanver on 04 Sep 2002, 15:07:42

Title: Music and campaigns
Post by: seanver on 04 Sep 2002, 15:07:42
Is it possible to make a music file common to a whole campaign to be able to play it in several missions from just one file?
Title: Re:Music and campaigns
Post by: Black_Feather on 04 Sep 2002, 15:21:22
yeah define the music in you campaigns description.ext and put the file in the campaigns music directory instead of the missions.
Title: Re:Music and campaigns
Post by: seanver on 04 Sep 2002, 17:07:03
tried but i doesn't work. I have the song in \campaign'sname\music directory and in description.ext i put:

class CfgMusic
{

tracks[]= {Musica01};

class Musica01
{

name = "Musica01";
sound[] = {\Music\01.ogg, db+0, 1.0};
};
};

When I try to play the music in a cutscene, with a script with playmusic "Music01", it won't play. Nor I get a message error, like file not found. The music played perfectly when I tried it in the editor so there's nothing wrong with the file.
Title: Re:Music and campaigns
Post by: Black_Feather on 05 Sep 2002, 14:34:38
ok put the music file here

\campaignname\DtaExt\music

and it will work
Title: Re:Music and campaigns
Post by: seanver on 17 Sep 2002, 17:12:30
That didn't work. I was making the first phase of my campaign so I didn't try it. But it doesn't work. Do I have to do anything special?
Title: Re:Music and campaigns
Post by: seanver on 17 Sep 2002, 17:17:03
Oops now it works. The syntax is:
Code: [Select]
class CfgMusic
{

tracks[]= {Musica01};

class Musica01
{

name = "Musica01";
sound[] = {\Music\01.ogg, db+0, 1.0};
};
};


and i was trying to put:

class CfgMusic
{

tracks[]= {Musica01};

class Musica01
{

name = "Musica01";
sound[] = {dtaext\Music\01.ogg, db+0, 1.0};
};
};
Title: Re:Music and campaigns
Post by: Black_Feather on 17 Sep 2002, 21:44:15
silly bugger  ;D
Title: Re:Music and campaigns
Post by: seanver on 18 Sep 2002, 01:02:18
Now Ive gotta click on the solve butom, haven't I?