Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Difference between revisions of "Team Fortress 2"

From PCGamingWiki, the wiki about fixing PC games
(removed dangerous -threads option. added the real multithreading option. added snd_async_fullyasync. added cl_showfps . updated dxlevel, netgraph note, vsync note, fov note, auto reload note, hitsound note. added chris fps config link.)
(Added some stuff.)
Line 1: Line 1:
 
<!--TODO: Write lead, add infobox-->
 
<!--TODO: Write lead, add infobox-->
 +
 +
== Solutions ==
 +
<!-- If you know of any additional steps that could be taken, please feel free to add them. -->
 +
A generic way of solving the majority of Team Fortress 2 related problems is as below, proceed down the list if the previous list item fails; or search for your exact problem and find an exact solution.
 +
# Validate the game files.
 +
#: Right click ''Team Fortress 2'' in Steam and select ''Properties''.  Navigate into the ''Local Files' tab and select ''Verify integrity of game cache''.  Steam will then (re)download any missing or corrupt files.
 +
# Delete your Team Fortress 2 user folder
 +
#: TF2's main game files are stored in the ''steamapps'' folder, so you won't need to re-downloading ~10GB.  Navigate to your user folder within <code>'''*steam directory*'''/steamapps/</code> (e.g. <code>'''*steam directory*'''/steamapps/rabscuttle</code>) and delete or rename (to keep a backup) your ''team fortress 2'' folder.  The folder will be automatically re-created when you next launch Team Fortress 2.
 +
# Re-install Steam!
 +
#:  Delete (or move/back up) all of your steam directories content '''excluding''' the ''steamapps'' folder and ''steam.exe''.  Launch ''steam.exe'' and all the relevant Steam files will be re-downloaded.
 +
# Contact Steam Support.
 +
#: Open a new support ticket [https://support.steampowered.com/newticket.php here], and document your problem and your attempted solutions in as much detail as possible.  Steam Support can be slow to respond to tickets, and by providing as much information as you can you negate the need for Support to contact you for more information (and thereby take longer to help solve the problem).
 +
# Re-install Team Fortress 2
 +
#: This is pretty extreme, and it is therefore recommended you try and find a case of your problem happening to somebody else and see how they solved it.  You will usually never need to do this, unless Steam Support themselves are unable to help with your case.
 +
 
== Recommended gameplay tweaks ==
 
== Recommended gameplay tweaks ==
 +
 +
=== Launch parameters ===
 +
:See also: [https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters ''Command-line parameters'' on the Valve Developer Community]
 +
 +
You can launch Team Fortress 2 with launch parameters - these parameters dictating how certain aspects of the game behaves (outside of gameplay).
 +
 +
To add launch parameters:
 +
* Right click ''Team Fortress 2'' within [[Steam]] and select ''Properties''
 +
* Select ''Set Launch Options''
 +
* Add your launch parameters and click ''OK''
 +
* Close the properties window and launch the game with the specified launch parameters.
 +
 +
Launch parameters are typically prefixed with <code>-</code> (dash), however you can also set console commands by providing the console command with a <code>+</code> (plus) prefix.
 +
 +
==== Useful launch parameters ====
 +
{| class="wikitable grid"
 +
! Parameter || Description
 +
|-
 +
| <code>-autoconfig</code> || Restores video and performance settings to default for the current hardware detected. Ignores settings inside any .cfg files until this parameter is removed.
 +
|-
 +
| <code>-32bit</code> || Forces the engine to start in 32-bit mode. Only useful on 64-bit Operating Systems.
 +
|-
 +
| <code>-console</code> || Starts the game with the developer console enabled.
 +
|-
 +
| <code>-dxlevel ''xx''</code> || Forces the game to launch in a specific DirectX version, where <code>''xx''</code> is: 80 (DirectX 8 (buggy, use 81 instead for high performance)), 81 (DirectX 8.1), 90 (DX9 with Shader Model 2), 95 (DX9 with Shader Model 3) and 98 (DX9 on DX10 hardware (SM 4)).
 +
|-
 +
| <code>-noborder -window</code> || Launches the game in a borderless fullscreen window (i.e. very alt-tab friendly).
 +
|-
 +
| -threads <code>''x''</code> || [[Force Multicore Support|Forces multi-core support]], <code>''x''</code> being the amount of threads you want to use (4 is recommended for quadcores).
 +
|-
 +
| <code>-h ''height'' or -height ''height''</code> || Forces the engine to start with resolution set to <code>height</code>.
 +
|-
 +
| <code>-w ''width'' or -width ''width''</code> || Forces the engine to start with resolution set to <code>width</code>.
 +
|}
 +
 +
 
