Star Wars: Jedi Knight II - Jedi Outcast

From LANCommander
Revision as of 00:50, 22 February 2024 by DoctorDalek (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Developers
Westlake InteractiveVicarious VisionsRaven Software
Publishers
ActivisionCyberFrontLucasArtsAspyr Media
Release Date
Windows: March 26, 2002
Genres
AdventureShooter
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play Jedi Outcast Multiplayer {InstallDir}\jk2mvmp.exe True
Play Jedi Outcast Singleplayer {InstallDir}\jk2sp.exe True

Install Script

$Display = Get-PrimaryDisplay

Write-ReplaceContentInFile -Pattern '^seta s_khz "(.+)"' -Substitution "seta s_khz ""44""" -FilePath "$InstallDirectory\GameData\base\jk2mpconfig.cfg"
Write-ReplaceContentInFile -Pattern '^seta r_customwidth "(.+)"' -Substitution "seta r_customwidth ""$($Display.Bounds.Width)""" -FilePath "$InstallDirectory\GameData\base\jk2mpconfig.cfg"
Write-ReplaceContentInFile -Pattern '^seta r_customheight "(.+)"' -Substitution "seta r_customheight ""$($Display.Bounds.Height)""" -FilePath "$InstallDirectory\GameData\base\jk2mpconfig.cfg"
Write-ReplaceContentInFile -Pattern '^seta r_ext_compress_textures "(.+)"' -Substitution "seta r_ext_compress_textures ""0""" -FilePath "$InstallDirectory\GameData\base\jk2mpconfig.cfg"
Write-ReplaceContentInFile -Pattern '^seta r_mode "(.+)"' -Substitution "seta r_mode ""-1""" -FilePath "$InstallDirectory\GameData\base\jk2mpconfig.cfg"

Name Change Script

Write-ReplaceContentInFile -Pattern '^seta name (.+)' -Substitution "seta name ""$NewPlayerAlias""" -FilePath "$InstallDirectory\GameData\base\jk2mpconfig.cfg"