Music Question

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
modmaster13
General
General
Posts: 777
Joined: Wed Aug 18, 2010 4:23 pm
Games I'm Playing :: COD SWBF
xbox live or psn: KrypticcElementt
Location: Twitter @_KrypticElement
Contact:

Music Question

Post 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")
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Music Question

Post 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.
Post Reply