Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: LoneKnight on December 07, 2010, 12:43:30 am

Title: Music Question
Post by: LoneKnight on December 07, 2010, 12:43:30 am
Hey guys, I'm experimenting with adding custom music and I am running into a few problems. Firstly, I read that creating a .vp that adds music and table changes in music.tbl will be overridden by the mv_music-mus.tbm that comes standard with FSO.

My question is, in order to add custom music, should I simply add my tracks to the mv_music-mus.tbm and export those (and the .ogg's of course) as a .vp, and not even bother making any changes to the music.tbl?

Thanks in advance!
Title: Re: Music Question
Post by: FUBAR-BDHR on December 07, 2010, 12:50:17 am
I would guess you would add additional music using your own -mus.tbm file in your mod directory.  That should then be the highest load priority overriding/adding to the mediavps and retail. 
Title: Re: Music Question
Post by: Droid803 on December 07, 2010, 02:40:39 pm
or, you could just name it mv_music-mus.tbm and overwrite the one from the mediavps :P
Title: Re: Music Question
Post by: General Battuta on December 07, 2010, 02:43:44 pm
You don't have to use tabled tracks, also; you can play music directly with play-sound-from-file. Can sometimes be more useful, sometimes less so.
Title: Re: Music Question
Post by: Droid803 on December 07, 2010, 02:50:53 pm
You're limited to one sound being played from file (unless you do the hack to make it a weapon sound or something, but they you can't stop the sound) though.
Title: Re: Music Question
Post by: General Battuta on December 07, 2010, 02:52:07 pm
You're limited to one sound being played from file (unless you do the hack to make it a weapon sound or something, but they you can't stop the sound) though.

Yeah but you rarely need to use play-sound-from-file for anything else. Vassago's Dirge used PSFF for everything.

Also you can play a second sound from file by using empty training messages.  :nervous: That was used a lot in Ken. It used to break the engine before a bug report got it fixed.
Title: Re: Music Question
Post by: Droid803 on December 07, 2010, 02:54:15 pm
Can you stop the second sound from file though? :P
Obviously, if you don't need that much control its absolutely fine.
I can't think of a scenario where I would want to be able to close two different sounds from files but hey, it could come up XD
Title: Re: Music Question
Post by: General Battuta on December 07, 2010, 02:58:35 pm
Can you stop the second sound from file though? :P

Yep, very easily.

Quote
Obviously, if you don't need that much control its absolutely fine.
I can't think of a scenario where I would want to be able to close two different sounds from files but hey, it could come up XD

Not an issue because it can be done.
Title: Re: Music Question
Post by: Droid803 on December 07, 2010, 03:36:02 pm
 Oh right yes I get how now.