A Game of Thrones • A Song of Ice and Fire NWN2 Persistent World • Low Magic Role Play

NWN2 Custom Music Guide

Resources - Technical Documentation
Thursday, 23 July 2009 17:15

What you Need to Get Started

  • A text editor like Notepad or VI
  • A way to convert music files to 128 constant bitrate (WinLAME)
  • A way to convert your .mp3 files to the .bmu game format (MP3 to BMU Converter)

NOTE: If your files are already in .bmu format, you will only need the text editor and you can skip to step 2. Any .bmu file will work, like those from NWN1 available on IGN

Step One: Converting Your Music Files

Starting with an MP3 source, use WinLAME to convert to the somewhat non-lossy WAV format. Once you're done, convert the file back to MP3 using a constant 128kbps bitrate, 44kHz stereo and high quality (select 'custom settings' in the 'Preset' window during the conversion process to alter these). Then use the MP3 to BMU converter to make the final BMU.

Here’s a funny glitch. The mp3 to BMU converter may report your file isn’t constant bitrate even if it is. If you’re sure it is, just continue.

Step 2: Naming and Storing Your Music File

Name your newly minted .bmu files like this: mus_yourfilename.bmu. The filename should be 32 characters or less. Don’t use special characters like commas, apostrophes, etc. Place your .bmu file in the "My Documents\Neverwinter Nights 2\music" folder.

Step 3: Adding Your Music File to NWN2

This is arguably the most complicated part, as you’ll have to edit your ambientmusic.2da file outside the toolset to make sure it stays in the right format. Find your unaltered ambientmusic.2da file located in your "Program Files\Neverwinter Nights 2\Data" folder. If you have the expansions, you should see 2DA_X2.zip and/or 2DA_X1.zip. If you only have the original game, you'll only see 2DA.zip. Open the zip file that corresponds to your version of the game and extract the ambientmusic.2da file.

Now, start your text editor and open the extracted ambientmusic.2da file. It should look something like this:

