is there a way...

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
Commander_Keller
Master Sergeant
Master Sergeant
Posts: 171
Joined: Sun Apr 16, 2006 1:16 pm

is there a way...

Post by Commander_Keller »

is there a way to change the game music?
i do not mean the ingame music. i am talking about the music that starts after the first loading phase.
is it changable? i´d like to have music like battlefront I had. i have the tracks but i don´t know what to change.
can anybody help?
thanks guys (and girl(s) )!!!
keller
RC-1290

RE: is there a way...

Post by RC-1290 »

yes, it's managed in the lua.
Commander_Keller
Master Sergeant
Master Sergeant
Posts: 171
Joined: Sun Apr 16, 2006 1:16 pm

RE: is there a way...

Post by Commander_Keller »

thanks for your answer.
i am afraid it is not changeable. i think the whole music stuff is in that global.lvl file found in C:\Program Files\LucasArts\Star Wars Battlefront II\GameData\data\_lvl_pc\sound.
please correct me if i am wrong.
thanks...
Qdin
Old School Staff
Posts: 2059
Joined: Wed Feb 23, 2005 9:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: is there a way...

Post by Qdin »

Well, what about loading the music you want then through the .lua? :? After all - now you know where it's placed :lol:

What about overwriting or adding music to the "sounds"-list? anyone has a hint? :)
RC-1290

Post by RC-1290 »

All the music seems to be manageble via the lua.

Code: Select all

OpenAudioStream("sound\\global.lvl",  "gcw_music")
and:

Code: Select all

SetAmbientMusic(ALL, 1.0, "all_tat_amb_start",  0,1)
    SetAmbientMusic(ALL, 0.8, "all_tat_amb_middle", 1,1)
    SetAmbientMusic(ALL, 0.2, "all_tat_amb_end",    2,1)
    SetAmbientMusic(IMP, 1.0, "imp_tat_amb_start",  0,1)
    SetAmbientMusic(IMP, 0.8, "imp_tat_amb_middle", 1,1)
    SetAmbientMusic(IMP, 0.2, "imp_tat_amb_end",    2,1)

    SetVictoryMusic(ALL, "all_tat_amb_victory")
    SetDefeatMusic (ALL, "all_tat_amb_defeat")
    SetVictoryMusic(IMP, "imp_tat_amb_victory")
    SetDefeatMusic (IMP, "imp_tat_amb_defeat")
Also in the objectives:

Code: Select all

 ScriptCB_PlayInGameMusic("rep_geo_amb_obj1_3_explore")

I hope this helps...

RC-1290'Dreadnought'
Commander_Keller
Master Sergeant
Master Sergeant
Posts: 171
Joined: Sun Apr 16, 2006 1:16 pm

RE: is there a way...

Post by Commander_Keller »

o.o... hrhrhr... thanks qdin and thanks rc-1290! i just recognized there is a sound folder in the modtools. silly me... ;)
thanks for the hints!
now i have to figure out which .snd file is which sound...
Post Reply