Jump to content

Recommended Posts

How to add music?

I have a .ogg file ready but the problem is that the text

I typed in the .ext file was good the error:

"Music sound1 not found"

I have a file called sound1.ogg in a folder called music

anyone that can help?

Share this post


Link to post
Share on other sites

Hmmm, it would be nice to see that text you typed in the .ext file, but this one works at least for me - Try this:

class CfgMusic

{

tracks[]=

{

sound1

};

class sound1

{

name = "sound1";

sound[] = {\music\sound1.ogg, db+45, 1.0};

};

}

Then make a script to get it played: PlayMusic "sound1"

Now it should work with no problems I think...

Oh, and make sure the description.ext is written correctly wink.gif

The second problem that I had once, was that you have to save the mission before the game would use that .ext file

Hope this helps.

Share this post


Link to post
Share on other sites

Is a ext file automatically created when you save your mission or do you have to create on to edd sound/music?

I tried to save a txt file as a ext file but it comes out as filename.ext.txt

I think you just rename it and remove the .txt

Share this post


Link to post
Share on other sites

Ah, I'm glad I stumbled upon this one. I have a nagging problem with this adding music stuff. I want to have my music play in my edited mission. I already have my .ogg file, and I keep reading somewhere that you have to have subdirectories, Music subdirectories (are these also called 'folders'? - I'm a newbie, okei), etc etc etc. I also have my .ext file with all the required elements correctly inputted. Now what? I want to make my track appear in the Waypoint/Trigger 'Effects' section soooooo badly!

Share this post


Link to post
Share on other sites

@Tales_From_...

The .ext file is not created automatically. You'll have to create that .ext file by creating a notepad file and when saving select All Files (*.*) and then write description.ext

@SpetsnazWarriorX

If you had written the text in .ext right and put the music file in the "music" named folder, it should be seen in the effects menu...

Share this post


Link to post
Share on other sites

ok about how to add the EXT extension.

King, you were kind to provide this script:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">class CfgMusic

{

tracks[]=

{

sound1

};

class sound1

{

name = "sound1";

sound[] = {\music\sound1.ogg, db+45, 1.0};

};

}<span id='postcolor'>

I never had scripting lessons since the last time I took a class, we were using green screens.

I can read what you are doing. A few questions:

Can this script be used as a template? I think I can insert my sounds in place of sound1.

If I had sound1 and sound2, what would the syntax look like? I will take a stab at it. Would you copy and paste it into 2 separate commands or would you make it one command. I have it shown here as 2 separate commands.

class CfgMusic

{

tracks[]=

{

sound1

};

class sound1

{

name = "sound1";

sound[] = {\music\sound1.ogg, db+45, 1.0};

};

}

{

tracks[]=

{

sound2

};

class sound2

{

name = "sound2";

sound[] = {\music\sound1.ogg, db+45, 1.0};

};

}

Share this post


Link to post
Share on other sites

Nope, it's not in there. I've put my .ogg files in my DTA Music section. So basically, I've done something wrong here - Operation Flashpoint\Users\Username\missions\'Mission Name'\ - then I have my mission.sqm file in there - now what? Where do put my description.ext file and my .ogg file? My ext looks like exactly this:

class CfgMusic

{

tracks[]=

{

topgun1, topgun2

};

class topgun

{

name = "topgun1";

sound[] = {\Music\topgun1.ogg, db+50, 1.0};

};

class topgun2

{

name = "topgun2";

sound[] = {\Music\topgun2.ogg, db+50, 1.0};

};

};

Have I done something wrong? And where do put them all in? Where do I create a new subdirectory? Any additional help is much appreciated smile.gif

Share this post


Link to post
Share on other sites

The .ext file goes to the frist folder (where the mission.sqs is too) and the music file goes to a subfolder (created on the folder where the mission.sqs is) named 'music'.

And in that .ext text replace the db+50 with +45 because it's the maximum volume. That would maybe cause the problem, I don't know...

The files must be named in the same way as in the .ext text so topgun1.ogg and topgun2.ogg.

Share this post


Link to post
Share on other sites

I think I'm gonna throw my OFP CD out the window, cause they're still not there! I have my .ogg files in a folder 'Music' after the folder with mission.sqm and description.ext. It still has the same old songs in the Mission Editor! I try to look past 'Seventh - Lifeless' and nothing's there. Ach! Will BIS ever make things easier? They really love makin' us newbies mad...

Share this post


Link to post
Share on other sites

Wait. Don't throw that cd anywhere yet. smile.gif

Check out this page: http://www.ofpeditingcenter.com/tutorial.shtml#sound

Head to the Bloodmixer's sound tutorial and there download the example mission. There's shown where the .ext file and .ogg files should be put and how to use them. Then you can maybe find out the problem. Good luck! smile.gif

Share this post


Link to post
Share on other sites

i've the answer of my question:

i mistyped music i typed : muzic

biggrin.gif

anyway king nothing thx

Share this post


Link to post
Share on other sites

Whooohooo, that Example Mission worked like a charm - I just used it as a template, and put my own .ogg files into it. Great stuff - thanx a bunch, King Nothing!! smile.gifsmile.gif

Share this post


Link to post
Share on other sites

does gunslinger add the ini box to the editor?

On the main screen, top left, there is my name. When I click on it, I can select my name or player1 (this is where you can pick your face). When I select player1 and back out to the main page and click mission editor, I lose all my editing functions (ini box gone). It is very strange.

Share this post


Link to post
Share on other sites

Errr, have you checked the topic? This is for music problems...

But anyway check that you have selected the advanced editing in the editor, was it in the right upper corner of the screen, I don't remember.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×