2DA V2.0      
Description Resource Stinger1 Stinger2 Stinger3 Label
0 61901 **** **** **** **** ****
1 61842 mus_ruralday1 **** **** **** mus_ruralday1
2 61843 mus_ruralday2 **** **** **** mus_ruralday2
3 61844 mus_ruralnite **** **** **** mus_ruralnite
4 61845 mus_forestday1 **** **** **** mus_forestday1
5 61846 mus_forestday2 **** **** **** mus_forestday2
6 61847 mus_forestnite **** **** **** mus_forestnite
7 61848 mus_gendungeon1 **** **** **** mus_gendungeon1
8 61849 mus_sewer **** **** **** mus_sewer
9 61850 mus_mines1 **** **** **** mus_mines1
10 61851 mus_mines2 **** **** **** mus_mines2
11 61852 mus_crypt1 **** **** **** mus_crypt1
12 61853 mus_crypt2 **** **** **** mus_crypt2
13 61854 mus_evildungeon1 **** **** **** mus_evildungeon1
14 61855 mus_evildungeon2 **** **** **** mus_evildungeon2
15 61856 mus_cityslumday **** **** **** mus_cityslumday
16 61857 mus_cityslumnite **** **** **** mus_cityslumnite
17 61858 mus_citydockday **** **** **** mus_citydockday
18 61859 mus_citydocknite **** **** **** mus_citydocknite
19 61860 mus_citywealthy **** **** **** mus_citywealthy
20 61861 mus_citymarket **** **** **** mus_citymarket
21 61862 mus_citynite **** **** **** mus_citynite
22 61863 mus_tavern1 **** **** **** mus_tavern1
23 61864 mus_tavern2 **** **** **** mus_tavern2
24 61865 mus_tavern3 **** **** **** mus_tavern3
25 61866 mus_richhouse **** **** **** mus_richhouse
26 61867 mus_store **** **** **** mus_store
27 61868 mus_templegood **** **** **** mus_templegood
28 61869 mus_templeevil **** **** **** mus_templeevil
29 61870 mus_theme_nwn **** **** **** mus_theme_nwn
30 61871 mus_theme_chap1 **** **** **** mus_theme_chap1
31 61872 mus_theme_chap2 **** **** **** mus_theme_chap2
32 61873 mus_theme_chap3 **** **** **** mus_theme_chap3
33 61874 mus_theme_chap4 **** **** **** mus_theme_chap4
34 61875 mus_bat_rural1 mus_sbat_rural1 **** **** mus_bat_rural1
35 61876 mus_bat_forest1 mus_sbat_forest1 **** **** mus_bat_forest1
36 61877 mus_bat_forest2 mus_sbat_forest2 **** **** mus_bat_forest2
37 61878 mus_bat_dung1 mus_sbat_dung1 **** **** mus_bat_dung1
38 61879 mus_bat_dung2 mus_sbat_dung2 **** **** mus_bat_dung2
39 61880 mus_bat_dung3 mus_sbat_dung3 **** **** mus_bat_dung3
40 61881 mus_bat_city1 mus_sbat_city1 **** **** mus_bat_city1
41 61882 mus_bat_city2 mus_sbat_city2 **** **** mus_bat_city2
42 61883 mus_bat_city3 mus_sbat_city3 **** **** mus_bat_city3
43 61884 mus_bat_citboss mus_sbat_citboss **** **** mus_bat_citboss
44 61885 mus_bat_forboss mus_sbat_forboss **** **** mus_bat_forboss
45 61886 mus_bat_lizboss mus_sbat_lizboss **** **** mus_bat_lizboss
46 61887 mus_bat_dragon mus_sbat_dragon **** **** mus_bat_dragon
47 61888 mus_bat_aribeth mus_sbat_aribeth **** **** mus_bat_aribeth
48 61889 mus_bat_endboss mus_sbat_endboss **** **** mus_bat_endboss
49 66833 mus_templegood2 **** **** **** mus_templegood2
50 66883 mus_castle **** **** **** mus_castle
51 66878 mus_theme_aribgd **** **** **** mus_theme_aribgd
52 66879 mus_theme_aribev **** **** **** mus_theme_aribev
53 66880 mus_theme_argend **** **** **** mus_theme_argend
54 66881 mus_theme_maugrm **** **** **** mus_theme_maugrm
55 66882 mus_theme_morag **** **** **** mus_theme_morag
56 67545 mus_tavern4 **** **** **** mus_tavern4
57 8807 mus_bat_x0desert **** **** **** mus_bat_x0desert
58 8806 mus_x0desertday **** **** **** mus_x0desertday
59 8805 mus_x0winterday **** **** **** mus_x0winterday
60 52827 mus_bat_x0winter **** **** **** mus_bat_x0winter
61 40050 mus_x0desertngt **** **** **** mus_x0desertngt
62 86656 mus_x2theme **** **** **** mus_x2theme
63 86657 mus_x2waterdeep **** **** **** mus_x2waterdeep
64 86658 mus_x2undermtn **** **** **** mus_x2undermtn
65 86659 mus_x2rebelcamp **** **** **** mus_x2rebelcamp
66 86660 mus_x2fireplane **** **** **** mus_x2fireplane
67 86661 mus_x2queen **** **** **** mus_x2queen
68 86662 mus_x2frozenhell **** **** **** mus_x2frozenhell
69 86663 mus_x2draco **** **** **** mus_x2draco
70 86664 mus_bat_x2small mus_sbat_x2small **** **** mus_bat_x2small
71 86665 mus_bat_x2med mus_sbat_x2med **** **** mus_bat_x2med
72 86666 mus_bat_x2large mus_sbat_x2large **** **** mus_bat_x2large
73 86667 mus_bat_x2hell mus_sbat_x2hell **** **** mus_bat_x2hell
74 86668 mus_bat_x2boss1 mus_sbat_x2boss1 **** **** mus_bat_x2boss1
75 86669 mus_bat_x2boss2 mus_sbat_x2boss2 **** **** mus_bat_x2boss2
76 **** **** **** **** **** ****
77 **** **** **** **** **** ****
78 **** **** **** **** **** ****
79 **** **** **** **** **** ****
80 **** **** **** **** **** ****
81 **** **** **** **** **** ****
82 **** **** **** **** **** ****
83 **** **** **** **** **** ****
84 **** **** **** **** **** ****
85 **** **** **** **** **** ****
86 **** **** **** **** **** ****
87 **** **** **** **** **** ****
88 **** **** **** **** **** ****
89 **** **** **** **** **** ****
90 **** **** **** **** **** ****
91 **** **** **** **** **** ****
92 **** **** **** **** **** ****
93 **** **** **** **** **** ****
94 **** **** **** **** **** ****
95 183047 mus_harbor **** **** **** mus_harbor
96 183048 mus_gith **** **** **** mus_gith
97 183049 mus_bat_gith mus_s_gith **** **** mus_bat_gith
98 183051 mus_harbor_dead **** **** **** mus_harbor_dead
99 183052 mus_swamp **** **** **** mus_swamp
100 **** **** **** **** **** ****
101 183053 mus_bat_docks mus_sbat_combatbegin **** **** mus_bat_docks
102 183055 mus_dungeon **** **** **** mus_dungeon
103 183056 mus_nwcity **** **** **** mus_nwcity
104 183057 mus_nwcity_interior **** **** **** mus_nwcity_interior
105 183059 mus_bat_harbor mus_sbat_combatbegin **** **** mus_bat_harbor
106 183060 mus_backalley **** **** **** mus_backalley
107 183061 mus_bat_kos mus_sbat_combatboss **** **** mus_bat_kos
108 183062 mus_kos **** **** **** mus_kos
109 183063 mus_village **** **** **** mus_village
110 183064 mus_flagon **** **** **** mus_flagon
111 183329 mus_crk **** **** **** mus_crk
112 183330 mus_ruins **** **** **** mus_ruins
113 183334 mus_murder **** **** **** mus_murder
114 183333 mus_ammon **** **** **** mus_ammon
...
117 **** mus_s_garius **** **** **** mus_s_garius
118 **** **** **** **** **** ****
119 **** **** **** **** **** ****
120 **** mus_s_ammon **** **** **** mus_s_ammon
121 **** mus_s_darkspread **** **** **** mus_s_darkspread
122 **** mus_s_gith **** **** **** mus_s_gith
123 **** mus_s_nasher **** **** **** mus_s_nasher
124 **** mus_s_nwcity **** **** **** mus_s_nwcity
125 **** mus_s_romance **** **** **** mus_s_romance
126 **** **** **** **** **** ****
127 **** **** **** **** **** ****
128 **** **** **** **** **** ****
129 **** **** **** **** **** ****
130 **** **** **** **** **** ****
131 **** **** **** **** **** ****
132 **** **** **** **** **** ****
133 **** **** **** **** **** ****
134 **** **** **** **** **** ****
135 **** **** **** **** **** ****
136 **** **** **** **** **** ****
137 **** **** **** **** **** ****
138 **** **** **** **** **** ****
139 **** **** **** **** **** ****
140 **** **** **** **** **** ****
141 **** **** **** **** **** ****
142 **** **** **** **** **** ****
143 **** **** **** **** **** ****
144 **** **** **** **** **** ****
145 **** **** **** **** **** ****
146 **** **** **** **** **** ****
147 **** **** **** **** **** ****
148 **** **** **** **** **** ****
149 **** **** **** **** **** ****
150 **** **** **** **** **** ****
151 **** **** **** **** **** ****
152 **** **** **** **** **** ****
153 **** **** **** **** **** ****
154 **** **** **** **** **** ****
155 **** **** **** **** **** ****
156 **** **** **** **** **** ****
157 **** **** **** **** **** ****
158 **** **** **** **** **** ****
159 **** **** **** **** **** ****
160 **** **** **** **** **** ****
161 **** **** **** **** **** ****
162 **** **** **** **** **** ****
163 **** **** **** **** **** ****
164 **** **** **** **** **** ****
165 **** **** **** **** **** ****

 

