Developer's Blog
Register Low Fi Mark Forums Read

Notices

Reply
 
Thread Tools
Old 01-24-2012, 02:58 PM   #1
ZwelchX
Member
 
Join Date: May 2011
Posts: 73
ZwelchX is offline

Default Modding Sound in Dota2


Is it possible to change the soundfiles of the announcer in Dota 2 and replace them with a different soundfile??

if yes can anyone tell me how please.
  Reply With Quote
Old 01-24-2012, 03:15 PM   #2
StraY_WolF
Member
 
StraY_WolF's Avatar
 
Join Date: Jun 2010
Location: Under the stars
Posts: 3,958
StraY_WolF is offline
Default Re: Modding Sound in Dota2
Did you find this post helpful? Yes | No

I think you can, just like how they did with half life 2.
  Reply With Quote
Old 01-24-2012, 03:30 PM   #3
Noxonius
Banned
 
Join Date: Aug 2011
Location: In the nether reaches
Posts: 3,698
Blog Entries: 15
Noxonius is offline
Default Re: Modding Sound in Dota2
Did you find this post helpful? Yes | No

That should be possible, but I think that the sound files aren't in a regular form like wav. or mp3, so don't count on those...
  Reply With Quote
Old 01-24-2012, 03:32 PM   #4
Jouten_X
Member
 
Jouten_X's Avatar
 
Join Date: Dec 2011
Posts: 203
Jouten_X is offline
Default Re: Modding Sound in Dota2
Did you find this post helpful? Yes | No

The sound files are .wav like usual. The issue is that unlike other Source games, Dota2 ignores certain custom files. Or at least, it sure ignored my alternate AM texture I did.
  Reply With Quote
Old 01-24-2012, 04:05 PM   #5
Deadstarrr
Member
 
Join Date: Oct 2011
Posts: 23
Deadstarrr is offline
Default Re: Modding Sound in Dota2
Did you find this post helpful? Yes | No

I wonder if they will keep the current announcer. Sounds a little strange.
  Reply With Quote
Old 01-24-2012, 04:11 PM   #6
Jouten_X
Member
 
Jouten_X's Avatar
 
Join Date: Dec 2011
Posts: 203
Jouten_X is offline
Default Re: Modding Sound in Dota2
Did you find this post helpful? Yes | No

Quote:
Originally Posted by Deadstarrr View Post
I wonder if they will keep the current announcer. Sounds a little strange.
She's stoic, but that's a big difference from TF2's which sounds more enthusiastic than Dota casters at times.
  Reply With Quote
Old 01-24-2012, 04:34 PM   #7
ZwelchX
Member
 
Join Date: May 2011
Posts: 73
ZwelchX is offline
Default Re: Modding Sound in Dota2
Did you find this post helpful? Yes | No

So can anyone tell me where exactly i can find the soundfiles in my dota folder im unable to do so ^^
  Reply With Quote
Old 04-02-2012, 12:33 AM   #8
seru39
Member
 
Join Date: Mar 2012
Posts: 7
seru39 is offline
Default Re: Modding Sound in Dota2
Did you find this post helpful? Yes | No

