New Music Tutorial
Moderators: Necrolis, Nefarius
-
- Paladin
- Posts: 133
- Joined: Wed Feb 11, 2004 9:11 pm
- Location: Vermont
New Music Tutorial
Hey everyone. Defilus here, some of you may know me as The Zerginator from my orcish ways mod. 99% of you probably dont though.
I decided to make a music "import" tutorial which uses the new Winamp 5.0 program. Ready?
First here's what you need:
Basic shortcut for Modded Diablo II (-direct -txt)
MPQView
A good piece of music
Winamp 5.0 (you can get it at www.winamp.com. its 100% free)
A bit of Hard drive space. (no more than 100 meg typically)
Here's how to do it.
Let's say you have a really cool mp3 file you want to put into diablo II. How do you go about doing it? First you need to find what music you want to replace. Lets say you want to replace the Act 1 town music. Load up MPQView and open d2music.mpq in your program files/diablo II/ directory.
type in ".wav" for a filter and watch MPQView filter everything out. Find the Act 1 town file (Act1/town1.wav) And jot down its location. For quick reference it's...
data\global\excel\music\act1\town1.wav
Now open up Winamp 5.0 and clear your playlist (if you have one loaded up.) Find the music file you want to put into the game and open it in Winamp. Dont play the song. Insead, go to the main window (Where it shows song length, volume, etc...) Right click, go to "Options" and select "Preferences." The shortcut to get here is by hitting ctrl-p.
Click on "Output" to go to the output window. If you have just downloaded Winamp 5.0 you should have three different outputs available to you. One of them should be "Nullsoft Disk Writer" or something like that. Double click on it.
What we have just told Winamp to do is this: Instead of audio output, winamp now "writes" the song to a certain directory. To choose where winamp writes these files, click on "output directory." Note that when you play songs in winamp now, there will be no sound and your songs "play" incredibly fast. This is because winamp is not playing the song, but is instead making a completely new output file based on the settings you give it! For this example, lets make the output directory "C:\mod\music" for simplicity's sake.
So, you have the output window still up? excellent! Click the "..." box below the output directory and a new window will pop up, asking you what quality the files should be written in. select "PCM" from the first drop-down menu, and select (i think) 22.050 khz 16 bit stereo from that menu. Dont touch anything else except "OK." hit "OK" one more time, and "close" the next time. You should be back in the main Winamp program now.
Now play your song. winamp will not audioly play the song!! it is now "writing" your song into .wav format. watch it closely until it finishes, then hit the stop button. Find where your output directory was (should be C:\mod\music\ if you are following this tutorial) and find the new .wav file you created. copy it for now.
Finally, go to your Diablo II directory and create a "data" folder. In that folder, create a "global" folder. In that folder, make a "music" folder. In your music folder create an "Act1" folder and open it. Now paste your song file in this folder. Now rename it to the song you want it to replace (in this example, town1.wav).
Run your -direct diablo II shortcut, load up a character, and head to act 1. You should be hearing your music play after a few seconds.
So there you go. A somewhat lengthy tutorial, but one that explains how to put custom music into d2 with just free software. The best part is, you can use ANY kind of music file (even other .wavs, or .nsf files for a good ol' nintento feel)!
If you want to actually listen to your music again, go back to the Output area in preferences in winap and select "DirectSound Output" or something similar.
-Defilus
Common Problems:
Q: Why does my music play so slowly or too quicky?
A: it is probably because of the format you wrote the .wav file in.
Q: Why doesn't my sound work now! You messed up my Winamp player! I'm Sueing!
A: Dont bother sueing me. Instead, open up winamp again, go back to the preferences menu and select output once more. Change "Nullsoft Disk Writer" back to "Directsound Output" or whatever makes winamp play songs again.
That should be all. Good luck and happy modding.
EDIT: changed the file quality to 22.050 16-bit Stereo
I decided to make a music "import" tutorial which uses the new Winamp 5.0 program. Ready?
First here's what you need:
Basic shortcut for Modded Diablo II (-direct -txt)
MPQView
A good piece of music
Winamp 5.0 (you can get it at www.winamp.com. its 100% free)
A bit of Hard drive space. (no more than 100 meg typically)
Here's how to do it.
Let's say you have a really cool mp3 file you want to put into diablo II. How do you go about doing it? First you need to find what music you want to replace. Lets say you want to replace the Act 1 town music. Load up MPQView and open d2music.mpq in your program files/diablo II/ directory.
type in ".wav" for a filter and watch MPQView filter everything out. Find the Act 1 town file (Act1/town1.wav) And jot down its location. For quick reference it's...
data\global\excel\music\act1\town1.wav
Now open up Winamp 5.0 and clear your playlist (if you have one loaded up.) Find the music file you want to put into the game and open it in Winamp. Dont play the song. Insead, go to the main window (Where it shows song length, volume, etc...) Right click, go to "Options" and select "Preferences." The shortcut to get here is by hitting ctrl-p.
Click on "Output" to go to the output window. If you have just downloaded Winamp 5.0 you should have three different outputs available to you. One of them should be "Nullsoft Disk Writer" or something like that. Double click on it.
What we have just told Winamp to do is this: Instead of audio output, winamp now "writes" the song to a certain directory. To choose where winamp writes these files, click on "output directory." Note that when you play songs in winamp now, there will be no sound and your songs "play" incredibly fast. This is because winamp is not playing the song, but is instead making a completely new output file based on the settings you give it! For this example, lets make the output directory "C:\mod\music" for simplicity's sake.
So, you have the output window still up? excellent! Click the "..." box below the output directory and a new window will pop up, asking you what quality the files should be written in. select "PCM" from the first drop-down menu, and select (i think) 22.050 khz 16 bit stereo from that menu. Dont touch anything else except "OK." hit "OK" one more time, and "close" the next time. You should be back in the main Winamp program now.
Now play your song. winamp will not audioly play the song!! it is now "writing" your song into .wav format. watch it closely until it finishes, then hit the stop button. Find where your output directory was (should be C:\mod\music\ if you are following this tutorial) and find the new .wav file you created. copy it for now.
Finally, go to your Diablo II directory and create a "data" folder. In that folder, create a "global" folder. In that folder, make a "music" folder. In your music folder create an "Act1" folder and open it. Now paste your song file in this folder. Now rename it to the song you want it to replace (in this example, town1.wav).
Run your -direct diablo II shortcut, load up a character, and head to act 1. You should be hearing your music play after a few seconds.
So there you go. A somewhat lengthy tutorial, but one that explains how to put custom music into d2 with just free software. The best part is, you can use ANY kind of music file (even other .wavs, or .nsf files for a good ol' nintento feel)!
If you want to actually listen to your music again, go back to the Output area in preferences in winap and select "DirectSound Output" or something similar.
-Defilus
Common Problems:
Q: Why does my music play so slowly or too quicky?
A: it is probably because of the format you wrote the .wav file in.
Q: Why doesn't my sound work now! You messed up my Winamp player! I'm Sueing!
A: Dont bother sueing me. Instead, open up winamp again, go back to the preferences menu and select output once more. Change "Nullsoft Disk Writer" back to "Directsound Output" or whatever makes winamp play songs again.
That should be all. Good luck and happy modding.
EDIT: changed the file quality to 22.050 16-bit Stereo
Last edited by Defilus on Wed Feb 11, 2004 10:00 pm, edited 2 times in total.
-
- Angel
- Posts: 811
- Joined: Sat Jun 21, 2003 9:10 am
- Location: Poland
Re: New Music Tutorial
Hmm... So it will open winamp during the game, and play the music form your hard drive?
Do you know that every modding question has an answer? Just use the power, click me!
"The Defile" - Forum - currently closed
The best guide for every modmaker!
"The Defile" - Forum - currently closed
The best guide for every modmaker!
-
- Dominion
- Posts: 6921
- Joined: Mon May 27, 2002 7:19 am
- Location: Orsay
Re: New Music Tutorial
no you don't understand. It use winamp as music format converter.
"How much suffering, mortal, does it take before you lose your grace?"
Shadow Empire (coming soon) | forum
Shadow Empire (coming soon) | forum
-
- Crusader
- Posts: 61
- Joined: Sun Feb 01, 2004 3:47 am
- Location: Texas
Re: New Music Tutorial
i can't get it to work
is this right as the shortcut?
"C:\Program Files\Diablo II\Diablo II.exe" -w -direct \data\global\music\Act1\town1.wav
that look right?
is this right as the shortcut?
"C:\Program Files\Diablo II\Diablo II.exe" -w -direct \data\global\music\Act1\town1.wav
that look right?
-
- Angel
- Posts: 656
- Joined: Fri Feb 13, 2004 7:55 pm
- Location: Sweden
Re: New Music Tutorial
No, it should look like this:
"C:\Program Files\Diablo II\Diablo II.exe" -w -direct -txt
"C:\Program Files\Diablo II\Diablo II.exe" -w -direct -txt
Re: New Music Tutorial
data\global\music\Act1\town1.wavBenOwns";p="158798" wrote:i can't get it to work
is this right as the shortcut?
"C:\Program Files\Diablo II\Diablo II.exe" -w -direct \data\global\music\Act1\town1.wav
that look right?
This means that you should put town1.wav file in to the act1 folder located inside data-global-music folder
-
- Crusader
- Posts: 61
- Joined: Sun Feb 01, 2004 3:47 am
- Location: Texas
Re: New Music Tutorial
i got it working but now the song goes very damn slow lol.
i changed the stuff up to 48,000 kHz 16bit stereo
but still slow what can i do?
i changed the stuff up to 48,000 kHz 16bit stereo
but still slow what can i do?
Re: New Music Tutorial
The quality diablo uses is: 22.050 16-bit Stereo
-
- Crusader
- Posts: 61
- Joined: Sun Feb 01, 2004 3:47 am
- Location: Texas
Re: New Music Tutorial
still was to slow :\
guess i will try anotherr song
guess i will try anotherr song
-
- Posts: 33
- Joined: Tue Feb 24, 2004 11:49 pm
Re: New Music Tutorial
what file should i open if i want to change the act 5 music files...right now , my d2music.mpq files contains only act1 to act4 files
-
- Throne
- Posts: 9377
- Joined: Fri Apr 18, 2003 12:38 pm
- Location: Sofia, Bulgaria
Re: New Music Tutorial
Check in d2exp.mpq, it contains everything for the expansion
ONYX
Read The Terms of Service before posting!
Back to Hellfire - Site | Forum
Also visit: Incandescence * Diabolic Cartography * Inventharia * Diablo Evolution
Read The Terms of Service before posting!
Back to Hellfire - Site | Forum
Also visit: Incandescence * Diabolic Cartography * Inventharia * Diablo Evolution
Re: New Music Tutorial
Not quite everything. There are three other expansion mpqs: d2xmusic, d2xtalk and d2xvideo.
Do the right thing. It will gratify some people and astonish the rest.
~ Mark Twain
Run Diablo II in any version for mods: tutorial
The Terms of Service!! Know them, abide by them, and enjoy the forums at peace.
The Beginner's Guide v1.4: (MS Word | PDF) || Mod Running Scripts || TFW: Awakening
~ Mark Twain
Run Diablo II in any version for mods: tutorial
The Terms of Service!! Know them, abide by them, and enjoy the forums at peace.
The Beginner's Guide v1.4: (MS Word | PDF) || Mod Running Scripts || TFW: Awakening
-
- Posts: 33
- Joined: Tue Feb 24, 2004 11:49 pm
Re: New Music Tutorial
i have only d2xtalk of those 3 files...where can i get the others ??Myhrginoc";p="158905" wrote:Not quite everything. There are three other expansion mpqs: d2xmusic, d2xtalk and d2xvideo.
-
- Posts: 33
- Joined: Tue Feb 24, 2004 11:49 pm
Re: New Music Tutorial
i followed the tutorial step by step and i am certain of having the right file quality output ( 22,050 hz 16-bit stereo ) and i made a town1.wav file of the new music i wanted to hear but when i load the game and get into town act 1 , i hear absolutelly nothing !!! ( except rain falling !!! )
what might i have done wrong ???
note : i noticed that when looking at the file properties , it wrote at file type : "winamp media file''
can it be something linked to that ??
is there another program other than winamp in which i can convert filetype to wav with the correct outputs ??
what might i have done wrong ???
note : i noticed that when looking at the file properties , it wrote at file type : "winamp media file''
can it be something linked to that ??
is there another program other than winamp in which i can convert filetype to wav with the correct outputs ??
-
- Throne
- Posts: 7597
- Joined: Sun May 26, 2002 5:54 pm
- Location: Toronto, Ontario, Canada
Re: New Music Tutorial
frankdave, please do not post consecutive messages; edit your post next time, thanks.
Re: New Music Tutorial
The other two mpqs are on your LoD CD. You can copy them over to your Diablo II directory and save yourself a few disk accesses (especially for d2xmusic.mpq, the other two aren't used during the game that much).
If you search the web, you'll find hundreds of converters out there. You might start at a reputable site such as ZDNet.
If you search the web, you'll find hundreds of converters out there. You might start at a reputable site such as ZDNet.
Do the right thing. It will gratify some people and astonish the rest.
~ Mark Twain
Run Diablo II in any version for mods: tutorial
The Terms of Service!! Know them, abide by them, and enjoy the forums at peace.
The Beginner's Guide v1.4: (MS Word | PDF) || Mod Running Scripts || TFW: Awakening
~ Mark Twain
Run Diablo II in any version for mods: tutorial
The Terms of Service!! Know them, abide by them, and enjoy the forums at peace.
The Beginner's Guide v1.4: (MS Word | PDF) || Mod Running Scripts || TFW: Awakening
-
- Posts: 33
- Joined: Tue Feb 24, 2004 11:49 pm
Re: New Music Tutorial
thanks for the hint Myhrginoc !! I did find what i was looking for !!
now here is a funny situation...i was able to easily replace the intro music with a file i converted from mp3 to .wav but nothing works for town1.wav even if i used exactly the same method for town1.wav !!!
did this happen to anyone else ??
does somebody have an idea why this happens ??
now here is a funny situation...i was able to easily replace the intro music with a file i converted from mp3 to .wav but nothing works for town1.wav even if i used exactly the same method for town1.wav !!!
did this happen to anyone else ??
does somebody have an idea why this happens ??
Re: New Music Tutorial
Did you put it in data\global\music\Act1? Replacing town music is just like replacing any in-game music, it has to be put into its respective act. The intro isn't filed by act and might not be the best substitution example.
Do the right thing. It will gratify some people and astonish the rest.
~ Mark Twain
Run Diablo II in any version for mods: tutorial
The Terms of Service!! Know them, abide by them, and enjoy the forums at peace.
The Beginner's Guide v1.4: (MS Word | PDF) || Mod Running Scripts || TFW: Awakening
~ Mark Twain
Run Diablo II in any version for mods: tutorial
The Terms of Service!! Know them, abide by them, and enjoy the forums at peace.
The Beginner's Guide v1.4: (MS Word | PDF) || Mod Running Scripts || TFW: Awakening
-
- Posts: 33
- Joined: Tue Feb 24, 2004 11:49 pm
Re: New Music Tutorial
i verified and i did put it in the correct directory....hence , instead of playing the regular music when in town act 1 , it plays nothing at all !!
i'll continue to test things but as of now...i really dont understand whats going on !!
thanks in advance for any other hints on how to solve this !!
i'll continue to test things but as of now...i really dont understand whats going on !!
thanks in advance for any other hints on how to solve this !!
Re: New Music Tutorial
Note the file should appear in the mpq or in an external directory as data\global\music\Act1\town1.wav, no spaces anywhere. This works in other mods (e.g. Kato's Zy-El), so look for possible typos such as extra spaces. I don't know why it wouldn't work for you if you have it entered right, it works for other people.
Last edited by Myhrginoc on Tue Mar 09, 2004 4:32 am, edited 1 time in total.
Do the right thing. It will gratify some people and astonish the rest.
~ Mark Twain
Run Diablo II in any version for mods: tutorial
The Terms of Service!! Know them, abide by them, and enjoy the forums at peace.
The Beginner's Guide v1.4: (MS Word | PDF) || Mod Running Scripts || TFW: Awakening
~ Mark Twain
Run Diablo II in any version for mods: tutorial
The Terms of Service!! Know them, abide by them, and enjoy the forums at peace.
The Beginner's Guide v1.4: (MS Word | PDF) || Mod Running Scripts || TFW: Awakening
-
- Posts: 33
- Joined: Tue Feb 24, 2004 11:49 pm
Re: New Music Tutorial
lolllllllllllll I must be that kinda guy to which all sorts of things happen...you know , the ''S*** happens'' kinda guy !!! lolllllllMyhrginoc";p="159471" wrote:I don't know why it wouldn't work for you if you have it entered right, it works for other people.
I'll do a double check on my dir path...who knows...you might be right !! ( or i might be crazy !! )
-
- Posts: 5
- Joined: Fri Mar 26, 2004 3:43 am
Re: New Music Tutorial
Ok, im realy new to this. So any newb comments you have id like you to answer what I have asked as well.
I followed the tutorial, yet I still have the original act1 music playing. I have made the sub-folders like it say, and it is correct w/ no spaces.
I have reason to believe it is my shortcut.Here is what i did:
I opened notepad and entered:
"D:Program Files\Diablo II\Diablo II.exe" -w -direct -txt
( ^ I installed on the D: drive instead the C: )
Then i save it as...D2LoadUp.bat (onto the desktop of course)
But this doesnt work.
I have also tried:
"D:\Program Files\Diablo II\Diablo II.exe" -w -direct \data\global\music\Act1\town1.wav
"D:\Program Files\Diablo II\Diablo II.exe" -w -direct \data\global\music\Act1\town1.wav -txt
"D:\Program Files\Diablo II\Diablo II.exe" -w -direct "\data\global\music\Act1\town1.wav"
"D:\Program Files\Diablo II\Diablo II.exe" -w -direct -txt "\data\global\music\Act1\town1.wav"
and
"D:\Program Files\Diablo II\Diablo II.exe" -w -direct -txt \data\global\music\Act1\town1.wav
Yeah of course you probly know...they didnt help either.
So an exact statement of what i would need would help out alot, thankz.
Other questions...
------------------------------------
Do i need to do something else to compile the act1.wav back into the D2music.mpq or does it work in the folders?
If I wanted to change all of the games music, what would I put so the shortcut loads each one?
I followed the tutorial, yet I still have the original act1 music playing. I have made the sub-folders like it say, and it is correct w/ no spaces.
I have reason to believe it is my shortcut.Here is what i did:
I opened notepad and entered:
"D:Program Files\Diablo II\Diablo II.exe" -w -direct -txt
( ^ I installed on the D: drive instead the C: )
Then i save it as...D2LoadUp.bat (onto the desktop of course)
But this doesnt work.
I have also tried:
"D:\Program Files\Diablo II\Diablo II.exe" -w -direct \data\global\music\Act1\town1.wav
"D:\Program Files\Diablo II\Diablo II.exe" -w -direct \data\global\music\Act1\town1.wav -txt
"D:\Program Files\Diablo II\Diablo II.exe" -w -direct "\data\global\music\Act1\town1.wav"
"D:\Program Files\Diablo II\Diablo II.exe" -w -direct -txt "\data\global\music\Act1\town1.wav"
and
"D:\Program Files\Diablo II\Diablo II.exe" -w -direct -txt \data\global\music\Act1\town1.wav
Yeah of course you probly know...they didnt help either.
So an exact statement of what i would need would help out alot, thankz.
Other questions...
------------------------------------
Do i need to do something else to compile the act1.wav back into the D2music.mpq or does it work in the folders?
If I wanted to change all of the games music, what would I put so the shortcut loads each one?
#%@* !#$@& !!!! Im lost again...
-
- Principality
- Posts: 2828
- Joined: Sat May 25, 2002 2:39 pm
- Location: La Garenne Colombes (near Paris)
Re: New Music Tutorial
Is it a typo in the forum that is not in your shortcut, or did you forget this \ after D: ?XoeoX";p="163174" wrote:"D:Program Files\Diablo II\Diablo II.exe" -w -direct -txt
( ^ I installed on the D: drive instead the C: )
"D:\Program Files\Diablo II\Diablo II.exe" -w -direct -txt
DT1 Tools - DS1 Editor - MPQ list file - Extracting D2 Animation - Adding ANY Monsters and ANY Objects to a DS1 - New monster color variations from scratch
In development since 16 Feb 2012 : MergeDCC v2
In development since 16 Feb 2012 : MergeDCC v2
-
- Posts: 5
- Joined: Fri Mar 26, 2004 3:43 am
Re: New Music Tutorial
No its a typo, I checked and it wouldnt be able to load otherwise if i had forgoten it. Diablo II loads in the window, but... I just cant get "my" version of act1 to play, instead, it ignores everythin after "-w" and plays the original music.
If i could get this to work i could go about me business of changing the rest of the songs, lol.
Um, also Im not too sure on what the -direct and -txt commands do and how it finds its way to \Data\Global\Music\Act1\act1.wav if i dont tell it otherwise.
If i could get this to work i could go about me business of changing the rest of the songs, lol.
Um, also Im not too sure on what the -direct and -txt commands do and how it finds its way to \Data\Global\Music\Act1\act1.wav if i dont tell it otherwise.
Last edited by XoeoX on Fri Mar 26, 2004 3:42 pm, edited 1 time in total.
#%@* !#$@& !!!! Im lost again...
-
- Angel
- Posts: 656
- Joined: Fri Feb 13, 2004 7:55 pm
- Location: Sweden
Re: New Music Tutorial
Why don't you try changing the order of the parameters to -direct -txt -w ?