Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: vonhertell999 on April 10, 2011, 01:25:10 pm

Title: adding external music in missions
Post by: vonhertell999 on April 10, 2011, 01:25:10 pm
Hello again, i have a question about adding external music into fred to put into missions, like mp3s or mp4s. is this possible?
Title: Re: adding external music in missions
Post by: Jeff Vader on April 10, 2011, 01:31:02 pm
Dunno about the actual FREDding aspect, but the tracks have to be in a format supported by FSO. Basically wav (with some specifics, I think), Ogg Vorbis or FLAC.
Title: Re: adding external music in missions
Post by: General Battuta on April 10, 2011, 01:32:06 pm
Yes, place the music files in [nameofyourmod]/data/music in .ogg format, then play them in mission with the play-sound-from-file SEXP.
Title: Re: adding external music in missions
Post by: JCDNWarrior on April 10, 2011, 01:47:02 pm
Here's a simple image to get a better idea.

http://img21.imageshack.us/i/simplesample.png/

Could answer several other questions.

I personally convert .mp3 files to .ogg with Audacity, which is also free to download.

Good luck!
Title: Re: adding external music in missions
Post by: vonhertell999 on April 10, 2011, 02:44:42 pm
im having trouble with audacity, how would i convert the MP3 to OGG?
Title: Re: adding external music in missions
Post by: Jeff Vader on April 10, 2011, 02:46:26 pm
- Open .mp3 with Audacity
- export as .ogg
- ????
- PROFIT
Title: Re: adding external music in missions
Post by: vonhertell999 on April 10, 2011, 02:49:46 pm
thanksyou. im trying to put ace combat 6 music into a mission, i think it would work quite well.
Title: Re: adding external music in missions
Post by: vonhertell999 on April 10, 2011, 03:10:22 pm
thing is, im not making a mod, im using regular FS2, i just wanted to add in the music, do i have a mod with it??
Title: Re: adding external music in missions
Post by: Scotty on April 10, 2011, 03:12:04 pm
It'd be as simple as just having <yourmod> folder name and selecting it in the launcher, and that's it.  You can just not use the MVPs if you want, or if your computer can't handle it or something.

You really shouldn't mess with retail files. 
Title: Re: adding external music in missions
Post by: Jeff Vader on April 10, 2011, 03:12:47 pm
You are modifying something -> you are modding.

It is recommended that you create your very own mod folder, then a \data\ directory under it and throw your modded files there. That way anything you change or add is kept in your mod folder and if things go really bad, you can just throw that folder away.
Title: Re: adding external music in missions
Post by: vonhertell999 on April 10, 2011, 03:19:02 pm
oh ok. well that makes sense.  :nervous:
Title: Re: adding external music in missions
Post by: vonhertell999 on April 10, 2011, 03:22:33 pm
followed exactly what was seen in the picture, created my mod folder, but how would i add the string, my file name is LIBERATION OF GRACEMERIA.ogg
Title: Re: adding external music in missions
Post by: Scotty on April 10, 2011, 03:25:20 pm
On the event, edit the string to say "LIBERATION OF GRACEMERIA" manually.
Title: Re: adding external music in missions
Post by: vonhertell999 on April 10, 2011, 03:27:58 pm
 :eek2: something actually worked out perfectly for me for once! thankyou so much for the help you guys!
Title: Re: adding external music in missions
Post by: JCDNWarrior on April 10, 2011, 03:30:56 pm
As long as you keep trying, and are open to learn, you can get much better at modding, in a relatively short amount of time. Glad we could assist, by the way!