Team Fortress 2

Team Fortress 2

211 ratings
TF2 Spray Fix
By Snowshoe
Guide to fix sprays not showing up in-game. Works for Team Fortress 2, TF2Classic, Open Fortress, Counter-Strike: Source, Day of Defeat: Source, Left 4 Dead 2
3
   
Award
Favorite
Favorited
Unfavorite
NOTICE
Valve, Skial, Uncletopia DISABLE SPRAYS ON THEIR SERVERS.

Sprays will NOT work if the server has SV_PURE 2 or SV_ALLOWUPLOAD 0.

This guide will NOT help if the server disables sprays. You have to play on another server.

HOWEVER, if you and a friend use your sprays on a server with sprays enabled, AND you both have tf_delete_temp_files 0 set, you will be able to see eachother's sprays on any server as long as it doesn't have sv_pure 2.

If you see a Windows Defender popup from a spray in the TF2 folder, it's a false positive, not a real threat.

Also, be aware that servers can log your spray as soon as you connect, even if you don't press the spray key (T) in-game.
Spray Troubleshooting
The first thing you should do is disconnect from any server and close your game. Then follow these steps in order.

Delete spray folders (all sprays location)
Delete these folders to clear all spray cache.
This will clear any sprays you have already imported, resetting the list back to default, so backup your sprays if you want to keep them.
If you are using the trick to see your friend's spray on any server, you will need to do it again after deleting these folders.
C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\materials\vgui\logos C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\materials\temp C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\download\user_custom
Here are the base paths for some other games (look for the materials\vgui\logos folder):
C:\Program Files (x86)\Steam\steamapps\sourcemods\pf2 C:\Program Files (x86)\Steam\steamapps\sourcemods\open_fortress C:\Program Files (x86)\Steam\steamapps\sourcemods\tf2classic
LINUX USERS: These folders will be somewhere in your home folder, either under ~/.local/share/Steam or ~/.steam

Add the spray fix commands (autoexec.cfg)
These commands will enable sprays if a config changed them.
cl_allowdownload 1 cl_allowupload 1 cl_customsounds 1 cl_playerspraydisable 0 cl_spraydisable 0 mp_decals 200 r_decals 200 r_spray_lifetime 2 tf_delete_temp_files 0
Put the above commands at the BOTTOM of autoexec.cfg in the following folder.
You can easily create one by doing a right click > New > New Text Document and renaming it to autoexec.cfg (without the .txt)
C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\cfg\
IF YOU USE MASTERCOMFIG, IT WILL BE THIS PATH INSTEAD. Create the folder if it doesn't exist.
C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\cfg\overrides\
Turn on file extensions to make sure it is a CFG file and not a TXT file. You can edit it with any text editor.

If you have any configs inside the tf\custom folder, check for an autoexec.cfg in those as well.

MASTERCOMFIG USERS: If you have a cfg\user\modules.cfg file, you will want to add a line containing "sprays=on" or "sprays=keep" without quotes to that file.



Final step - Create and Import your spray
To create animated sprays, fading sprays, and sprays in general, I highly recommend using the online converter[rafradek.github.io] as it does everything for you. It's all handled in your browser and no images are sent to any server.

You can also make sprays offline on your computer with Spraymaker5000[www.teamfortress.tv] or VTFEdit. To download pre-made sprays, you can browse sprays on GameBanana[gamebanana.com].

Do not copy the spray files to the folders manually. There is an easier, automated way that works every time.
Instructions for importing a spray into the game:
  1. Give the spray a unique filename.
    Don't name it "spray". This name is reserved for sprays downloaded from the Steam Cloud.
    You don't need a VMT text file. The game will create one for you when we import it.
  2. If it's a VTF file, make sure the file size is under 512kb.
    The spray will still import if it's larger than this size, but it will not show up in-game. You'll have to follow the first part of the guide to delete the spray(s) and restart your game to try again.
  3. Go to Options > Multiplayer > Import Spray and find the location of your JPG or VTF file.
    Directly importing GIF or PNG will not work, use the converter instead.
  4. Select your spray name from the dropdown list, then click "OK" to save changes.
  5. If you are currently in a server, you must rejoin it to use your new spray.




Optional - Install a sound spray
With cl_customsounds 1 enabled, copy a file named jingle.wav to the following folder:
C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\sound\player\
Then bind a key to "impulse 202" to play a sound clip to nearby players. They must have cl_customsounds 1 set to hear it.
The jingle.wav file must be 44100hz sample rate and under 512kb. It supports facial flexes if you use the Faceposer tool.

Optional - Edit an already imported spray
If you make a mistake with your spray, there is a way to change it without deleting it. Go to this directory to see your imported sprays:
C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\materials\vgui\logos\
Copy and paste the VTF file over the old one, making sure the names match. Overwrite the file.
Then you can run the following commands in console from the main menu (while disconnected):
sv_cheats 1 mat_reloadallmaterials
And rejoin the server.
This will change the CRC32 hash of your spray file and force players to redownload the updated version of your spray, once you rejoin.
86 Comments
Glorified Toaster with Legs 26 Aug, 2024 @ 2:31pm 
typical jack? more like typical lack of mistakes
Typical Jack 21 Aug, 2024 @ 11:45am 
valve be like "time to add a mechanic and disable it in all of our servers"
BG| Spiderman360-Barney Stinson 17 Mar, 2024 @ 5:09pm 
Thank You!!!
Limitless 1 Mar, 2024 @ 6:38pm 
damn i appreciate it, went mad looking for a fix and this guide helped me out a lot, was stuck with a spray i imported back in 2016
Logan Prime 23 Dec, 2023 @ 9:08pm 
"Thanks, mate. ‘Preciate it."
Soda 5 Oct, 2023 @ 2:16pm 
So i have a spray and i move it to local files but when i go to tf2 the spray image doesn't appear
although i have yet to read the guide and try it
Джек Подрочитель 19 Jul, 2023 @ 5:58am 
bro, thx
ุุ 12 Mar, 2023 @ 10:59am 
you should try installing windows if youre on linux and confused.
Democratic Little Femboy 21 Feb, 2023 @ 1:26pm 
I need help I'm confused and use linux
M4N 25 Jan, 2023 @ 3:42am 
gaming