Hard Light Productions Forums
Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Marcov on June 12, 2010, 04:59:02 am
-
Is there any way to change the music of the game (e.g. from Genesis to Revealation, Exodus to Numbers, etc.) while playing the game? Just wondering.
-
You mean without sexps? I don't believe so. However if you're really keen mate, you could sexp a keypress to change the soundtrack whilst playing a particular mission.
-
Under player control? Yes. You could even build a menu.
Without player control? Yes. Very easily.
-
Ah, I interpreted it as him wanting to change the music in the middle of a dogfight, rather than from a mission building perspective.
-
Ah, I interpreted it as him wanting to change the music in the middle of a dogfight, rather than from a mission building perspective.
That.
-
Right, well if you need some help doing it via FRED, don't hesitate to shoot us a PM or ask on the thread.
-
I don't believe it's difficult at all.
-
Right, well if you need some help doing it via FRED, don't hesitate to shoot us a PM or ask on the thread.
Um, isn't that what he's asking doing? :p
I imagine everything you need is here. (http://hard-light.net/wiki/index.php/SCP_SEXPs#Music_and_Sound)
-
Shaddup. :P I meant help with doing the sexp-ing. He only asked if it was possible.
-
The soundtrack changing sexps with key-pressed should work fine.
-
Not exactly, I mean JUST HOW DO YOU CHANGE THE THEME OF THE MUSIC INGAME IN ANY RANDOM MISSION?
-
By entering the mission in FRED, creating an event, and setting it to trigger a music change. There's no way you can do it without sexps. Period.
-
I think you could put your own music into a /music folder and name it identically to the file used, and delete the real file from the .vp. (theoretically)
-
You don't need to delete the original file, your own will be used regardless on presence of the old one.
Due to a way FS music system works, that won't sound well though.
-
and delete the real file from the .vp.
FS modding rule #1 (they're all #1, every single rule is important): DO NOT TAMPER WITH .VP FILES, especially .vp files made by other people.
-
You don't need to delete the original file, your own will be used regardless on presence of the old one.
Due to a way FS music system works, that won't sound well though.
Ah, wasn't sure it would work for that or cause problems with duplicates.
FS modding rule #1 (they're all #1, every single rule is important): DO NOT TAMPER WITH .VP FILES, especially .vp files made by other people.
That was one of the first things I learned here, and I learned it well. I just thought I'd throw the other part in to make a bad idea even worse.
-
The problem won't be caused by duplicate files, but rather by the way FS plays music.
If sampling frequency and lenght of your track and the track you want to replace are not exactly identical, it'll cause problems with playing.
-
There's also a cheat that allows you to change music. Unless it's been removed.