The sound files can be found by using a .vpk viewing and extracting program like GCFscape (http://nemesis.thewavelength.net/index.php?p=26) on the following file:

\steam\steamapps\common\dota 2 beta\dota\pak01_dir.vpk

Note that it is not really a good idea to change .vpk file itself for various reasons, some of which I don't really know the details myself. To change the announcer (or any other) sounds, what you should ideally do is go into this folder:

\steam\steamapps\common\dota 2 beta\dota\scripts

Most, if not all of the .txt files used by dota 2 as pointers to the correct sound to play can be found here. The following directory contains all voiceover (vo) pointers, including the hero voices and the announcer voices:

\steam\steamapps\common\dota 2 beta\dota\scripts\voscripts

The announcer voice pointers are contained in the .txt files named game_sounds_vo_announcer.txt and game_sounds_vo_announcer_phonemes.txt. What you need to do now is, assuming you already have available the sound you want to play, to change the directory contained in the .txt files to the place where you have put your custom sound file. So, for example, if I were to place the sound custom.wav into the folder \steam\steamapps\common\dota 2 beta\dota\sound\custom, your text line containing the directory information in the .txt files should look like one of the following:

"wave" "custom\custom.mp3"
"wave" "*custom\custom.mp3"
"wave" ")custom\custom.mp3"

Note the presence or absence of a special character * or ) before the directory information, which varies across the .txt files. I admit I don't know what its purpose is for, so it's best to keep it there if it's already present in the .txt file. If you don't know what a sound that's listed in the .txt file is for, just open the .vpk file using GCFscape (or another program) and go into the directory as mentioned in the .txt file, then listen to the sound file.

