OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: StarshinaTac on 20 Aug 2006, 11:21:44

Title: Adding songs.
Post by: StarshinaTac on 20 Aug 2006, 11:21:44
I'm new to the whole OFP editing thing and was wondering how you add a song into the game.  If anyone could help me out, I'd really appreciate it.
Title: Re: Adding songs.
Post by: macguba on 20 Aug 2006, 13:03:32
Welcome to the forum!

There is a music and sound tutorial in the Editors Depot (link at the top of the page or from the ofpec homepage) although I don't know if its any good.   The summary is that the sound must be .ogg format and defined in your description.ext file.   You can then call it with a playmusic or playsound command, depending upon which subfolder in the mission folder you have used.
Title: Re: Adding songs.
Post by: JasonO on 20 Aug 2006, 13:41:44
If you are playing this missions online, try and compress the song and keep the lenth low as best as you can. People that play it online will have to download the mission, with the song in it. This can be annoying so watch the file size ;)
Title: Re: Adding songs.
Post by: myke13021 on 20 Aug 2006, 14:48:35
First, follow macguba's advice for the tutorial.

some tools that might help:

Audacity (Audio Editor) for converting your songs >Homepage (http://audacity.sourceforge.net/)
Chris's OFP Script Editor for scripting help and some very helpful Wizards (i.e. a description.ext Wizard for easy add music). get it here (http://www.ofpec.com/ed_depot/tools.htm)