Quake III Arena: Difference between revisions

From LANCommander
(Created page with "Category:Games {{Game.InfoBox |Cover = cover.jpg |Developers = {{Game.InfoBox.Developer|id Software}} {{Game.InfoBox.Developer|Bullfrog Productions}} {{Game.InfoBox.Developer|Pi Studios}} {{Game.InfoBox.Developer|Raster Productions}} |Publishers = {{Game.InfoBox.Publisher|Loki Software}} {{Game.InfoBox.Publisher|Activision}} {{Game.InfoBox.Publisher|Sega}} {{Game.InfoBox.Publisher|Electronic Arts}} |Release Date = {{Game.InfoBox.ReleaseDate|Windows|December 2, 1999}}...")
 
No edit summary
 
Line 3: Line 3:
|Cover = cover.jpg
|Cover = cover.jpg
|Developers =
|Developers =
{{Game.InfoBox.Developer|id Software}}
{{Game.InfoBox.Developer|id Software}}{{Game.InfoBox.Developer|Bullfrog Productions}}{{Game.InfoBox.Developer|Pi Studios}}{{Game.InfoBox.Developer|Raster Productions}}
{{Game.InfoBox.Developer|Bullfrog Productions}}
{{Game.InfoBox.Developer|Pi Studios}}
{{Game.InfoBox.Developer|Raster Productions}}
|Publishers =
|Publishers =
{{Game.InfoBox.Publisher|Loki Software}}
{{Game.InfoBox.Publisher|Loki Software}}{{Game.InfoBox.Publisher|Activision}}{{Game.InfoBox.Publisher|Sega}}{{Game.InfoBox.Publisher|Electronic Arts}}
{{Game.InfoBox.Publisher|Activision}}
{{Game.InfoBox.Publisher|Sega}}
{{Game.InfoBox.Publisher|Electronic Arts}}
|Release Date =
|Release Date =
{{Game.InfoBox.ReleaseDate|Windows|December 2, 1999}}
{{Game.InfoBox.ReleaseDate|Windows|December 2, 1999}}
|Genres =
|Genres =
{{Game.InfoBox.Genre|Shooter}}
{{Game.InfoBox.Genre|Shooter}}
| PCGamingWiki = Quake_III_Arena
|PCGamingWiki = Quake_III_Arena}}
}}


{{Game.ActionBox
{{Game.ActionBox
|Actions =  
|Actions =  
{{Game.ActionBox.Row|Name = Play|Path = Quake III Arena.exe|Arguments = |WorkingDirectory = |Primary = True}}
{{Game.ActionBox.Row|Name = Play|Path = {InstallDir}\quake3e.x64.exe|Arguments = |WorkingDirectory = |Primary = True}}
}}
}}


{{Game.Scripts.Install
|Name = Install Script
|Description =
|RequiresAdmin = False
|Contents =
<syntaxhighlight lang="powershell" line>
$Display = Get-PrimaryDisplay
Write-ReplaceContentInFile -Pattern 'seta com_skipIdLogo (.+)' -Substitution "seta com_skipIdLogo ""1""" -FilePath "$InstallDirectory\baseq3\q3config.cfg"
Write-ReplaceContentInFile -Pattern 'seta r_customWidth (.+)' -Substitution "seta r_customWidth ""$($Display.Bounds.Width)""" -FilePath "$InstallDirectory\baseq3\q3config.cfg"
Write-ReplaceContentInFile -Pattern 'seta r_customHeight (.+)' -Substitution "seta r_customHeight ""$($Display.Bounds.Height)""" -FilePath "$InstallDirectory\baseq3\q3config.cfg"
Write-ReplaceContentInFile -Pattern 'seta r_mode (.+)' -Substitution "seta r_mode ""-1""" -FilePath "$InstallDirectory\baseq3\q3config.cfg"
</syntaxhighlight>
}}
           
{{Game.Scripts.NameChange
{{Game.Scripts.NameChange
|Name = Name Change Script
|Name = Name Change Script
|Description =  
|Description =  
|RequiresAdmin = False
|RequiresAdmin = False
|Contents = <syntaxhighlight lang="powershell" line>
|Contents =
$NewName = $args[0]
<syntaxhighlight lang="powershell" line>
$InstallDir = $PSScriptRoot
Write-ReplaceContentInFile -Pattern 'seta name (.+)' -Substitution "seta name ""$NewPlayerAlias""" -FilePath "$InstallDirectory\baseq3\q3config.cfg"
 
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\baseq3\q3config.cfg"
</syntaxhighlight>
</syntaxhighlight>
}}
}}

Latest revision as of 21:55, 8 January 2024

Developers
id SoftwareBullfrog ProductionsPi StudiosRaster Productions
Publishers
Loki SoftwareActivisionSegaElectronic Arts
Release Date
Windows: December 2, 1999
Genres
Shooter
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play {InstallDir}\quake3e.x64.exe True

Install Script

$Display = Get-PrimaryDisplay

Write-ReplaceContentInFile -Pattern 'seta com_skipIdLogo (.+)' -Substitution "seta com_skipIdLogo ""1""" -FilePath "$InstallDirectory\baseq3\q3config.cfg"
Write-ReplaceContentInFile -Pattern 'seta r_customWidth (.+)' -Substitution "seta r_customWidth ""$($Display.Bounds.Width)""" -FilePath "$InstallDirectory\baseq3\q3config.cfg"
Write-ReplaceContentInFile -Pattern 'seta r_customHeight (.+)' -Substitution "seta r_customHeight ""$($Display.Bounds.Height)""" -FilePath "$InstallDirectory\baseq3\q3config.cfg"
Write-ReplaceContentInFile -Pattern 'seta r_mode (.+)' -Substitution "seta r_mode ""-1""" -FilePath "$InstallDirectory\baseq3\q3config.cfg"

Name Change Script

Write-ReplaceContentInFile -Pattern 'seta name (.+)' -Substitution "seta name ""$NewPlayerAlias""" -FilePath "$InstallDirectory\baseq3\q3config.cfg"