Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Saint Jimmy on May 25, 2008, 05:29:39 pm

Title: Music
Post by: Saint Jimmy on May 25, 2008, 05:29:39 pm
Hi i'm sure some of you must hate me now because of these questions but how do i get my custom music into a level, i have the sexp and such but i dont know where i type the file name, and is it meant to be in a specific file?
Title: Re: Music
Post by: Snail on May 25, 2008, 05:59:05 pm
Hi i'm sure some of you must hate me now because of these questions
I was far more annoying, I assure you.

i have the sexp and such but i dont know where i type the file name, and is it meant to be in a specific file?
Do you want it to happen during the level, or do you want the custom music to be there at the beginning of the mission (as normal)?

Also, do you have the triggered music files (like the ones that trigger when new enemy ships jump in or when goals are completed) or is it just 1 file? If you have the entire triggered music thing, you can put it into the music.tbl (http://www.hard-light.net/wiki/index.php/Music.tbl) and then choose it from the Mission Specifications editor (Shift+N). If you want the music to change during the mission (and have all the files) use the change-soundtrack SEXP, and enter the name of the music which you wrote in the music.tbl (ie. if you want the music to change to Revelation, select (or type in) 7: Revelation.

If you do not have the triggered music files, you can make them go into the game using the play-sound-from-file SEXP. Simply enter the name of the file (make sure there are no typos, and do not add the file extension). So if you want to play a briefing tune during the mission, enter FS2_Brief_01 in the required field.
Title: Re: Music
Post by: Saint Jimmy on May 25, 2008, 06:02:44 pm
ok i just want the music to play from the start but im unsure about where to put the name of the file in the sexp
Title: Re: Music
Post by: Snail on May 25, 2008, 06:17:13 pm
Which Sexp are you using?
Title: Re: Music
Post by: Colonol Dekker on May 25, 2008, 06:25:01 pm
ok i just want the music to play from the start but im unsure about where to put the name of the file in the sexp

More importantly, where have you put the sound file in the FS2 folder hierarchy?
Title: Re: Music
Post by: Saint Jimmy on May 25, 2008, 06:28:53 pm
it is this:

---music
    |
    op when
           |
           |-----true
           |-----play-sound from file
                           |
                           |-----[1] <any string>

sound file in the freespace 2 hierachy?
Title: Re: Music
Post by: Mongoose on May 25, 2008, 07:52:05 pm
In other words, where is the sound file located on your hard drive?  Is it in the main FS2 folder, or one of its subfolders?
Title: Re: Music
Post by: karajorma on May 26, 2008, 01:40:50 am
Select <any string>, type in the name of the file (it must be less than 28 or 32 characters depending on how things work, stay less than 28 to be safe.)
Title: Re: Music
Post by: Saint Jimmy on May 26, 2008, 05:28:32 am
thanks ill try that now...
Title: Re: Music
Post by: Saint Jimmy on May 26, 2008, 05:45:53 am
it didn't work, i changed the whole <string> part to: C:\Users\James\Desktop\M1

but nothing happened in game...
Title: Re: Music
Post by: karajorma on May 26, 2008, 08:16:01 am
1st, just the filename not the entire path. Whoever downloads the mission isn't going to have the same path.
2nd put the file in Freespace2\Data\sound
Title: Re: Music
Post by: Saint Jimmy on May 26, 2008, 10:36:31 am
so i put it in freespace2\data\sound

and instaead of <string> it should say m1?
Title: Re: Music
Post by: karajorma on May 26, 2008, 10:58:38 am
Yep
Title: Re: Music
Post by: Saint Jimmy on May 26, 2008, 12:21:30 pm
ok it's working now, thankyou so much
Title: Re: Music
Post by: Snail on May 26, 2008, 12:56:07 pm
Karajorma saves the day. Again.
Title: Re: Music
Post by: Mobius on May 26, 2008, 05:14:05 pm
The problem's already solved. I post because I want to tell you that you're not going to be hated for your questions. As you can see, there are people willing to help here. :)
Title: Re: Music
Post by: karajorma on May 27, 2008, 05:22:51 am
If someone asks a question about beams, gets pointed at ZB's beam FAQ and then immediately asks another similar question answered in the FAQ then that is annoying. As far as I'm concerned I'm not here to spoon feed newbies.

 However asking questions where the answer isn't obvious and where there isn't an obvious place to get the answer is not spoon feeding. Asking a question when you've spent even a little effort trying to figure out the answer for yourself is not spoon feeding.

Newbies are often worried cause other forums do berate newbies for asking simple questions due to the frequency they are asked rather than the difficulty they present to the newbie. I don't see the point in that. We all had to start somewhere and you never know who the next Blaise Russel might be. :)
Title: Re: Music
Post by: Saint Jimmy on May 27, 2008, 06:06:47 am
well thankyou for good newbie attitude, every where else on the internet seems to attempt murder on noobs, ill try my best to find answers before asking here but i have a feeling i may be back very soon   :)
Title: Re: Music
Post by: Snail on May 27, 2008, 02:33:22 pm
Newbies are often worried cause other forums do berate newbies for asking simple questions due to the frequency they are asked rather than the difficulty they present to the newbie. I don't see the point in that. We all had to start somewhere and you never know who the next Blaise Russel might be. :)
Recently some crap did happen that made me think HLP was turning into another "STFU n00b" community (lol woutersmits).
Title: Re: Music
Post by: Colonol Dekker on May 27, 2008, 10:14:10 pm
That why i sticuk with HLP over other specialist forums that also enjoy a breath of RL convo. The tolerence, we need genetic diversity on here or it would stagnate :D

Too philosophical :nervous: :confused:
Title: Re: Music
Post by: Mobius on May 28, 2008, 11:22:51 am
well thankyou for good newbie attitude, every where else on the internet seems to attempt murder on noobs, ill try my best to find answers before asking here but i have a feeling i may be back very soon   :)

The majority of the forums you refer to are certainly structured in a different way.

If you'll be back with FRED related question I'll be one of the first members to reply :nod: ;)
Title: Re: Music
Post by: birdbeast on May 31, 2008, 01:49:29 pm
Quick question -- I'm also planning on adding custom music to my campaign.  Is there a FAQ/HOWTO on the general topic of Music And FreeSpace 2 Open?

If not, my quick question is: What formats of music are supported by FS2 Open?  E.g. ogg/mp3/wav(what codecs?)/midi

What format is the music in for the FreeSpace 2 campaign?  MIDI, or some compressed sampled format?

Thanks
-bb
Title: Re: Music
Post by: blowfish on May 31, 2008, 02:03:18 pm
FS2_Open supports OGG and WAV.  The standard music files are WAV, since retail only supported that, but the newer versions you will find in MV_Music are OGG.