Tribes: Vengeance

From LANCommander
Developers
Irrational Games
Publishers
VU Games
Release Date
Windows: October 5, 2004
Genres
SportShooter
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play TV_CD_DVD.exe {InstallDir}/Program/Bin True

Install Script

# Bounds are accessible by $Display.Bounds.Width and $Display.Bounds.Height
$Display = Get-PrimaryDisplay

# Use regex to replace text within a file. Quotes are escaped by double quoting ("")
Write-ReplaceContentInFile -Pattern '^FullscreenViewportX=(.+)' -Substitution "FullscreenViewportX=$($Display.Bounds.Width)" -FilePath "$InstallDirectory\System\tribesv.ini"
Write-ReplaceContentInFile -Pattern '^FullscreenViewportY=(.+)' -Substitution "FullscreenViewportY=$($Display.Bounds.Height)" -FilePath "$InstallDirectory\System\tribesv.ini"

# Might need to set FOV
$FOV = 90

if (($Display.Bounds.Width / $Display.Bounds.Height) -eq (16 / 9)) {
    $FOV = 106
} elseif (($Display.Bounds.Width / $Display.Bounds.Height) -eq (16 / 10)) {
    $FOV = 100
}

Write-ReplaceContentInFile -Pattern '^DesiredFOV=(.+)' -Substitution "DesiredFOV=$FOV" -FilePath "$InstallDirectory\System\User.ini"
Write-ReplaceContentInFile -Pattern '^DefaultFOV=(.+)' -Substitution "DefaultFOV=$FOV" -FilePath "$InstallDirectory\System\User.ini"

Name Change Script

Copy-Item -Path "$InstallDirectory\Content\System\Profiles\Default.ini" -Destination "$InstallDirectory\Content\System\Profiles\PlayerProfile1.ini"

Write-ReplaceContentInFile -Pattern '^Name=(.+)' -Substitution "Name=$NewPlayerAlias`r`nPlayerName=$NewPlayerAlias" -FilePath "$InstallDirectory\Content\System\Profiles\PlayerProfile1.ini"