lfnetwork.com mark read register faq members calendar

Thread: Changing Area Music
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 09-29-2005, 05:22 PM   #1
Darth InSidious
A handful of dust.
 
Darth InSidious's Avatar
 
Join Date: Feb 2005
Location: The Eleven-Day Empire
Posts: 5,763
Current Game: KotOR II
Changing Area Music

Suppose you are creating a new area and want to change the default music for this new area, how would you go about it?

Thanks!



Works-In-Progress
~
Mods Released
~
Quid existis in desertum videre?
Darth InSidious is offline   you may: quote & reply,
Old 09-29-2005, 05:39 PM   #2
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 
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
Fred Tetra is offline   you may: quote & reply,
Old 09-30-2005, 03:10 AM   #3
Darth InSidious
A handful of dust.
 
Darth InSidious's Avatar
 
Join Date: Feb 2005
Location: The Eleven-Day Empire
Posts: 5,763
Current Game: KotOR II
Thanks!



Works-In-Progress
~
Mods Released
~
Quid existis in desertum videre?
Darth InSidious is offline   you may: quote & reply,
Old 09-30-2005, 03:17 PM   #4
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 
BTW, the next version of the Module editor lets you set all of these (and more!) within a nice GUI. You can see what it looks like here:

http://www.lucasforums.com/showthrea...1572&p=1875580


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
Fred Tetra is offline   you may: quote & reply,
Old 10-01-2005, 04:06 PM   #5
Darth InSidious
A handful of dust.
 
Darth InSidious's Avatar
 
Join Date: Feb 2005
Location: The Eleven-Day Empire
Posts: 5,763
Current Game: KotOR II
I look forward to using it



Works-In-Progress
~
Mods Released
~
Quid existis in desertum videre?
Darth InSidious is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > Changing Area Music

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:00 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.