Home   Help Search Login Register  

Author Topic: Music and campaigns  (Read 1504 times)

0 Members and 1 Guest are viewing this topic.

seanver

  • Guest
Music and campaigns
« 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?

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:Music and campaigns
« Reply #1 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.

seanver

  • Guest
Re:Music and campaigns
« Reply #2 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.

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:Music and campaigns
« Reply #3 on: 05 Sep 2002, 14:34:38 »
ok put the music file here

\campaignname\DtaExt\music

and it will work

seanver

  • Guest
Re:Music and campaigns
« Reply #4 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?

seanver

  • Guest
Re:Music and campaigns
« Reply #5 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};
};
};

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:Music and campaigns
« Reply #6 on: 17 Sep 2002, 21:44:15 »
silly bugger  ;D

seanver

  • Guest
Re:Music and campaigns
« Reply #7 on: 18 Sep 2002, 01:02:18 »
Now Ive gotta click on the solve butom, haven't I?