PDA

View Full Version : Tutorial - Adding Custom Music to KOTOR


jamezy91
07-24-2007, 05:46 PM
Mod note: Copied here (http://www.lucasforums.com/showthread.php?t=180773) as well to make it easier to find. ~M

Adding Custom Music to Kotor

If this is in the wrong section let me know ;)

Heres a little guide i wipped up to add your own custom music files to KOTOR. *Notice* this is not for replacing existing music files i am going to create a completely new entry and add it to a module. Always backup your original files before you edit them. Also this will not work an a module if you've entered it before in your current game :(.

1. Getting started
*Tools Needed*
Kotor Tool (http://kotortool.starwarsknights.com/download.php?kotor_tool_setup.exe) - Fred Tetra
K-gff Editor (http://www.starwarsknights.com/mtools/kgff_122.rar) - Tk102
EftEditor (http://www.starwarsknights.com/mtools/ErfEdit03.rar) - Stoffe

2. Adding the MP3 Click For Screen (http://img522.imageshack.us/my.php?image=namingmusichb2.jpg)
First things first find the MP3 you want to add. I used Dante's Theme from Fullmetal Alchemist.Put it in the StreamMusic Folder in your Kotor game directory. Then rename it to something like (mus_theme_dante.mp3 - or - mus_area_dante.mp3).

3. Alittle 2da Editing :) Click For Screen (http://img522.imageshack.us/my.php?image=editing2dave2.jpg)
Now open Kotor Tool. And open the AmbientMusic.ada file in the 2da Folder. Then add a new entry at the bottom. (Row Label ) 49 ( u can make it anything greater than 48 ;) , (Description) i used the value 42436 , (Resource) then name of your music file without the MP3 or Wav extension. Then save the 2da file to your Override foler in you Kotor Game Directory.

4. Adding the Custom Music to a Module Click For Screen 1 (http://img111.imageshack.us/my.php?image=extractgitrf2.jpg) Click For Screen 2 (http://img522.imageshack.us/my.php?image=editinggitle7.jpg)
Now find the module that you want to add the custom music to (I used the Jedi Enclave ). Extract it's .Git file and open it upp with K-gff. Then find the STRUCT labeled Area Properties. Change its MusicDay , And Music Night asfunction:playTune,2 to the Row Label you gave you Custom music in the 2da file. then save.

5. Where almost done :) Click For Screen (http://img50.imageshack.us/my.php?image=overwritegitqk6.jpg)
Then open up ErfEdit and locate the Module Rim file you extracted the Git from in Kotor Tool (it will be in the Module folder in your Kotor Game Directory). Then add the edited .Git file to the Rim you opened. Overwrite the existing .git file in the .Rim file with your new one. Save the .Rim file and your done.

Mindtwistah
07-24-2007, 05:52 PM
Good job! Amazing how you can explain so much in so few words. 9/10 !! ;)

Master Zionosis
07-24-2007, 06:04 PM
I think we have a new addition to the tutorials page :)

9/10 :D