Star Wars: Jedi Knight II - Jedi Outcast

From LANCommander
Revision as of 01:31, 1 August 2023 by DoctorDalek (talk | contribs) (Created page with "Category:Games {{Game.InfoBox |Cover = cover.jpg |Developers = {{Game.InfoBox.Developer|Westlake Interactive}} {{Game.InfoBox.Developer|Vicarious Visions}} {{Game.InfoBox.Developer|Raven Software}} |Publishers = {{Game.InfoBox.Publisher|Activision}} {{Game.InfoBox.Publisher|CyberFront}} {{Game.InfoBox.Publisher|LucasArts}} {{Game.InfoBox.Publisher|Aspyr Media}} |Release Date = {{Game.InfoBox.ReleaseDate|Windows|March 26, 2002}} |Genres = {{Game.InfoBox.Genre|Adventur...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Developers
Westlake Interactive

Vicarious Visions Raven Software

Publishers
Activision

CyberFront LucasArts

Aspyr Media
Release Date
Windows: March 26, 2002
Genres
Adventure

Shooter

View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play Jedi Outcast Multiplayer jk2mp.exe {InstallDir}/GameData True
Play Jedi Outcast Singleplayer jk2sp.exe {InstallDir}/GameData 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)
}

Write-ReplaceContentInFile -Regex '^seta name (.+)' -Replacement "seta name ""$NewName""" -FilePath "$InstallDir\GameData\base\jk2mpconfig.cfg"