Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Marcov on June 12, 2010, 04:59:02 am

Title: Any way to change type of music in game?
Post 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.
Title: Re: Any way to change type of music in game?
Post by: Dilmah G on June 12, 2010, 05:51:58 am
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.
Title: Re: Any way to change type of music in game?
Post by: General Battuta on June 12, 2010, 06:43:52 am
Under player control? Yes. You could even build a menu.

Without player control? Yes. Very easily.
Title: Re: Any way to change type of music in game?
Post by: Dilmah G on June 12, 2010, 06:49:43 am
Ah, I interpreted it as him wanting to change the music in the middle of a dogfight, rather than from a mission building perspective.
Title: Re: Any way to change type of music in game?
Post by: Marcov on June 12, 2010, 09:35:10 am
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.
Title: Re: Any way to change type of music in game?
Post by: Dilmah G on June 12, 2010, 09:59:32 am
Right, well if you need some help doing it via FRED, don't hesitate to shoot us a PM or ask on the thread.
Title: Re: Any way to change type of music in game?
Post by: Snail on June 12, 2010, 10:17:58 am
I don't believe it's difficult at all.
Title: Re: Any way to change type of music in game?
Post by: Sushi on June 12, 2010, 10:35:44 am
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)
Title: Re: Any way to change type of music in game?
Post by: Dilmah G on June 12, 2010, 10:37:54 am
Shaddup. :P I meant help with doing the sexp-ing. He only asked if it was possible.
Title: Re: Any way to change type of music in game?
Post by: Snail on June 12, 2010, 10:52:23 am
The soundtrack changing sexps with key-pressed should work fine.
Title: Re: Any way to change type of music in game?
Post by: Marcov on June 13, 2010, 04:01:38 am
Not exactly, I mean JUST HOW DO YOU CHANGE THE THEME OF THE MUSIC INGAME IN ANY RANDOM MISSION?
Title: Re: Any way to change type of music in game?
Post by: Dilmah G on June 13, 2010, 04:08:48 am
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.
Title: Re: Any way to change type of music in game?
Post by: Scourge of Ages on June 13, 2010, 04:10:37 am
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)
Title: Re: Any way to change type of music in game?
Post by: Dragon on June 13, 2010, 04:13:15 am
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.
Title: Re: Any way to change type of music in game?
Post by: Jeff Vader on June 13, 2010, 04:33:24 am
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.
Title: Re: Any way to change type of music in game?
Post by: Scourge of Ages on June 13, 2010, 04:42:37 am
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.
Title: Re: Any way to change type of music in game?
Post by: Dragon on June 13, 2010, 06:19:48 am
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.
Title: Re: Any way to change type of music in game?
Post by: ssmit132 on June 15, 2010, 06:43:00 pm
There's also a cheat that allows you to change music. Unless it's been removed.