Page 1 of 1

Music Question

Posted: Sat Apr 02, 2011 8:53 pm
by modmaster13
Hey GT. I have a question. I would like to have mixed music for my map, but I don't wanna create a new sound LVL. Is it possible if I can do this:
Hidden/Spoiler:
ReadDataFile("sound\\yav.lvl;yav1gcw")
ReadDataFile("sound\\hot.lvl;hot1gcw")
and set it to:
Hidden/Spoiler:
SetAmbientMusic(ALL, 1.0, "all_hot_amb_start", 0,1)
SetAmbientMusic(ALL, 0.8, "all_yav_amb_middle", 1,1)
SetAmbientMusic(ALL, 0.2, "all_hot_amb_end", 2,1)
SetAmbientMusic(IMP, 1.0, "imp_yav_amb_start", 0,1)
SetAmbientMusic(IMP, 0.8, "imp_hot_amb_middle", 1,1)
SetAmbientMusic(IMP, 0.2, "imp_yav_amb_end", 2,1)

SetVictoryMusic(ALL, "all_hot_amb_victory")
SetDefeatMusic (ALL, "all_yav_amb_defeat")
SetVictoryMusic(IMP, "imp_hot_amb_victory")
SetDefeatMusic (IMP, "imp_yav_amb_defeat")

Re: Music Question

Posted: Sat Apr 02, 2011 9:27 pm
by AQT
Why didn't you try it out first before asking? You can do the second section without having to do the first section. Loading the two sound .lvl files like that would break most sounds. You don't even need to do that for music since all GCW music is already loaded with the following line:

Code: Select all

    OpenAudioStream("sound\\global.lvl",  "gcw_music")
However, it may not work in some cases. This would be where you will have to create a new sound .lvl. Following this tutorial, simply copy over the .stm and configuration files for either Hoth or Yavin music, and reference them in the appropriate REQ files.