Jagged Alliance 2
Developers | |
---|---|
Sir-Tech Canada | |
Publishers | |
TalonSoft Titan Computer | |
Release Date | |
Windows: July 23, 1999 | |
Genres | |
Adventure
Turn-based strategy (TBS) Strategy Role-playing (RPG) Tactical | |
View at PCGamingWiki |
Actions
Name | Path | Arguments | Working Directory | Primary |
---|---|---|---|---|
Play | ja2.exe | True |
Name Change Script
$NewName = $args[0]
$InstallDir = $PSScriptRoot
if ($NewName.Length -gt 11) {
$NewName = $NewName.Substring(0, 11)
}
function Write-ReplaceContentInFile([string]$Regex, [string]$Replacement, [string]$FilePath)
{
$content = (Get-Content $FilePath) -replace $Regex, $Replacement
[IO.File]::WriteAllLines($FilePath, $content)
}
Write-ReplaceContentInFile -Regex '^PLAYER_NAME = (.+)' -Replacement "PLAYER_NAME = $NewName" -FilePath "$InstallDir\Profiles\UserProfile_JA2113\Ja2_mp.ini"