Team Fortress 2

Team Fortress 2

28 évaluations
My custom sound file isn't working!
De Ryuke [TBM α]
A troubleshooting guide for installing custom hitsounds, killsounds, and any other sound you wish to replace.
   
Récompenser
Ajouter aux favoris
Favoris
Retirer des favoris
Installing the Sounds
How to find your steam installation
TF2 in your LibraryFirst go to your main Steam window, and click on Library. Find Team Fortress 2 in your list, and right click it. From the pulldown menu, select Properties.
Inside the Dialog
From here a window pops up, click on the Local Files tab, and then click "Browse Local Files..."





How to install custom files
From step one, double click the /tf/ folder, then the /custom/ folder. If it does not exist, create it.
Inside the /custom/ folder you should create a new folder and name it whatever will help you remember that this is for your custom sounds.
For example, let's say I name my folder "RTFM", once I open it I should be in
Steam\steamapps\common\Team Fortress 2\tf\custom\RTFM
Inside that folder you create the folder named "sound".
Inside /sound/ you create the folder named "ui"
We're now at
Steam\steamapps\common\Team Fortress 2\tf\custom\RTFM\sound\ui\
This is where you put the hitsound/killsound file.
For Hitsounds you name them
hitsound.wav
For Killsounds (hitsounds on death) you name them
killsound.wav
Correct Directory
If you are replacing some other file you must similarly create the correct directory for that specific file's path.

Sound File Parameters
Sampling Rate
Many sounds are saved at different sampling rates to preserve high quality or to save on disk space. One of the most common problems I've run in to with sounds downloaded from places like Gamebanana is that they are saved at a sampling rate of 48,000Hz, when the most TF2 will accept is 44,100 Hz. Resampling the sound at 44,100 in Audacity or Goldwave will allow it to play in TF2.

Volume
You should take a minute to maximize the volume of your sound effect if you open it with an audio manipulation program, as once you're in a game the only thing you can do is lower the volume of the audio clip. If you don't hear the lamentations of the hitsound over the sound of you crushing your enemies and seeing them driven before you, it may as well have not played. If your file is intended to be used in a soundscape you can also individually reduce the volume inside the soundscape definition file.

Cueing
If your sound is meant to repeat you can take advantage of the .wav Cue system, which creates a new start point for the looping sound. I take advantage of this when I make custom soundscapes so I can have an intro that leads into a stable song loop that never needs to repeat the intro sequence. TF2 will read them when deciding where to loop to on looping sound effects.
Confirm Advanced Options
Access the Advanced Options menu from the main screen of TF2 by clicking the button in the bottom right corner. Under the Combat Options section there's a number of options about your hitsound.
Advanced Options Menu
If you want to use a custom hitsound or killsound, you must check the top checkbox, and if you want to use a killsound for killing blows you must check the second checkbox.
Volume and Pitch should be modified to your personal preference.
Specific Problems
My sound works fine when I open it in another program, but sounds garbled in TF2
This is caused by resaving the sound file without deleting the automatically created sound.cache file in the sound directory inside the custom folder where the sound is saved. The first time you play a sound TF2 creates this file to let it know exactly how long the sound is supposed to last, what format it's in, and other information. If the sound itself changes and the cache doesn't, it'll use the old cache information to try to play the sound, resulting in garbage.
Console Variables for Hitsounds
tf_dingalingaling 1
Activates hitsounds
tf_dingalingaling_lasthit 1
Changes the killing hitsound to killsound.wav
Very important if you want to have a killsound, set to 0 if you want to only use hitsound.wav

tf_dingalingaling_effect 0 tf_dingalingaling_last_effect 0
Sets the hitsound to the basic hitsound.wav file, very important if you want to hear your replacement. The second one is similar, but for the killsound.

tf_dingaling_volume 0.75 tf_dingaling_lasthit_volume 0.75
Sets the volume of the hitsound and killsound respectively, maximum value is 1.

tf_dingaling_pitch_override -1 tf_dingaling_lasthit_pitch_override -1 tf_dingaling_lasthit_pitchmaxdmg 100 tf_dingaling_lasthit_pitchmindmg 100 tf_dingaling_pitchmaxdmg 100 tf_dingaling_pitchmindmg 100
The overrides when something other than -1 set the pitch for their respective sounds. 100 is standard pitch.

tf_dingalingaling_repeat_delay 0

Sets a delay between instances of the hit sound firing. Useful if your sound is long and you play pyro, but generally set to 0 to play the sound once for every instance of damage.
18 commentaires
xxx_birdwatcher420_xxx 30 juil. 2023 à 23h26 
to change your sample rate in audacity you need to go to edit > preferences > audio settings (this should be the open tab).

Under the Recording header change "Channels" to stereo/2
Under Quality change both the Project Sample Rate and the Default Sample Rate to 44100 Hz
and the Default Sample Format to 16-bit.

save these then reopen audacity and import your sound, then export as a wav.
Ryuke [TBM α]  [créateur] 10 mars 2023 à 17h30 
You have to make sure your file actually works, make certain it isn't a .mp3 renamed to .wav but actually resaved as a different format, maybe then it'll open in audacity?
Dr. Jebediah Christoff 10 mars 2023 à 15h45 
so uhhh... how do i change sample rate then?
Dr. Jebediah Christoff 10 mars 2023 à 15h34 
hot damn
Ryuke [TBM α]  [créateur] 10 mars 2023 à 14h06 
I do not use audacity.
Dr. Jebediah Christoff 10 mars 2023 à 13h32 
audacity says it doesn't recognize my wav file.
Jenny Belle 5 avr. 2020 à 17h43 
i apologize i just had to restart my computer
Jenny Belle 5 avr. 2020 à 17h33 
hello yes this didnt work in the slightest
Biome 7 avr. 2018 à 7h26 
Audacity says my file is 44100 Hz, but TF2 says it's 32000. Do you know of any way to fix this? I've tried changing it to a few different values and none seem to work...
Ryuke [TBM α]  [créateur] 6 avr. 2018 à 21h41 
root\sound\vo\medic_autochargeready01.mp3
root\sound\vo\medic_autochargeready02.mp3
root\sound\vo\medic_autochargeready03.mp3