Home   Help Search Login Register  

Author Topic: Need help with music  (Read 932 times)

0 Members and 1 Guest are viewing this topic.

chapelow

  • Guest
Need help with music
« on: 31 May 2004, 21:00:58 »
Howdy,

I have become stuck in mud with something and I thought you guys could help me out.
Im making a mission with the Band of Brothers music on, I have saved the Band of Brothers music as an OGG file and stuck it into the mission file. So far so good, until i came stuck. I don't know what to put into the trigger for the music to play, this may sound noobish but I just don't know.

So could any body help me please?

Offline rhysduk

  • Former Staff
  • ****
Re:Need help with music
« Reply #1 on: 31 May 2004, 21:23:55 »
You put this:-

playMusic "musicfilename"

Where musicfilename is the name of the music file u want to play.

EG:-

U defined a music file called "chapelow.ogg" in the EXT file. The syntax would now be playMusic "chapelow" ..

Hope that helps.

Rhys

Dont forget to put hte music file in the Music FOlder inside the mission folder!!


« Last Edit: 31 May 2004, 21:24:27 by rhysduk »
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

Dubieman

  • Guest
Re:Need help with music
« Reply #2 on: 01 Jun 2004, 03:23:45 »
Yeah I have the same problem but I'm using a .ext.

My .ext by Chris's ofp script editor:

// ***********************************************************************
// **** Description file for Operation Flashpoint
// **** Generated by Chris's OFP Script Editor
// **** Create Description Wizard
// ***********************************************************************

class CfgMusic
{
   // List of music tracks (.ogg files without the .ogg extension)
   tracks[] = {Linkin Park - Track03};

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

I made a folder in my mission foler named Music.
I thought that I heard the music would appear in music on the trigger options like seventh-darken.

So your saying I could put playmusic "Linkin Park - Track03"

And that would work?
I'll try it.

(Sorry for hijacking your thread chapelow... :P)

chapelow

  • Guest
Re:Need help with music
« Reply #3 on: 01 Jun 2004, 10:42:25 »
Ok im stuck again, it won't play.
I put the ogg file into a sound folder and stuck that folder into my mission folder. Then I went on to the mission, and put in the trigger (in the In Activation place) playMusic "bobtheme". And a message came up saying bobtheme not found.

Am I doing something wrong?
« Last Edit: 01 Jun 2004, 11:05:04 by chapelow »

Gooner861

  • Guest
Re:Need help with music
« Reply #4 on: 01 Jun 2004, 11:28:17 »
Well this is my description.ext file, works fine for me. Make a folder in the same mission folder and call it "Music", put your music in their and write out the description.ext. Copy and paste mine if you want but obviously change the names of the songs etc. I had many problems with this at first but once you get it to work it would of been worth it.


class CfgMusic
{
   tracks[]={mood};

   class song25
   {
      name = "(Song25) Rock";
      sound[] = {\music\song25.ogg, db+0, 1.0};
   };
   class song3
   {
      name = "(Song3) Name of song";
      sound[] = {\music\song3.ogg, db+0, 1.0};
   };
   class song5
   {
      name = "(Song5) Name of song";
      sound[] = {\music\song5.ogg, db+10, 1.0};
   };

};

StonedSoldier

  • Guest
Re:Need help with music
« Reply #5 on: 01 Jun 2004, 11:30:41 »
depending on filesizes i tend to use .wav rather than .ogg

Offline sim

  • Members
  • *
  • Hot! Real hot! Damn Hot!
Re:Need help with music
« Reply #6 on: 01 Jun 2004, 11:33:01 »
hey

chapelow, you said you saved your music as .ogg, its all very well saving it as .ogg but you need to convert it from whatever to .ogg.

There is a file to do this, but cannot remember what it's called, i'll have a look.     ;D

sim
The Unsung Campaign Team Leader

Offline rhysduk

  • Former Staff
  • ****
Re:Need help with music
« Reply #7 on: 01 Jun 2004, 13:07:33 »
Chapelow, you have defined the music file in the description.ext file havent you? If not then it defenitely wont work, whatever you do. And the music file has got to go in the MUSIC folder inside your mission folder, like this.. "Codemasters/OFP/User/yourgamename/Mission/missionname/Sound/musicvfilename

@Sim: i have had no problems saving it as OGG using GOLDWAVE (remeber there are certain properties of the OGG file that nee to be there for it to play in OFP) you dont necesarily have to convert it using OGGDROP. Not wiht me anyway.

@GuiltyRoachKilla: That description file you haave is wrong, in the wizard that creates the file for you, have a look where you pick the music file to use.. its says "NO SPACES", IE the file cannnot have any space in its name.. Thats your problem ;)

Overall, using CHOFPSE, is very good way of making the EXT files.. its work sall the time for me !! Thats the way of learning :)

Rhys
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

Dubieman

  • Guest
Re:Need help with music
« Reply #8 on: 02 Jun 2004, 20:13:38 »
So I just take out those spaces inbetween the linkinpark-track03 and it should work?

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Need help with music
« Reply #9 on: 02 Jun 2004, 20:18:49 »
I'd remove the '-' also, use an underscore instead, so you would end up with:

Linkin_Park_Track03


Also remember to change the class name.

Like so:  class Linkin_Park_Track03

Planck
« Last Edit: 02 Jun 2004, 22:37:53 by Planck »
I know a little about a lot, and a lot about a little.

Offline sim

  • Members
  • *
  • Hot! Real hot! Damn Hot!
Re:Need help with music
« Reply #10 on: 02 Jun 2004, 22:28:11 »
hey

@rhysduk: I use a program called Audacity to convert to .OGG and it works fine when I run it in OFP.
I once tried saving as .OGG but it did not work, it dosnt save it correctly, it just adds a new filename extension, well thats what I found.    :-\

sim
The Unsung Campaign Team Leader

Dubieman

  • Guest
Re:Need help with music
« Reply #11 on: 03 Jun 2004, 01:00:47 »
Sim a program that works very well is dB poweramp and the codec that goes along with it. It works really good and easily and the converted songs end up in a converted music file in .ogg or whatever you want.

Works for me. :P

Offline sim

  • Members
  • *
  • Hot! Real hot! Damn Hot!
Re:Need help with music
« Reply #12 on: 03 Jun 2004, 15:58:21 »
@GuiltyRoachKilla: I prefer to use Audacity, it works fine  :P ;D

sim
The Unsung Campaign Team Leader