King Arthur's Gold

From LANCommander
Developers
Transhuman Design
Publishers
Transhuman Design
Release Date
Windows: November 5, 2013
Genres
IndiePlatformStrategyTactical
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play KAG.exe nolauncher {InstallDir} True
Run Launcher KAG.exe {InstallDir} False

Install Script

$Display = Get-PrimaryDisplay

Write-ReplaceContentInFile -Pattern '^v_vsync = (\d+)' -Substitution "v_vsync 0" -FilePath "$InstallDirectory\autoconfig.cfg"
Write-ReplaceContentInFile -Pattern '^sv_register = (\d+)' -Substitution "sv_register 0" -FilePath "$InstallDirectory\autoconfig.cfg"
Write-ReplaceContentInFile -Pattern '^sv_register = (\d+)' -Substitution "sv_register 0" -FilePath "$InstallDirectory\autoconfig.cfg"
Write-ReplaceContentInFile -Pattern '^Fullscreen=(\d+)' -Substitution "Fullscreen=1" -FilePath "$InstallDirectory\startup_config.cfg"
Write-ReplaceContentInFile -Pattern '^Window.Height=(\d+)' -Substitution "Window.Height=$($Display.Bounds.Height)" -FilePath "$InstallDirectory\startup_config.cfg"
Write-ReplaceContentInFile -Pattern '^Window.Width=(\d+)' -Substitution "Window.Width=$($Display.Bounds.Width)" -FilePath "$InstallDirectory\startup_config.cfg"

Name Change Script

Write-ReplaceContentInFile -Pattern '^cl_name = (.+)' -Substitution "cl_name = $NewPlayerAlias" -FilePath "$InstallDirectory\autoconfig.cfg"