Day of Defeat: Source: Difference between revisions

From LANCommander
No edit summary
No edit summary
 
Line 5: Line 5:
{{Game.InfoBox.Developer|Valve}}
{{Game.InfoBox.Developer|Valve}}
|Publishers =
|Publishers =
{{Game.InfoBox.Developer|Valve}}
{{Game.InfoBox.Publisher|Valve}}
|Release Date =
|Release Date =
{{Game.InfoBox.ReleaseDate|Windows|September 26, 2005}}
{{Game.InfoBox.ReleaseDate|Windows|September 26, 2005}}
Line 14: Line 14:
{{Game.ActionBox
{{Game.ActionBox
|Actions =  
|Actions =  
{{Game.ActionBox.Row|Name = Play|Path = {InstallDir}\dod.exe|Arguments = |WorkingDirectory = |Primary = True}}
{{Game.ActionBox.Row|Name = Play Day of Defeat: Source|Path = {InstallDir}\hl2.exe|Arguments = -game dod|WorkingDirectory = |Primary = True}}
}}
}}



Latest revision as of 00:41, 22 February 2024

Developers
Valve
Publishers
Valve
Release Date
Windows: September 26, 2005
Genres
Shooter
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play Day of Defeat: Source {InstallDir}\hl2.exe -game dod True

Install Script

$Display = Get-PrimaryDisplay

New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "AutoConfigVersion" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "ScreenWidth" -Value $Display.Bounds.Width -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "ScreenHeight" -Value $Display.Bounds.Height -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "ScreenWindowed" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "ScreenMSAA" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "ScreenMSAAQuality" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "MotionBlur" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "ShadowDepthTexture" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "VRModeAdapter" -Value -1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "ScreenMonitorGamma" -Value "2.2" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "mat_forceaniso" -Value 2 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "mat_picmip" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "mat_trilinear" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "mat_vsync" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "mat_forcehardwaresync" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "mat_parallaxmap" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "mat_reducefillrate" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "r_shadowrendertotexture" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "r_rootlod" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "r_waterforceexpensive" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "r_waterforcereflectentities" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "mat_antialias" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "mat_aaquality" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "mat_specular" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "mat_bumpmap" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "mat_hdr_level" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "mat_colorcorrection" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "VendorID" -Value 32902 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "DeviceID" -Value 6422 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "DXLevel_V1" -Value 90 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "User Token 2" -Value """ -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod\Settings" -Name "User Token 3" -Value """ -Force

Uninstall Script

remove-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Valve\Source\dod" -Force -recurse

Name Change Script

Write-ReplaceContentInFile -Pattern 'PlayerName=(.+)' -Substitution "PlayerName=$NewPlayerAlias" -FilePath "$InstallDirectory\rev.ini"
Write-ReplaceContentInFile -Pattern 'ClanTag=(.+)' -Substitution "ClanTag=" -FilePath "$InstallDirectory\rev.ini"
Write-ReplaceContentInFile -Pattern '^name "(.+)"' -Substitution "name ""$NewPlayerAlias""" -FilePath "$InstallDirectory\cfg\config.cfg"