Difference between revisions of "Engine:Source"
From PCGamingWiki, the wiki about fixing PC games
Bens Dream (talk | contribs) m (→Console Commands: Grammar/formatting fix) |
|||
(68 intermediate revisions by 22 users not shown) | |||
Line 1: | Line 1: | ||
− | Source | + | {{stub}} |
+ | {{Infobox engine | ||
+ | |cover = Source logo.svg | ||
+ | |developer = Valve Corporation | ||
+ | |first release = October 7, 2004 | ||
+ | |predecessor = GoldSrc | ||
+ | |successor = Source 2 | ||
+ | |wikipedia = Source (game engine) | ||
+ | |listgames = false | ||
+ | }} | ||
+ | ==Other information== | ||
+ | ===Source Dedicated Server=== | ||
+ | <!--- DO NOT CHANGE THE TITLE OF THIS SECTION - Would break a lot of wikilinks ----> | ||
+ | {{++}} Works with multiple Source-based games. | ||
+ | {{ii}} See the [https://developer.valvesoftware.com/wiki/Source_Dedicated_Server "Source Dedicated Server"], [https://developer.valvesoftware.com/wiki/SteamCMD "SteamCMD"] (for most Source games), or [https://developer.valvesoftware.com/wiki/HLDSUpdateTool "HLDUSUpdateTool"] (for games which haven't received updates for a while) articles on the Valve Developer Community Wiki for more information. | ||
+ | {{ii}} See also the [https://support.steampowered.com/kb_article.php?ref=7017-UJBN-6785 the Steam Support article] for setting up a Source Dedicated Server through Steam and the article on [https://support.steampowered.com/kb_article.php?ref=6758-TCMF-2234 setting one up stand-alone]. | ||
− | == | + | ===[[Glossary:Command line arguments|Command line arguments]]=== |
− | + | {{++}} Can be used to increase performance in Source-based games and fix various problems. | |
− | + | {{++}} Longer launch options can be stored in {{file|autoexec.cfg}} (without the <code>-</code> prefix and with every command on its own line) in the game's config folder for easier readability and editing. Starting the game with the <code>-autoexec</code> command is required. | |
− | + | {{ii}} See the [https://developer.valvesoftware.com/wiki/Command_Line_Options Command Line Options] article on the Valve Developer Community Wiki for more information. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | == | + | ==Issues fixed== |
− | Source games | + | ===High frame rate=== |
+ | {{ii}} Many Source engine games have a 300 FPS cap by default. Users with a strong PC and high refresh rate displays may want to change or disable this cap. | ||
− | + | {{Fixbox|description=Instructions|fix= | |
+ | # Make sure the developer console is enabled. Since many Source engine games usually have the same UI, it can be located in the game's Options > Keyboard > Advanced > Enable developer console. | ||
+ | # Press {{key|`}} and type <code>fps_max</code> up to <code>1000</code>; use <code>0</code> for uncapped frame rate. | ||
+ | }} | ||
− | to the game's launch options | + | ===Game launches in an unsupported or unusable resolution=== |
+ | <!-- Is there a template when writing launch options? --> | ||
+ | <!-- Are search engines indexing these comments? --> | ||
+ | {{Fixbox|description=Add your resolution to the game's launch options|ref={{cn|date=July 2016}}|fix= | ||
+ | # Navigate through your Steam library and open the game's properties. | ||
+ | # Add <code>-width '''X''' -height '''Y'''</code> to the game's launch options. Where '''X''' is your horizontal resolution and '''Y''' your vertical resolution. | ||
+ | # Press <code>OK</code>. | ||
+ | }} | ||
− | ==Console | + | ===Console doesn't open=== |
− | + | {{ii}} Make sure developer console is enabled. This can usually be toggled in the Advanced Settings under Keyboard/Controls. | |
+ | {{--}} You can't use the button above {{key|tab}} and to the left of {{key|1}} to open the console, this is because the game only recognizes {{key|~}}, which is not present on non-US keyboard layouts. There are two possible solutions: | ||
− | == | + | {{Fixbox|description=Bind another key|ref={{cn|date=July 2016}}|fix= |
− | + | # Navigate through your Steam library and open the game's properties. | |
+ | # Add <code>-console</code> to the game's launch options. Start the game. | ||
+ | # Type in the console <code>bind x toggleconsole</code> (where <code>x</code> is the button you want permanently assign to this). | ||
+ | '''Notes''' | ||
+ | {{ii}} You can then remove the <code>-console</code> switch. | ||
+ | }} | ||
− | == | + | {{Fixbox|description=Bind console key with autoexec|ref={{cn|date=July 2016}}|fix= |
− | + | # Navigate to the configuration file location. | |
− | + | # Create or open your {{file|autoexec.cfg}} file with your text file editor of choice. | |
− | + | # Make a new line and write <code>bind x toggleconsole</code> where <code>x</code> is the button you'll press to open up the console. | |
+ | # Save and exit the text editor. | ||
− | [[ | + | '''Notes''' |
+ | {{ii}} You might need add <code>exec autoexec</code> to your launch parameters if it doesn't get executed automatically by the game. | ||
+ | }} | ||
+ | |||
+ | {{Fixbox|description=Change keyboard layout|ref={{cn|date=July 2016}}|fix= | ||
+ | # Open '''Language and Country''' settings in Windows's the control panel. | ||
+ | # Select '''Change keyboard''' into '''Language and Keyboard''' tab. | ||
+ | # Add English (US) keyboard to the list of the available. | ||
+ | # Make sure you are using it and save. | ||
+ | }} | ||
+ | |||
+ | ===Some maps are way too dark on Intel HD Graphics GPUs=== | ||
+ | Games and maps using ambient occlusion can be very dark on Intel HD Graphics. | ||
+ | [https://github.com/ValveSoftware/Source-1-Games/issues/2523 Upstream issue here.] | ||
+ | |||
+ | {{Fixbox|description=Modify configuration file|fix= | ||
+ | |||
+ | If the console <code>mat_tonemapping_occlusion_use_stencil</code> is available (e.g. in [[Garry's Mod]]): | ||
+ | |||
+ | # Set <code>mat_tonemapping_occlusion_use_stencil</code> to <code>1</code> | ||
+ | |||
+ | '''Notes''' | ||
+ | {{ii}} If the setting does not save, add it to the game's {{file|autoexec.cfg}} | ||
+ | |||
+ | If the console variable is not available (e.g. in [[CS:GO]] or [[Left 4 Dead 2]]): | ||
+ | |||
+ | # Edit {{file|{{P|steam}}\userdata\{{P|uid}}\<appid>\local\cfg\video.txt}} | ||
+ | # Add <code>"setting.mat_tonemapping_occlusion_use_stencil" "1"</code> | ||
+ | # Save and set the file to read-only. | ||
+ | |||
+ | '''Notes''' | ||
+ | {{ii}} Not setting the file permissions to read-only will revert the change on the next game launch. | ||
+ | }} | ||
+ | |||
+ | ==="High" shadow detail option is missing=== | ||
+ | {{ii}} The setting is only shown if Shadow Depth Textures are supported.<ref>As can be seen in file <code>gameui/OptionsSubVideo.cpp</code> from leaked source code.</ref> However the Source Engine has always only checked this feature against a hardcoded selection of known GPU vendors.<ref>See <code>materialsystem/shaderapidx9/shaderdevicedx8.cpp</code>.</ref> This notably excluded everything from Intel in the past.<ref>[https://web.archive.org/web/20170531002547/http://forums.steampowered.com/forums/showthread.php?t=2353150 Source games without High Shadow Detail option - Steam Users' Forums] (retrieved)</ref><ref>[https://store.steampowered.com/oldnews/7495 News - Counter-Strike: Global Offensive Beta Update Released]</ref> | ||
+ | {{Fixbox|description=Launch the game with the <code>-force_vendor_id 0x10DE -force_device_id 0xFFFF</code> [[Glossary:Command line arguments|command line arguments]]|ref=<ref>[https://developer.valvesoftware.com/wiki/Env_projectedtexture#Caveats_and_Fixes env_projectedtexture - Valve Developer Community]</ref>|fix= | ||
+ | {{ii}} These parameters were not supported before some 2012~2013 engine update.{{note|[[Counter-Strike: Global Offensive]] added it in version 1.0.0.62, but release day [[Dota 2]] still lacked it one year later. Conversely all the first party titles updated to the Source 2013 branch should be good (older licensed engine games or mods might not have been so lucky though, including [[Left 4 Dead]]).}} | ||
+ | }} | ||
+ | {{Fixbox|description=Fake your GPU vendor ID in the system properties|ref=<ref>[https://grimore.org/windows/spoof_hardware_identifiers windows:spoof_hardware_identifiers [Wizardry and Steamworks<nowiki>]</nowiki>]</ref>|fix= | ||
+ | # Open [[regedit]]. | ||
+ | # Navigate to {{registry|{{p|hklm}}\SYSTEM\CurrentControlSet\Enum}} | ||
+ | # Open the key of the interested GPU (use the <code>wmic PATH Win32_VideoController GET PNPDeviceID</code> command for a clue) | ||
+ | # Take its ownership to the current user (Permissions > Advanced > Owner) | ||
+ | # Make sure at least a group between ''Administrators'', ''Users'', ''Everyone'' or ''Owner Rights'' has Full Control permissions. | ||
+ | # Add the spoofed details at the top of the <code>HardwareID</code> string (e.g. <code>PCI\VEN_10DE&DEV_FFFF</code>) | ||
+ | '''Notes''' | ||
+ | {{ii}} This doesn't work from Windows 8 onwards. | ||
+ | {{--}} The last step has to be repeated after every reboot (though a {{file|.reg}} file could be created to expedite the changes)}} | ||
+ | {{Fixbox|description=Spoof your GPU vendor ID through custom dll|fix= | ||
+ | # Download the [https://www.nexusmods.com/fallout3/mods/17209 Intel bypass pack] or [https://www.nexusmods.com/newvegas/mods/34970 Alternate D3D9 fix for ATI] | ||
+ | # Extract {{file|d3d9.dll}} into {{folder|{{p|game}}\bin\}}. | ||
+ | '''Notes''' | ||
+ | {{ii}} It's not advised to play in VAC protected servers with this solution. | ||
+ | }} | ||
+ | |||
+ | ===Enabling 7.1 Output (Windows Vista and later)=== | ||
+ | {{ii}} Even when 7.1 speaker option is selected, game may still output to only 5 speakers, leaving the side surround speakers void of sound. | ||
+ | {{ii}} This issue is typically present in Source engine games that use Miles Sound System. | ||
+ | |||
+ | {{Fixbox|description=Enable 7.1 Speaker Output In Source Engine Games|ref={{cn|date=July 2016}}|fix= | ||
+ | # Refer to [[Glossary:Sound card#DirectSound hardware path|Restoring Legacy Audio Effects (DirectSound 3D)]] and enable DirectSound 3D based on the audio device you have. | ||
+ | # Run the game and open the console ({{key|~}}). | ||
+ | # In the console, type: <code>snd_legacy_surround 1</code> | ||
+ | # Restart the game. | ||
+ | # Select 7.1 speaker output from the game's options. | ||
+ | |||
+ | '''Notes''' | ||
+ | {{ii}} If only up to 5.1 is available, select 5.1 and the game will discretely output to 7 speakers. | ||
+ | {{ii}} If using Creative's ALchemy, Source engine games typically need Buffers set to 5 and Duration set to 10. | ||
+ | }} | ||
+ | |||
+ | ==Games== | ||
+ | {{Infobox engine/query}} | ||
+ | |||
+ | == External links == | ||
+ | # [https://developer.valvesoftware.com/wiki/Source Source] | ||
+ | |||
+ | {{References}} |
Latest revision as of 20:39, 9 November 2023
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.
Developers | |
---|---|
Valve Corporation | |
First release date | |
October 7, 2004 | |
Predecessor | |
GoldSrc | |
Successor | |
Source 2 | |
Other information
Source Dedicated Server
- Works with multiple Source-based games.
- See the "Source Dedicated Server", "SteamCMD" (for most Source games), or "HLDUSUpdateTool" (for games which haven't received updates for a while) articles on the Valve Developer Community Wiki for more information.
- See also the the Steam Support article for setting up a Source Dedicated Server through Steam and the article on setting one up stand-alone.
Command line arguments
- Can be used to increase performance in Source-based games and fix various problems.
- Longer launch options can be stored in
autoexec.cfg
(without the-
prefix and with every command on its own line) in the game's config folder for easier readability and editing. Starting the game with the-autoexec
command is required. - See the Command Line Options article on the Valve Developer Community Wiki for more information.
Issues fixed
High frame rate
- Many Source engine games have a 300 FPS cap by default. Users with a strong PC and high refresh rate displays may want to change or disable this cap.
Instructions |
---|
|
Game launches in an unsupported or unusable resolution
Add your resolution to the game's launch options[citation needed] |
---|
|
Console doesn't open
- Make sure developer console is enabled. This can usually be toggled in the Advanced Settings under Keyboard/Controls.
- You can't use the button above Tab ↹ and to the left of 1 to open the console, this is because the game only recognizes ~, which is not present on non-US keyboard layouts. There are two possible solutions:
Bind another key[citation needed] |
---|
Notes
|
Bind console key with autoexec[citation needed] |
---|
Notes
|
Change keyboard layout[citation needed] |
---|
|
Some maps are way too dark on Intel HD Graphics GPUs
Games and maps using ambient occlusion can be very dark on Intel HD Graphics. Upstream issue here.
Modify configuration file |
---|
If the console
Notes
If the console variable is not available (e.g. in CS:GO or Left 4 Dead 2):
Notes
|
"High" shadow detail option is missing
- The setting is only shown if Shadow Depth Textures are supported.[1] However the Source Engine has always only checked this feature against a hardcoded selection of known GPU vendors.[2] This notably excluded everything from Intel in the past.[3][4]
Launch the game with the -force_vendor_id 0x10DE -force_device_id 0xFFFF command line arguments[5]
|
---|
|
Fake your GPU vendor ID in the system properties[6] |
---|
Notes
|
Spoof your GPU vendor ID through custom dll |
---|
Notes
|
Enabling 7.1 Output (Windows Vista and later)
- Even when 7.1 speaker option is selected, game may still output to only 5 speakers, leaving the side surround speakers void of sound.
- This issue is typically present in Source engine games that use Miles Sound System.
Enable 7.1 Speaker Output In Source Engine Games[citation needed] |
---|
Notes
|
Games
External links
Notes
- ↑ Counter-Strike: Global Offensive added it in version 1.0.0.62, but release day Dota 2 still lacked it one year later. Conversely all the first party titles updated to the Source 2013 branch should be good (older licensed engine games or mods might not have been so lucky though, including Left 4 Dead).
References
- ↑ As can be seen in file
gameui/OptionsSubVideo.cpp
from leaked source code. - ↑ See
materialsystem/shaderapidx9/shaderdevicedx8.cpp
. - ↑ Source games without High Shadow Detail option - Steam Users' Forums (retrieved)
- ↑ News - Counter-Strike: Global Offensive Beta Update Released
- ↑ env_projectedtexture - Valve Developer Community
- ↑ windows:spoof_hardware_identifiers [Wizardry and Steamworks]