Thread: Changing Music
View Single Post
Old 09-29-2005, 06:39 PM   #1
Fred Tetra
Kotor Tool Guy
 
Fred Tetra's Avatar
 
Join Date: Jan 2004
Location: What a creepy photo, eh? Had to use it!
Posts: 947
Hot Topic Starter LFN Staff Member Helpful! Notable contributor 
Changing Music

Setting music tracks for a new area

(original thread for discussion: http://www.lucasforums.com/showthread.php?t=153072 )

The values you need to set are in the module's .GIT file's AreaProperties structure

The AmbientSnd fields (day and night) are indices into ambientsnd.2da
Here we see that the sound specified for both is "204tel Ambient Bed".
Code:
     AmbientSndDay         Field- Type: int           Value: 17
     AmbientSndNight       Field- Type: int           Value: 17
     AmbientSndDayVol      Field- Type: int           Value: 127
     AmbientSndNitVol      Field- Type: int           Value: 127
The EnvAudio field is an index into soundeax.2da. It sets the overall module acoustic model.
Here the default model is specified.
Code:
    EnvAudio              Field- Type: int           Value: 0
The music fields are indices into ambientmusic.2da.
Here we see that "Citadel Station" is specified for day and night music, and "Citadel Station Battle" for the battle music.
Code:
     MusicBattle           Field- Type: int           Value: 41
     MusicDay              Field- Type: int           Value: 15
     MusicNight            Field- Type: int           Value: 15


Kotor Tool Developer
http://kotortool.starwarsknights.com/

"You want to help everyone who asks for aid, answer all of their questions, write that crucial bit of code for which they're searching, and be the hero who saves the day (and their job), but there comes a point when you realize that sleep is sometimes necessary."
—Stephen Toub

Visit the Kotor Tool Forum

Last edited by Darth333; 09-30-2005 at 11:49 AM.
Fred Tetra is offline   you may: quote & reply,