Home   Help Search Login Register  

Author Topic: Custom Music  (Read 2044 times)

0 Members and 1 Guest are viewing this topic.

Offline strike277

  • Members
  • *
  • C.O. Of =Task Force Knight~Wing=
Custom Music
« on: 08 May 2007, 01:59:00 »
I played OFP and was able to get Custom music to work in it. I tried the same steps for ARMA but was unable to see my tracks in the trigger I laid down. I've searched the forums for an answer, but I have found very little information on it. Would some one please do a Setp by Setp on how to add custom music to player generated missions in ARMA. Thanks

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
Re: Custom Music
« Reply #1 on: 08 May 2007, 02:22:02 »
Post what you have done so far. The same meathod for OFP works for me in ArmA.

Offline strike277

  • Members
  • *
  • C.O. Of =Task Force Knight~Wing=
Re: Custom Music
« Reply #2 on: 08 May 2007, 03:16:31 »
Thanks for the Fast Replay Jason. Here is what I have so far. All music coverted to ogg, music folder in the mission folder and this is the format I have in the " description.ext"

class CfgMusic
{
     tracks[]=
     {
            jade, blink
     };
 
     class jade
     {
            name = "jade";
            sound[] = {\music\jade.ogg, db+0, 1.0};
     };
     class blink
     {
            name = "blink";
            sound[] = {\music\blink.ogg, db+0, 1.0};
     };
};




Offline LeeHunt

  • Former Staff
  • ****
  • John 21:25
Re: Custom Music
« Reply #3 on: 08 May 2007, 05:23:14 »
I've gotten custom music to work.  I take it you've used the

playmusic "mysong" 

as the code in the script? 

Below worked for me in my mission:

class CfgMusic
{
   // List of music tracks (.ogg files without the .ogg extension)
   tracks[] = {kashmir, adagio};

   // Class definition needed for each music track
   class kashmir
   {
      // Name to display in mission editor
      name = "kashmir";
      // Music path, volume, pitch
      sound[] = {\music\kashmir.ogg, db + 0, 1.0};
   };
   class adagio
   {
      // Name to display in mission editor
      name = "adagio";
      // Music path, volume, pitch
      sound[] = {\music\adagio.ogg, db + 100, 1.0};
   };
};


Offline strike277

  • Members
  • *
  • C.O. Of =Task Force Knight~Wing=
Re: Custom Music
« Reply #4 on: 09 May 2007, 01:08:16 »
No have'nt used that one. All I'm trying to do is get the tracks to show up on the Track list in the trigger. I'll give the code you posted a try though and let you know how it goes. Thanks.

Offline strike277

  • Members
  • *
  • C.O. Of =Task Force Knight~Wing=
Re: Custom Music
« Reply #5 on: 09 May 2007, 01:39:56 »
Well that did'nt work. What folder am I supposed to be putting all of this into? I'm assuming it's  Mydocs\name\Arma Other Profiles\name\Missons\Mission Name

Tried this

class CfgMusic
{
   // List of music tracks (.ogg files without the .ogg extension)
   tracks[] = {Mercy,Redrain};

   // Class definition needed for each music track
   class Mercy
   {
      // Name to display in mission editor
      name = "Mercy";
      // Music path, volume, pitch
      sound[] = {\music\Mercy.ogg, db + 0, 1.0};
   };
   class Redrain
   {
      // Name to display in mission editor
      name = "Mercy";
      // Music path, volume, pitch
      sound[] = {\music\Redrain.ogg, db + 100, 1.0};
   };
};

Offline Monkels

  • Members
  • *
Re: Custom Music
« Reply #6 on: 09 May 2007, 02:31:13 »
works for me. are you using someone elses description.ext?

edit
Quote
Mydocs\name\Arma Other Profiles\name\Missons\Mission Name
yes and make sure the music in is another folder called music

Mydocs\name\Arma Other Profiles\name\Missons\Mission Name\music\jade.ogg

etc
« Last Edit: 09 May 2007, 02:33:24 by Monkels »

Offline strike277

  • Members
  • *
  • C.O. Of =Task Force Knight~Wing=
Re: Custom Music
« Reply #7 on: 09 May 2007, 04:35:19 »
I've got to be doing something minor then. I have the music in The music folder in the mission folder and in the root mission folder I have the Decription.ext file, in the file I have the above listed code. I just don't get it.

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Custom Music
« Reply #8 on: 09 May 2007, 18:54:58 »
strike277, do not double post (replies 4 and 5).
If you have something to add and your post is the last (or the only) one in a thread edit your post instead of replying to yourself..
« Last Edit: 09 May 2007, 19:36:38 by h- »
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
Re: Custom Music
« Reply #9 on: 11 May 2007, 00:33:04 »
OK try attaching the mission, unless the sound file is to big.

Offline strike277

  • Members
  • *
  • C.O. Of =Task Force Knight~Wing=
Re: Custom Music
« Reply #10 on: 11 May 2007, 23:42:54 »
Okay !! I got it. I loaed up OFP and started fiddling around in there. First I just used the Description.ext to the the tracks to show up. What I did was DL an old tut from ofpec for Music and used the code from that. I think where my problem lied was here, []. Instead of inserting the tracks in the brackets the the whole thing should have looked like this.

class CfgMusic
{
     tracks[I though the Tracks went in here, but no]=
     {
     HERE>> Mercy, Redrain (<<This was my mistake)
     };
 
     class Mercy
     {
            name = "Mercy";
            sound[] = {\music\Mercy.ogg, db+0, 1.0};
     };
     class Redrain
     {
            name = "Redrain";
            sound[] = {\music\Redrain.ogg, db+0, 1.0};
     };
};

Thanks to every one that tried to help !!
« Last Edit: 12 May 2007, 00:56:32 by strike277 »