OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Headhunter on 01 Apr 2003, 16:43:48

Title: Music
Post by: Headhunter on 01 Apr 2003, 16:43:48
Is there anyone who knows how to add custom music (mp3) into a mission?????? And is there anyone who knows how to make a description.ext??? I can only make a description.ext.txt!
Title: Re:Music
Post by: dmakatra on 01 Apr 2003, 17:01:19
Check the sound&cutsceenes board.
Title: Re:Music
Post by: Black_Feather on 01 Apr 2003, 18:52:53
You can only put .oggs in game so you need to convert your .mp3, put this in your description.ext

class CfgMusic
{
     tracks[]={yourmusicname};


     class yourmusicname
     {
     name = "whatever";
     sound[] = {\music\yourmusicname.ogg, db+10, 1.0};
     };
};


For your other prob just single click your description.ext.txt and press F2 to rename it then delete the .txt bit.
Title: Re:Music
Post by: Headhunter on 01 Apr 2003, 20:33:01
i have already tryed that, and it's called description.ext. When i tryes to open it with a .ext file (witch i ofcourse can't) it remakes it to a txt insead of a text doc, and says description.ext.txt is not a valid win32 application. BUT it's only called description.ext!!! WHY???
Title: Re:Music
Post by: Headhunter on 01 Apr 2003, 20:59:52
Here are some scrns of what i mean.

1st scrn
Title: Re:Music
Post by: Headhunter on 01 Apr 2003, 21:01:13
2nd scrn

as u can see says it "description.ext.txt"
Title: Re:Music
Post by: Pimmelorus on 07 Apr 2003, 11:12:10
Just remove the .txt extension from the file and you are set to go. Simple isn't it?