Author Topic: I've been working with FRED2 a lot lately, but I'm wondering how to...  (Read 2353 times)

0 Members and 1 Guest are viewing this topic.

I've been working with FRED2 a lot lately, but I'm wondering how to...
I'm wondering how to import custom music into my levels. I'm guessing it's a command into Events or something. If someone knows how, please explain and if it is indeed an event, please type out the exact commands to input. Thanks!

 

Offline Cyborg17

  • 29
  • Life? Don't talk to me about life....
Re: I've been working with FRED2 a lot lately, but I'm wondering how to...
Well, there's two ways to do it (that I know about).  Either you add entries to music.tbl or you use the play-sound-from-file sexp in the change\music section. 

It will be easier to use the sexp if you're looking for a quick way to get a song in.  But if the song you're using has different nuances, like a battle phase and a tension phase, music.tbl will give you more power in the end.

Edit: For the sexp to work, the music file needs to be in .ogg.  Also, the file needs to be in data\sounds.

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: I've been working with FRED2 a lot lately, but I'm wondering how to...
If you can figure out the music.tbl syntax, which isn't trivial. play-sound-from-file is by far the easier solution, and can be just as flexible with a bit of FRED work.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 
Re: I've been working with FRED2 a lot lately, but I'm wondering how to...
Well, there's two ways to do it (that I know about).  Either you add entries to music.tbl or you use the play-sound-from-file sexp in the change\music section. 

It will be easier to use the sexp if you're looking for a quick way to get a song in.  But if the song you're using has different nuances, like a battle phase and a tension phase, music.tbl will give you more power in the end.

Edit: For the sexp to work, the music file needs to be in .ogg.  Also, the file needs to be in data\sounds.

Alright cool, what's the sexp command then? Cause I literally just started working with FRED last night.

Also how would you get music.tbl to even open? Like, I'm guessing there's a command bar for you to type it in or something.

 

Offline Cyborg17

  • 29
  • Life? Don't talk to me about life....
Re: I've been working with FRED2 a lot lately, but I'm wondering how to...
... play-sound-from-file sexp in the change\music section. 

For the sexp to work, the music file needs to be in .ogg.  Also, the file needs to be in data\sounds.

sexps\change\music\play-sound-from-file

Edit: in the event editor.

Edit2: Table files can be opened with Notepad or notepad++.  They're basically .txt files with a different ending.

 
Re: I've been working with FRED2 a lot lately, but I'm wondering how to...
Took me like 20 minutes to figure it out, but I got it working. Thanks guys!

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: I've been working with FRED2 a lot lately, but I'm wondering how to...
Have you done the FRED walkthrough that is shipped with FS2 or Diaspora? It's really helpful in getting to know FRED.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 
Re: I've been working with FRED2 a lot lately, but I'm wondering how to...
Have you done the FRED walkthrough that is shipped with FS2 or Diaspora? It's really helpful in getting to know FRED.

I read quite a bit of the FRED walkthrough. It indeed helped a lot. It just didn't specify specific event commands, but otherwise worked well for me.

 

Offline Lorric

  • 212
Re: I've been working with FRED2 a lot lately, but I'm wondering how to...
While we're on this subject, what do people use to convert music to .ogg?

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: I've been working with FRED2 a lot lately, but I'm wondering how to...
Personally, I use audacity, or the oggenc2 commandline utility.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

  

Offline Lorric

  • 212
Re: I've been working with FRED2 a lot lately, but I'm wondering how to...
Alright, thanks. I'll have this thread bookmarked for when the time comes to experiment with custom music.