Difference between revisions of "Engine:Source"
From PCGamingWiki, the wiki about fixing PC games
(14 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{stub}} | ||
{{Infobox engine | {{Infobox engine | ||
− | |cover=Source logo.svg | + | |cover = Source logo.svg |
− | |developer=Valve Corporation | + | |developer = Valve Corporation |
− | |first release= | + | |first release = October 7, 2004 |
− | |predecessor=GoldSrc | + | |predecessor = GoldSrc |
− | |successor=Source 2 | + | |successor = Source 2 |
− | |wikipedia=Source (game engine) | + | |wikipedia = Source (game engine) |
+ | |listgames = false | ||
}} | }} | ||
==Other information== | ==Other information== | ||
Line 16: | Line 18: | ||
===[[Glossary:Command line arguments|Command line arguments]]=== | ===[[Glossary:Command line arguments|Command line arguments]]=== | ||
{{++}} Can be used to increase performance in Source-based games and fix various problems. | {{++}} Can be used to increase performance in Source-based games and fix various problems. | ||
− | {{++}} Longer launch options can be stored in | + | {{++}} 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. | {{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== | ==Issues fixed== | ||
+ | ===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. | ||
+ | }} | ||
+ | |||
===Game launches in an unsupported or unusable resolution=== | ===Game launches in an unsupported or unusable resolution=== | ||
<!-- Is there a template when writing launch options? --> | <!-- Is there a template when writing launch options? --> | ||
Line 36: | Line 46: | ||
# Navigate through your Steam library and open the game's properties. | # Navigate through your Steam library and open the game's properties. | ||
# Add <code>-console</code> to the game's launch options. Start the game. | # Add <code>-console</code> to the game's launch options. Start the game. | ||
− | # Type in the console <code>bind | + | # Type in the console <code>bind x toggleconsole</code> (where <code>x</code> is the button you want permanently assign to this). |
'''Notes''' | '''Notes''' | ||
Line 44: | Line 54: | ||
{{Fixbox|description=Bind console key with autoexec|ref={{cn|date=July 2016}}|fix= | {{Fixbox|description=Bind console key with autoexec|ref={{cn|date=July 2016}}|fix= | ||
# Navigate to the configuration file location. | # Navigate to the configuration file location. | ||
− | # Create or open your | + | # Create or open your {{file|autoexec.cfg}} file with your text file editor of choice. |
− | # Make a new line and write <code>bind | + | # 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. | # Save and exit the text editor. | ||
'''Notes''' | '''Notes''' | ||
− | {{ii}} You might need add <code>exec autoexec</code> to your launch parameters if it doesn't get executed | + | {{ii}} You might need add <code>exec autoexec</code> to your launch parameters if it doesn't get executed automatically by the game. |
}} | }} | ||
Line 57: | Line 67: | ||
# Add English (US) keyboard to the list of the available. | # Add English (US) keyboard to the list of the available. | ||
# Make sure you are using it and save. | # Make sure you are using it and save. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
Line 78: | Line 80: | ||
'''Notes''' | '''Notes''' | ||
− | {{ii}} If the setting does not save, add it to the | + | {{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]]): | If the console variable is not available (e.g. in [[CS:GO]] or [[Left 4 Dead 2]]): | ||
− | # Edit | + | # Edit {{file|{{P|steam}}\userdata\{{P|uid}}\<appid>\local\cfg\video.txt}} |
# Add <code>"setting.mat_tonemapping_occlusion_use_stencil" "1"</code> | # Add <code>"setting.mat_tonemapping_occlusion_use_stencil" "1"</code> | ||
# Save and set the file to read-only. | # Save and set the file to read-only. | ||
Line 88: | Line 90: | ||
'''Notes''' | '''Notes''' | ||
{{ii}} Not setting the file permissions to read-only will revert the change on the next game launch. | {{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. | ||
}} | }} | ||
Line 105: | Line 129: | ||
{{ii}} If using Creative's ALchemy, Source engine games typically need Buffers set to 5 and Duration set to 10. | {{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}} | {{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]