Note that you can also change the hero skill sounds (juggernaut's spin sound, for example, is lacking at best in dota 2 in my opinion). The .txt files can be found in:

\steam\steamapps\common\dota 2 beta\dota\scripts\game_sounds_heroes

You also need to make sure that your custom sound files match the format, bit rate, sampling frequency, and whether it is a mono or stereo sound, of the original sound found in the pak01_dir.vpk. Otherwise, your sound will not load in game and you'll be hearing silence whenever that sound is supposed to play.

The format can be easily checked through the file extension (.wav or .mp3).

To check the bitrate, go into the file properties and under the details tab match the Audio: Bit rate to the original sound file.

To match the sampling frequency, you need a specialised audio program like Audacity (http://audacity.sourceforge.net/). Audacity will also allow you to convert one file format to another, and also tell you whether your sounds are mono or stereo.

IMPORTANT

Once you've placed the custom sounds in the folders and edited the .txt script files, you must turn on the console in dota 2 (right click dota 2 in your games library in steam, go into properties, and in set launch options type -console) then use the snd_updateaudiocache command in the console. This needs to be done every time you've changed the script files and/or have placed new sounds.

It is also a good idea to backup a copy of the .txt scripts you've edited, along with the custom sound files, in case you ever need to verify the integrity of your dota 2 data. You also cannot open dota 2 while GCFscape is browsing a .vpk file, as it causes steam to think your data is corrupt. If this is done by accident simply close dota 2 and GCFscape, then relaunch dota 2.



COMMON REASONS WHY YOUR CUSTOM SOUND DOES NOT PLAY IN DOTA 2

Recheck the directory you've placed your custom sound in and check that it matches your .txt script files. Also check the name of your sound files.

A general guideline is that if dota 2 expects a mono sound when you've fed in a stereo sound, the sound will not play, although the reverse will work (feeding in a mono sound when dota 2 expects a stereo sound generally functions OK). If you fed in the wrong audio format (.mp3 instead of .wav, for example), the sound will not play. If your bit rate and/or sampling frequency is higher than the original file in the pak01_dir.vpk, then the sound will not play (having the bit rate and/or sampling frequency lower than the original file generally works OK).

Make sure you've updated the audio cache (snd_updateaudiocache in the console).



Sorry for the long post, and I hope this helps!
  Reply With Quote
Old 04-02-2012, 03:31 AM   #9
SpellBindeR
Banned
 
Join Date: Sep 2009
Location: Mabuhay ang Pilipinas!
Posts: 1,154
SpellBindeR is offline
Default Re: Modding Sound in Dota2
Did you find this post helpful? Yes | No

Quote:
Originally Posted by seru39 View Post
The sound files can be found by using a .vpk viewing and extracting program like GCFscape (http://nemesis.thewavelength.net/index.php?p=26) on the following file:

\steam\steamapps\common\dota 2 beta\dota\pak01_dir.vpk

Note that it is not really a good idea to change .vpk file itself for various reasons, some of which I don't really know the details myself. To change the announcer (or any other) sounds, what you should ideally do is go into this folder:

\steam\steamapps\common\dota 2 beta\dota\scripts

Most, if not all of the .txt files used by dota 2 as pointers to the correct sound to play can be found here. The following directory contains all voiceover (vo) pointers, including the hero voices and the announcer voices:

\steam\steamapps\common\dota 2 beta\dota\scripts\voscripts

The announcer voice pointers are contained in the .txt files named game_sounds_vo_announcer.txt and game_sounds_vo_announcer_phonemes.txt. What you need to do now is, assuming you already have available the sound you want to play, to change the directory contained in the .txt files to the place where you have put your custom sound file. So, for example, if I were to place the sound custom.wav into the folder \steam\steamapps\common\dota 2 beta\dota\sound\custom, your text line containing the directory information in the .txt files should look like one of the following:

"wave" "custom\custom.mp3"
"wave" "*custom\custom.mp3"
"wave" ")custom\custom.mp3"

Note the presence or absence of a special character * or ) before the directory information, which varies across the .txt files. I admit I don't know what its purpose is for, so it's best to keep it there if it's already present in the .txt file. If you don't know what a sound that's listed in the .txt file is for, just open the .vpk file using GCFscape (or another program) and go into the directory as mentioned in the .txt file, then listen to the sound file.

Note that you can also change the hero skill sounds (juggernaut's spin sound, for example, is lacking at best in dota 2 in my opinion). The .txt files can be found in:

\steam\steamapps\common\dota 2 beta\dota\scripts\game_sounds_heroes

You also need to make sure that your custom sound files match the format, bit rate, sampling frequency, and whether it is a mono or stereo sound, of the original sound found in the pak01_dir.vpk. Otherwise, your sound will not load in game and you'll be hearing silence whenever that sound is supposed to play.

The format can be easily checked through the file extension (.wav or .mp3).

To check the bitrate, go into the file properties and under the details tab match the Audio: Bit rate to the original sound file.

To match the sampling frequency, you need a specialised audio program like Audacity (http://audacity.sourceforge.net/). Audacity will also allow you to convert one file format to another, and also tell you whether your sounds are mono or stereo.

IMPORTANT

Once you've placed the custom sounds in the folders and edited the .txt script files, you must turn on the console in dota 2 (right click dota 2 in your games library in steam, go into properties, and in set launch options type -console) then use the snd_updateaudiocache command in the console. This needs to be done every time you've changed the script files and/or have placed new sounds.

It is also a good idea to backup a copy of the .txt scripts you've edited, along with the custom sound files, in case you ever need to verify the integrity of your dota 2 data. You also cannot open dota 2 while GCFscape is browsing a .vpk file, as it causes steam to think your data is corrupt. If this is done by accident simply close dota 2 and GCFscape, then relaunch dota 2.



COMMON REASONS WHY YOUR CUSTOM SOUND DOES NOT PLAY IN DOTA 2

Recheck the directory you've placed your custom sound in and check that it matches your .txt script files. Also check the name of your sound files.

A general guideline is that if dota 2 expects a mono sound when you've fed in a stereo sound, the sound will not play, although the reverse will work (feeding in a mono sound when dota 2 expects a stereo sound generally functions OK). If you fed in the wrong audio format (.mp3 instead of .wav, for example), the sound will not play. If your bit rate and/or sampling frequency is higher than the original file in the pak01_dir.vpk, then the sound will not play (having the bit rate and/or sampling frequency lower than the original file generally works OK).

Make sure you've updated the audio cache (snd_updateaudiocache in the console).



Sorry for the long post, and I hope this helps!
Not bad for a first post. It can help OP certainly.
  Reply With Quote
Old 11-22-2012, 05:40 AM   #10
sib0
Member
 
sib0's Avatar
 
Join Date: Jun 2010
Location: Montenegro, Podgorica
Posts: 121
sib0 is offline
Default Re: Modding Sound in Dota2
Did you find this post helpful? Yes | No

seru39 dude im kinda confused about Textures you mentioned ...
Please help me by explaining this in steps ... :S
  Reply With Quote
Old 01-01-2013, 12:28 AM   #11
seru39
Member
 
Join Date: Mar 2012
Posts: 7
seru39 is offline
Default Re: Modding Sound in Dota2
Did you find this post helpful? Yes | No

Hi, I didn't mention any textures. Can you please clarify what you want to be done?
  Reply With Quote
Old 01-01-2013, 12:41 AM   #12
ram231
Member
 
ram231's Avatar
 
Join Date: Feb 2012
Location: Philippines, Cotabato City
Posts: 7,152
Blog Entries: 1
ram231 is offline
Default Re: Modding Sound in Dota2
Did you find this post helpful? Yes | No

its already done :|
__________________
  Reply With Quote
Old 06-08-2013, 08:05 PM   #13
_soul_inferno_
Member
 
Join Date: Apr 2012
Posts: 1
_soul_inferno_ is offline
Default Re: Modding Sound in Dota2
Did you find this post helpful? Yes | No

Hello Seru39,

im very interested in making my own sounds to work with dota 2 and i followed your guide carefully. Now it will not play the custom sounds but the console says "Updated XX files" if i press "snd_updateaudiocache 1". It chooses instead the files of the .vpk archive to play.

If i remove those "sound*.vpk" files from the directory then the sound plays correctly but if i keep them there they won't play :-(

Do you maybe can assist me to figure out whats the problem? ...would be awesome :-)

...If i check the console after the game has started it also states that "VScript is disabled." <- Maybe thats the problem?




By the way your guide should really be sticky! It's the only post in the internet i found out about changing sound files with a save method.





best regards


soul inferno
  Reply With Quote
Old 08-05-2013, 10:25 AM   #14
Wladxq
Member
 
Join Date: Nov 2009
Posts: 1
Wladxq is offline
Default Re: Modding Sound in Dota2
Did you find this post helpful? Yes | No

i prepared the files and all that post said but how to replace them in the vpK? anyone?
  Reply With Quote
Old 10-08-2013, 03:40 PM   #15
seru39
Member
 
Join Date: Mar 2012
Posts: 7
seru39 is offline
Default Re: Modding Sound in Dota2
Did you find this post helpful? Yes | No

Hi,

That guide I wrote is outdated and probably won't work anymore, as Valve changed the file structure of Dota 2. You need to change the .vpk files directly, and as long as you only modify the sound and script files referencing the sound, there should be no problems. I figured out how to do this a while back, pm me if you're interested.

Otherwise, follow this excellent guide.

http://steamcommunity.com/sharedfile.../?id=155078298
  Reply With Quote
Old 10-09-2013, 07:37 PM   #16
DoomReigns
Member
 
Join Date: Sep 2013
Posts: 1
DoomReigns is offline
Default Re: Modding Sound in Dota2
Did you find this post helpful? Yes | No

Quote:
Originally Posted by seru39 View Post
Hi,

That guide I wrote is outdated and probably won't work anymore, as Valve changed the file structure of Dota 2. You need to change the .vpk files directly, and as long as you only modify the sound and script files referencing the sound, there should be no problems. I figured out how to do this a while back, pm me if you're interested.

Otherwise, follow this excellent guide.

http://steamcommunity.com/sharedfile.../?id=155078298
Hi, I've tried to send you a PM but it says I cannot
Whenever I try to open the vpk files via GCFScope in order to mod some stuff I receive "invalid characters in path" error or smth like that. My buddy is having the same issue.
Anyway, thought you know how to get this shizzle to work.
Any help would be appreciated.


DoomReigns
  Reply With Quote
Reply
  Defense of the Ancients DotA Chat


Forum Jump

Thread Tools