Tribes: Vengeance

From LANCommander
Revision as of 01:39, 1 August 2023 by DoctorDalek (talk | contribs) (Created page with "Category:Games {{Game.InfoBox |Cover = cover.jpg |Developers = {{Game.InfoBox.Developer|Irrational Games}} |Publishers = {{Game.InfoBox.Publisher|VU Games}} |Release Date = {{Game.InfoBox.ReleaseDate|Windows|October 5, 2004}} |Genres = {{Game.InfoBox.Genre|Sport}} {{Game.InfoBox.Genre|Shooter}} | PCGamingWiki = Tribes:_Vengeance }} {{Game.ActionBox |Actions = {{Game.ActionBox.Row|Name = Play|Path = TV_CD_DVD.exe|Arguments = |WorkingDirectory = {InstallDir}/Program/...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Developers
Irrational Games
Publishers
VU Games
Release Date
Windows: October 5, 2004
Genres
Sport

Shooter

View at PCGamingWiki

Actions

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

Name Change Script

$NewName = $args[0]
$InstallDir = $PSScriptRoot

function Write-ReplaceContentInFile([string]$Regex, [string]$Replacement, [string]$FilePath)
{
    $content = (Get-Content $FilePath) -replace $Regex, $Replacement
    [IO.File]::WriteAllLines($FilePath, $content)
}

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

Write-ReplaceContentInFile -Regex '^Name=(.+)' -Replacement "Name=$NewName`r`nPlayerName=$NewName" -FilePath "$InstallDir\Content\System\Profiles\PlayerProfile1.ini"