===Console Commands===
 
===Console Commands===
Games running on the source engine can utilize [https://developer.valvesoftware.com/wiki/Console_Command_List Source Engine Console Commands] for various tasks.
+
:See also: [http://wiki.teamfortress.com/wiki/List_of_useful_console_commands ''List of useful console commands'' on the Offical TF2 Wiki]
  
'''Note:''' Commands in this table preceded by a dash are launch options. The ones that aren't can usually be used as a launch option by prepending a plus sign.
+
Games running on the source engine can utilize [https://developer.valvesoftware.com/wiki/Console_Command_List Source Engine Console Commands] for various tasks.  These commands can be saved into <code>'''*steam apps*'''/username/team fortress 2/tf/cfg/autoexec.cfg</code> to be executed when the game launches.
  
 
{| class="wikitable" style="text-align: left;"
 
{| class="wikitable" style="text-align: left;"
 
! scope="col" | Command || Notes
 
! scope="col" | Command || Notes
 
|-
 
|-
| -noborder -window || [[Borderless fullscreen windowed]]
+
| <code>mat_dxlevel ''xx''</code> || Same as -dxlevel (above) but doesn't adjust other settings such as resolution.
 
|-
 
|-
| -dxlevel # || [[Force DirectX version]]. Options are: 80 (DirectX 8 (buggy, use 81 instead for high performance)), 81 (DirectX 8.1), 90 (DX9 with Shader Model 2), 95 (DX9 with Shader Model 3) and 98 (DX9 on DX10 hardware (SM 4)).
+
| <code>net_graph 1</code> || View in-game FPS, ping and more. A higher number (up to 4) shows more advanced information. This can result in a performance loss.
 
|-
 
|-
| mat_dxlevel # || Same as -dxlevel but doesn't adjust other settings such as resolution.
+
| <code>cl_showfps 1</code> || Shows FPS only. 1 is real-time, 2 is averaged over the past second.
 
|-
 
|-
| net_graph 1 || View in-game FPS, ping and more. A higher number (up to 4) shows more advanced information. This can result in a performance loss.
+
| <code>snd_async_fullyasync 1</code> || May help you are experiencing freezes when some sounds that aren't cached are playing. Allows sounds to play when ready if loading it is too slow, instead of freezing the entire game until it is.
 
|-
 
|-
| cl_showfps 1 || Shows FPS only. 1 is real-time, 2 is averaged over the past second.
+
| <code>fps_max 59.9</code> || If you have vsync enabled and your mouse feels sluggish then enter this into the console on the menu to resolve the issue. This setting cannot be changed while connected to a server. It's a better idea to just disable vsync if you don't mind tearing.
 
|-
 
|-
| snd_async_fullyasync 1 || May help you are experiencing freezes when some sounds that aren't cached are playing. Allows sounds to play when ready if loading it is too slow, instead of freezing the entire game until it is.
+
| <code>disconnect;fps_max 59.9;retry</code> || Same as above, if you're connected to a server.
 
|-
 
|-
| fps_max 59.9 || If you have vsync enabled and your mouse feels sluggish then enter this into the console on the menu to resolve the issue. This setting cannot be changed while connected to a server. It's a better idea to just disable vsync if you don't mind tearing.
+
| <code>net_graph 1</code> || [[View In Game FPS & Ping]].
 
|}
 
|}
  
 
===Options===
 
===Options===
 +
 +
 
These are found in each tab listed, in the "Options" section.
 
These are found in each tab listed, in the "Options" section.
  
 
{| class="wikitable" style="text-align: left;"
 
{| class="wikitable" style="text-align: left;"
! scope="col" | Tab || Option || Notes
+
! scope="col" | Tab || Option || Notes
|-
+
|-
| Video - Advanced || Multicore rendering || Will grant a massive performance boost on multicore machines. Always enable unless it's incompatible with your system. If you're working with in-game demos it may cause crashes even though it works when playing.
+
| Video - Advanced || Multicore rendering || Will grant a massive performance boost on multicore machines. Always enable unless it's incompatible with your system. If you're working with in-game demos it may cause crashes even though it works when playing.
 
|}
 
|}
  
Line 67: Line 120:
 
*[http://www.youtube.com/watch?v=D_8ZN3JQ4_M YouTube guide by MafiaGuy76].
 
*[http://www.youtube.com/watch?v=D_8ZN3JQ4_M YouTube guide by MafiaGuy76].
  
<!--This shouldn't be its own subsection.
+
== Notes ==
=== [[Save game cloud sync]] ===
+
* Any settings/configuration changes made in-game will synch with the [[Steam Cloud]] (if Steam Cloud is enabled - it is by default).
The Steam Cloud automatically syncs game configuration files.
+
 
-->
 
 
== See also ==
 
== See also ==
 
*[[Team Fortress Classic]]
 
*[[Team Fortress Classic]]
Line 81: Line 133:
 
*[http://fakkelbrigade.eu/chris/configs/ Chris' FPS Configs for TF2] High performance as well as very high quality (and low performance) configs.
 
*[http://fakkelbrigade.eu/chris/configs/ Chris' FPS Configs for TF2] High performance as well as very high quality (and low performance) configs.
 
*[http://whisper.ausgamers.com/wiki/index.php/Fps_problems Fps problems article on Whisper's Wiki] - a very detailed guide on how to tweak the Source engine and Steam platform, on which TF2 runs.
 
*[http://whisper.ausgamers.com/wiki/index.php/Fps_problems Fps problems article on Whisper's Wiki] - a very detailed guide on how to tweak the Source engine and Steam platform, on which TF2 runs.
 +
 
=== Wikis ===
 
=== Wikis ===
 
* [http://wiki.teamfortress.com Official Team Fortress Wiki] - great resource run by the Team Fortress 2 community, and hosted by Valve.
 
* [http://wiki.teamfortress.com Official Team Fortress Wiki] - great resource run by the Team Fortress 2 community, and hosted by Valve.

Revision as of 22:16, 14 February 2012


Solutions

A generic way of solving the majority of Team Fortress 2 related problems is as below, proceed down the list if the previous list item fails; or search for your exact problem and find an exact solution.

  1. Validate the game files.
    Right click Team Fortress 2 in Steam and select Properties. Navigate into the Local Files' tab and select Verify integrity of game cache. Steam will then (re)download any missing or corrupt files.
  2. Delete your Team Fortress 2 user folder
    TF2's main game files are stored in the steamapps folder, so you won't need to re-downloading ~10GB. Navigate to your user folder within *steam directory*/steamapps/ (e.g. *steam directory*/steamapps/rabscuttle) and delete or rename (to keep a backup) your team fortress 2 folder. The folder will be automatically re-created when you next launch Team Fortress 2.
  3. Re-install Steam!
    Delete (or move/back up) all of your steam directories content excluding the steamapps folder and steam.exe. Launch steam.exe and all the relevant Steam files will be re-downloaded.
  4. Contact Steam Support.
    Open a new support ticket here, and document your problem and your attempted solutions in as much detail as possible. Steam Support can be slow to respond to tickets, and by providing as much information as you can you negate the need for Support to contact you for more information (and thereby take longer to help solve the problem).
  5. Re-install Team Fortress 2
    This is pretty extreme, and it is therefore recommended you try and find a case of your problem happening to somebody else and see how they solved it. You will usually never need to do this, unless Steam Support themselves are unable to help with your case.

Recommended gameplay tweaks

Launch parameters

See also: Command-line parameters on the Valve Developer Community

You can launch Team Fortress 2 with launch parameters - these parameters dictating how certain aspects of the game behaves (outside of gameplay).

To add launch parameters:

  • Right click Team Fortress 2 within Steam and select Properties
  • Select Set Launch Options
  • Add your launch parameters and click OK
  • Close the properties window and launch the game with the specified launch parameters.

Launch parameters are typically prefixed with - (dash), however you can also set console commands by providing the console command with a + (plus) prefix.

Useful launch parameters

Parameter Description
-autoconfig Restores video and performance settings to default for the current hardware detected. Ignores settings inside any .cfg files until this parameter is removed.
-32bit Forces the engine to start in 32-bit mode. Only useful on 64-bit Operating Systems.
-console Starts the game with the developer console enabled.
-dxlevel xx Forces the game to launch in a specific DirectX version, where xx is: 80 (DirectX 8 (buggy, use 81 instead for high performance)), 81 (DirectX 8.1), 90 (DX9 with Shader Model 2), 95 (DX9 with Shader Model 3) and 98 (DX9 on DX10 hardware (SM 4)).
-noborder -window Launches the game in a borderless fullscreen window (i.e. very alt-tab friendly).
-threads x Forces multi-core support, x being the amount of threads you want to use (4 is recommended for quadcores).
-h height or -height height Forces the engine to start with resolution set to height.
-w width or -width width Forces the engine to start with resolution set to width.


Console Commands

See also: List of useful console commands on the Offical TF2 Wiki

Games running on the source engine can utilize Source Engine Console Commands for various tasks. These commands can be saved into *steam apps*/username/team fortress 2/tf/cfg/autoexec.cfg to be executed when the game launches.

Command Notes
mat_dxlevel xx Same as -dxlevel (above) but doesn't adjust other settings such as resolution.
net_graph 1 View in-game FPS, ping and more. A higher number (up to 4) shows more advanced information. This can result in a performance loss.
cl_showfps 1 Shows FPS only. 1 is real-time, 2 is averaged over the past second.
snd_async_fullyasync 1 May help you are experiencing freezes when some sounds that aren't cached are playing. Allows sounds to play when ready if loading it is too slow, instead of freezing the entire game until it is.
fps_max 59.9 If you have vsync enabled and your mouse feels sluggish then enter this into the console on the menu to resolve the issue. This setting cannot be changed while connected to a server. It's a better idea to just disable vsync if you don't mind tearing.
disconnect;fps_max 59.9;retry Same as above, if you're connected to a server.
net_graph 1 View In Game FPS & Ping.

Options

These are found in each tab listed, in the "Options" section.

Tab Option Notes
Video - Advanced Multicore rendering Will grant a massive performance boost on multicore machines. Always enable unless it's incompatible with your system. If you're working with in-game demos it may cause crashes even though it works when playing.

These are found in each tab listed, in the "Advanced..." section.

Tab Option Notes
Keyboard 'Fast weapon switch' This option makes weapon switching not require a left click.
Video 'Field of view' slider Changes the game's FOV to a desired value between 75 and 90. This value will be adjusted depending on your aspect ratio so if set to 90 on a widescreen it will actually end up higher.
Multiplayer 'Automatically reload weapons when you're not firing' Reloads even if gun not empty. All reloads can be aborted by firing while reloading. Potentially problematic for the spy, whose reload animation blocks the screen. Change viewmodel field of view to adjust this.
Multiplayer 'Viewmodel field of view' slider Adjust to change height of the view of your weapon and hands. Values higher than the default may result in some minor graphical bugs since the models are not designed for it.
Multiplayer 'Display damage done as text over your target'
Multiplayer 'Play a hitsound everytime you injure an enemy' Volume can be adjusted by entering the console command "tf_dingaling_volume #", where # is a number between 0 and 1, such as 0.4 for 40% volume. To change the pitch depending on how much damage was dealt, adjust tf_dingaling_pitchmindmg and tf_dingaling_pitchmaxdmg. The hitsound itself can be replaced by a custom sound by installing it as \tf\sound\ui\hitsound.wav in your TF2 directory.
Multiplayer 'MEDIC: Medigun continues healing without holding down fire button'
Multiplayer 'MEDIC: Auto-call Health percentage' Adjust to HP percentage level of when you would like teammates to automatically display a red cross on screen for healing.

Low FPS fix

Anti-virus software can interfere with a file in TF2's folder, which gets updated constantly during gameplay.

  1. Open anti-virus program.
  2. Select settings > exceptions/exclusions.
  3. Add the following folder to the scan exceptions:
%ProgramFiles%\Steam\appcache\stats\

Notes

  • Any settings/configuration changes made in-game will synch with the Steam Cloud (if Steam Cloud is enabled - it is by default).

See also

External links

Team Fortress 2 on the Steam Store

Tweaks

Wikis

This page is a stub: it lacks content and/or basic article components. You can help to expand this page by adding an image or additional information.