Home   Help Search Login Register  

Author Topic: Good question to break your brains on.  (Read 937 times)

0 Members and 1 Guest are viewing this topic.

SharkDog

  • Guest
Good question to break your brains on.
« on: 28 Jul 2003, 19:07:16 »
Hi all, i started a ww2 campaign and I have one custom music, since i know how to add them to one single mission thats no problem, BUT.

The campaign will be huge if i have to add the mission over and over again into every mission i want to use it in, so here is my question.

Is it possible to put the music in your campaign so that it i don't have to put it in every mission but just in the campaign folder or something?

thanks in advance

Kaliyuga

  • Guest
Re:Good question to break your brains on.
« Reply #1 on: 28 Jul 2003, 19:42:15 »
 Well... you'll have to have a campaign description.ext for your campaign..

so I dont see why you couldn't define all your music files in that and just refer to them in each individual mission.  

But I've never tried it before  :P

max_killer_payne

  • Guest
Re:Good question to break your brains on.
« Reply #2 on: 28 Jul 2003, 20:10:24 »
I think you do have to define it in every mission, but its easy enugh just copy and paste the needed lines to make the music run properly  ;)

SharkDog

  • Guest
Re:Good question to break your brains on.
« Reply #3 on: 29 Jul 2003, 11:56:41 »
 :-\ hmm okay, ill post again if I encounter problems.

Gameer_77

  • Guest
Re:Good question to break your brains on.
« Reply #4 on: 29 Jul 2003, 14:41:43 »
If you were to put the music in an addon then use it from there, that should work.

I have no idea as to whether or not it should have a .cpp file or something, though I doubt it. All you'd really need to do is put the file into a .pbo and get the music from there using the description.ext. Kind of like this:

class CfgMusic
{
    tracks[]={Chant};
   class chant
   {
      name = "Chant";
      sound[] = {MyMusicAddon.pbo\Chant.ogg, db+10, 1.0};
   };
};

You might have to mess around to get it to work (don't know if there should be a "/" before "myMusicAddon" or if it should have ".pbo" as i've not tested).


Gameer

Gameer_77

  • Guest
Re:Good question to break your brains on.
« Reply #5 on: 29 Jul 2003, 14:44:21 »
If that doesn't work, check out TAL's site:

http://www.theavonlady.org/theofpfaq/amore/index.htm

It's basically the same idea...

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:Good question to break your brains on.
« Reply #6 on: 29 Jul 2003, 17:12:28 »
for this you basically do what u do in a single mission... but in your campaign folder....

make a folder in your campaign folder and create a description.ext that defines the order of all your missions and the lose conditions etc... then also in that description add the music lines and then in the campaign folder create a music folder.

this should work as in a mission... the thing is, the music won't work till u export the campaign folder to single missions and then place it in the campaign file again... then it shoudl work  ::)
Proud Member of the Volunteer Commando Battalion