Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: dragonsniper on July 21, 2009, 10:21:07 am

Title: Music Problem
Post by: dragonsniper on July 21, 2009, 10:21:07 am
So, I'm working on this mission currently, and I have two hostile Vasudan wings jumping in. However, when they jump in, the music doesn't immediately change to the battle music. Instead, it turns to the happy victory music, then changes after about 10 seconds to the battle music. I've had this problem before, but have never known how to fix it. Any help would be nice.
Title: Re: Music Problem
Post by: Rodo on July 21, 2009, 11:05:44 am
that would be because you are using a music pack, If you want to control the time the music plays you should use play-music-from-file sexp (not sure if there are new and better sexps on the 3.6.10 release yet).
Or you could try modifying the switch time between sound in the mvp's table (not recommended, it will brake retail music performance unless used in a separate mod)
Title: Re: Music Problem
Post by: dragonsniper on July 21, 2009, 11:28:08 am
I don't really want it to run from a file though. If I do, then I'd have to package the file if i were to release the mission... I might just remove the ships from FRED. I've done that before and it's helped a bit. If anyone has other idea's though...
Title: Re: Music Problem
Post by: ReeNoiP on July 21, 2009, 11:31:20 am
Which soundtrack are you using? With retail music, incoming hostile ships should activate the hostile ship arrival music clip.

Have you defined objectives in your mission? The victory fanfare plays when objectives are complete, and if you have not defined any, it can start playing right away. If you are using a soundtrack where the success music plays for 10 seconds, before the repeat mark (defined in the music table), you have to wait for it to finish before the battle music can play.

If you have defined an objective, chances are it becomes true as the wing arrives, triggering the success music. If this is the case check the "Don't play completion sound" flag.
Title: Re: Music Problem
Post by: dragonsniper on July 21, 2009, 11:39:59 am
Have you defined objectives in your mission? The victory fanfare plays when objectives are complete, and if you have not defined any, it can start playing right away.
That may be it. I'll check real quick.
Title: Re: Music Problem
Post by: dragonsniper on July 21, 2009, 11:46:41 am
Adding a goal seems to have done it. Thanks for the help. :)