Home   Help Search Login Register  

Author Topic: Im having trouble adding music, help?  (Read 613 times)

0 Members and 1 Guest are viewing this topic.

Offline Chammy

  • Members
  • *
  • I'm a llama!
Im having trouble adding music, help?
« on: 29 Aug 2004, 12:42:11 »
I am doing just waht Navy Seals said to do but Im still doing somethingwrong.I keep getting  this messege, this set be]#]' error type object array or something like that.I tried different tutorials and they all seem to be different methods.Which one is the right one.There's nothing in any of them on how to activate the ogg file.Nothing on if it should be activated by trigger, script, init field or etc.They just give the how tos on what to put in the description file and where to put it but not on how to activate and play the music and then stop.And or play music at the end.

Offline C0LDSt33L

  • Members
  • *
  • Member of the SotM Team
Re:Im having trouble adding music, help?
« Reply #1 on: 29 Aug 2004, 13:44:58 »
Activating the music is fairly easy:

Go into the relevent trigger->effects->music and then scroll down to the one you added.

or

put playMusic "musicname" into an activation field.

you should have the music file as an ogg in the music sub-folder of a mission and have

class CfgMusic
{
  tracks[]=
  {
      captainscarlettheme  
  };
 
  class  captainscarlettheme  
  {
      name = "Captain Scarlet Theme";
      sound[] = {\music\captainscarlettheme.ogg, db+0, 1.0};
  };
};

in the description.ext. To get rid of the music use music->silence in the trigger effects menu or use 0 fademusic 0 in a activation field.
« Last Edit: 29 Aug 2004, 13:47:10 by C0LDSt33L »

Offline Chammy

  • Members
  • *
  • I'm a llama!
Re:Im having trouble adding music, help?
« Reply #2 on: 29 Aug 2004, 21:36:10 »
Thanks, I will try this a report back.I'm sure yall are pretty tired of hearing about how to add sounds and music, Im a bit late in the game here.

Offline Chammy

  • Members
  • *
  • I'm a llama!
Re:Im having trouble adding music, help?
« Reply #3 on: 31 Aug 2004, 10:35:36 »
Yesssss, I finally got, But, how do we make the volume louder?I did the db=0 and it isnt any louder than what I put the music volume up to.When i play MP maps with others out there, the music they put in there is twice as loud and yet,I would have my music turned down in the options.

Offline C0LDSt33L

  • Members
  • *
  • Member of the SotM Team
Re:Im having trouble adding music, help?
« Reply #4 on: 31 Aug 2004, 11:59:41 »
Have you tried using 0 fademusic 1 in the activation field? That should double the volume.
« Last Edit: 31 Aug 2004, 12:00:29 by C0LDSt33L »

Offline Chammy

  • Members
  • *
  • I'm a llama!
Re:Im having trouble adding music, help?
« Reply #5 on: 31 Aug 2004, 20:40:29 »
The activation field in the trigger?Cause that's what I'm using to trigger the song, Im not scrolling down the music file in the trigger option.

Offline C0LDSt33L

  • Members
  • *
  • Member of the SotM Team
Re:Im having trouble adding music, help?
« Reply #6 on: 31 Aug 2004, 20:57:53 »
Yeah. Just put a semmicolon (;) after the playmusic "musicname" thing in your activation field then 0 fademusic 1. You can, if you wish, put the command in a different trigger. The 0 is for the length of time in the change of volume while the 1 is for the volume to change to (0 - silent, 0.5 - normal 1 - loud).
« Last Edit: 31 Aug 2004, 20:59:33 by C0LDSt33L »

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:Im having trouble adding music, help?
« Reply #7 on: 02 Sep 2004, 03:11:27 »
I get a lot of trouble with the fademusic and fadesound commands. For music I usually tend to fade it when I'm making it. That way its exactly the right length.
For fading during a track, I stick with the fadesound and fademusic commands, tempremental as they are.
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."