OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Dubieman on 07 Jul 2004, 23:36:01

Title: music is really messy...
Post by: Dubieman on 07 Jul 2004, 23:36:01
Alrighty, now I made my mission nocturnal. In the mission folder I made another folder and named it "Music". Then I have my song called  "prison" and its in .ogg. I tried CHOFPSE's .ext maker to implement my music and made a .ext document called music.ext.

In this CHOFPSE made this.

// ***********************************************************************
// **** 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[] = { - Track01};

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


I'm wonderin why it is not working. I cannot find it in effects/music in triggers or waypoints and the playmusic command will not work. Any help for this music noob would be appreciated. ;)

Title: Re:music is really messy...
Post by: ponq on 07 Jul 2004, 23:54:19
Code: [Select]
class CfgMusic
{
   // List of music tracks (.ogg files without the .ogg extension)
   tracks[] = {Track01};

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

I removed all the " - " before the track01.ogg.
Now rename your music file to track01.ogg. I think the " - " is causing trouble, but I could very well wrong here.

Btw if your song is called prison.ogg code should be this:
Code: [Select]
class CfgMusic
{
   // List of music tracks (.ogg files without the .ogg extension)
   tracks[] = {Track01};

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


Btw, if you modify the description.ext, you need to *reload* the mission in the editor before you'll see the changes.
Title: Re:music is really messy...
Post by: Dubieman on 08 Jul 2004, 04:01:26
Whoops, wait a minute I changed all the names to prison. I musn't have saved it. Gawd.... :-[

I'll see if it works... ::)
Title: Re:music is really messy...
Post by: Dubieman on 08 Jul 2004, 04:38:17
Alright I can't get the music to run now. I can see the little name now in the effects box and I've changed everything to the name prison to keep everything straight.

All track01's are now prison's so I dunno what it is now. Could it be my music folder? Or could my prison.ogg be fecked up? :P
Title: Re:music is really messy...
Post by: ponq on 08 Jul 2004, 10:07:49
is your .ogg in the required format? (check sticky tute).