Left 4 Dead: Difference between revisions

From LANCommander
(Created new page for Left 4 Dead)
 
No edit summary
 
Line 14: Line 14:
{{Game.ActionBox
{{Game.ActionBox
|Actions =  
|Actions =  
{{Game.ActionBox.Row|Name = Play|Path = left4dead.exe|Arguments = -novid|WorkingDirectory = {InstallDir}|Primary = True}}
{{Game.ActionBox.Row|Name = Play Left 4 Dead|Path = left4dead.exe|Arguments = -novid|WorkingDirectory = {InstallDir}|Primary = True}}
}}
}}


Line 27: Line 27:


Write-ReplaceContentInFile -Pattern '"setting.defaultres"\s+"(.+)"' -Substitution """setting.defaultres"" ""$($Display.Bounds.Width)""" -FilePath "$InstallDirectory\left4dead\cfg\video.txt"
Write-ReplaceContentInFile -Pattern '"setting.defaultres"\s+"(.+)"' -Substitution """setting.defaultres"" ""$($Display.Bounds.Width)""" -FilePath "$InstallDirectory\left4dead\cfg\video.txt"
Write-ReplaceContentInFile -Pattern '"setting.defaultresheight"\s+"(.+)"' -Substitution """setting.defaultresheight"" ""$($Display.Bounds.Width)""" -FilePath "$InstallDirectory\left4dead\cfg\video.txt"
Write-ReplaceContentInFile -Pattern '"setting.defaultresheight"\s+"(.+)"' -Substitution """setting.defaultresheight"" ""$($Display.Bounds.Height)""" -FilePath "$InstallDirectory\left4dead\cfg\video.txt"
</syntaxhighlight>
</syntaxhighlight>
}}
}}
Line 38: Line 38:
<syntaxhighlight lang="powershell" line>
<syntaxhighlight lang="powershell" line>
Write-ReplaceContentInFile -Pattern '^name "(.+)"' -Substitution "name ""$NewPlayerAlias""" -FilePath "$InstallDirectory\left4dead\cfg\config.cfg"
Write-ReplaceContentInFile -Pattern '^name "(.+)"' -Substitution "name ""$NewPlayerAlias""" -FilePath "$InstallDirectory\left4dead\cfg\config.cfg"
$NewPlayerAlias | Out-File -FilePath "$InstallDirectory\bin\steam_settings\force_account_name.txt"
</syntaxhighlight>
</syntaxhighlight>
}}
}}

Latest revision as of 00:45, 22 February 2024

Developers
Turtle Rock StudiosCertain AffinityValve
Publishers
Valve
Release Date
Windows: November 17, 2008
Genres
Shooter
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play Left 4 Dead left4dead.exe -novid {InstallDir} True

Install Script

$Display = Get-PrimaryDisplay

Write-ReplaceContentInFile -Pattern '"setting.defaultres"\s+"(.+)"' -Substitution """setting.defaultres"" ""$($Display.Bounds.Width)""" -FilePath "$InstallDirectory\left4dead\cfg\video.txt"
Write-ReplaceContentInFile -Pattern '"setting.defaultresheight"\s+"(.+)"' -Substitution """setting.defaultresheight"" ""$($Display.Bounds.Height)""" -FilePath "$InstallDirectory\left4dead\cfg\video.txt"

Name Change Script

Write-ReplaceContentInFile -Pattern '^name "(.+)"' -Substitution "name ""$NewPlayerAlias""" -FilePath "$InstallDirectory\left4dead\cfg\config.cfg"
$NewPlayerAlias | Out-File -FilePath "$InstallDirectory\bin\steam_settings\force_account_name.txt"