Add a new row to the ambientmusic.2da file and enter in the details for your file. You only need to worry about two fields: Resource (which is the name of your file without the .bmu extension) and Label (which is the name of the file as it shows up in the toolset - put the name in quotes if you use spaces). For all the other fields, simply enter in ****. Here's an example of how your entry should look:


165 **** **** **** **** **** ****
166 **** mus_mymusicfile **** **** **** "My Music File"

Once you're done with your chances, save the ambientmusic.2da file and place it in your "My Documents\Neverwinter Nights 2\override" folder for testing purposes. Double-check your work by opening the ambientmusic.2da file in your toolset 2DA viewer. If no errors appear, you are done! Congratulations! Now you can add your music to your area! For modules or persistent worlds, you should add your edited ambientmusic.2da file to a HAK.

Step 4: Adding Your Music to an Area

Open your toolset. Open an area you want add your music to. In the properties window (right-hand pane by default), click on the ‘daytime music’ field and scroll through the list until you find the music file you added. The drop down list is sorted alphabetically by label. Once you find your file, select it and save your module to test it. If you created your custom music file correctly according to the instructions above, you should hear the music both in the toolset and the game (be sure you have music enabled!).

Last Updated on Friday, 23 July 2010 18:46
 

Add comment


Security code
Refresh