Quake: Difference between revisions

From LANCommander
(Created page with "Category:Games {{Game.InfoBox |Cover = cover.jpg |Developers = {{Game.InfoBox.Developer|id Software}} |Publishers = {{Game.InfoBox.Publisher|GT Interactive}} {{Game.InfoBox.Publisher|id Software}} {{Game.InfoBox.Publisher|Midway Games}} {{Game.InfoBox.Publisher|MacSoft Games}} {{Game.InfoBox.Publisher|R-Comp Interactive}} {{Game.InfoBox.Publisher|PXL computers}} {{Game.InfoBox.Publisher|Sega}} {{Game.InfoBox.Publisher|Pulse Interactive}} |Release Date = {{Game.InfoBo...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
{{Game.InfoBox.Developer|id Software}}
{{Game.InfoBox.Developer|id Software}}
|Publishers =
|Publishers =
{{Game.InfoBox.Publisher|GT Interactive}}
{{Game.InfoBox.Publisher|id Software}}{{Game.InfoBox.Publisher|MacSoft Games}}{{Game.InfoBox.Publisher|GT Interactive Software}}{{Game.InfoBox.Publisher|R-Comp Interactive}}{{Game.InfoBox.Publisher|PXL computers}}{{Game.InfoBox.Publisher|Sega}}{{Game.InfoBox.Publisher|Pulse Interactive}}
{{Game.InfoBox.Publisher|id Software}}
{{Game.InfoBox.Publisher|Midway Games}}
{{Game.InfoBox.Publisher|MacSoft Games}}
{{Game.InfoBox.Publisher|R-Comp Interactive}}
{{Game.InfoBox.Publisher|PXL computers}}
{{Game.InfoBox.Publisher|Sega}}
{{Game.InfoBox.Publisher|Pulse Interactive}}
|Release Date =
|Release Date =
{{Game.InfoBox.ReleaseDate|Windows|June 22, 1996}}
{{Game.InfoBox.ReleaseDate|Windows|June 22, 1996}}
|Genres =
|Genres =
{{Game.InfoBox.Genre|Shooter}}
{{Game.InfoBox.Genre|Shooter}}
| PCGamingWiki = Quake
|PCGamingWiki = Quake}}
}}


{{Game.ActionBox
{{Game.ActionBox
|Actions =  
|Actions =  
{{Game.ActionBox.Row|Name = Play|Path = GLQUAKE.exe|Arguments = |WorkingDirectory = |Primary = True}}
{{Game.ActionBox.Row|Name = Play|Path = {InstallDir}\ironwail.exe|Arguments = |WorkingDirectory = |Primary = True}}
{{Game.ActionBox.Row|Name = Play|Path = darkplaces.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 '^"vid_width" (.+)' -Substitution """vid_width"" ""$($Display.Bounds.Width)""" -FilePath "$InstallDirectory\Id1\config.cfg"
Write-ReplaceContentInFile -Pattern '^"vid_height" (.+)' -Substitution """vid_height"" ""$($Display.Bounds.Height)""" -FilePath "$InstallDirectory\Id1\config.cfg"
Write-ReplaceContentInFile -Pattern '^vid_width (.+)' -Substitution "vid_width ""$($Display.Bounds.Width)""" -FilePath "$InstallDirectory\Id1\ironwail.cfg"
Write-ReplaceContentInFile -Pattern '^vid_height (.+)' -Substitution "vid_height ""$($Display.Bounds.Height)""" -FilePath "$InstallDirectory\Id1\ironwail.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 '^"_cl_name" (.+)' -Substitution """_cl_name"" ""$NewPlayerAlias""" -FilePath "$InstallDirectory\Id1\config.cfg"
 
Write-ReplaceContentInFile -Pattern '^_cl_name (.+)' -Substitution "_cl_name ""$NewPlayerAlias""" -FilePath "$InstallDirectory\Id1\ironwail.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 '^_cl_name (.+)' -Replacement "_cl_name ""$NewName""" -FilePath "$InstallDir\Id1\config.cfg"
</syntaxhighlight>
</syntaxhighlight>
}}
}}

Latest revision as of 21:55, 8 January 2024

Developers
id Software
Publishers
id SoftwareMacSoft GamesGT Interactive SoftwareR-Comp InteractivePXL computersSegaPulse Interactive
Release Date
Windows: June 22, 1996
Genres
Shooter
View at PCGamingWiki

Actions

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

Install Script

$Display = Get-PrimaryDisplay

Write-ReplaceContentInFile -Pattern '^"vid_width" (.+)' -Substitution """vid_width"" ""$($Display.Bounds.Width)""" -FilePath "$InstallDirectory\Id1\config.cfg"
Write-ReplaceContentInFile -Pattern '^"vid_height" (.+)' -Substitution """vid_height"" ""$($Display.Bounds.Height)""" -FilePath "$InstallDirectory\Id1\config.cfg"
Write-ReplaceContentInFile -Pattern '^vid_width (.+)' -Substitution "vid_width ""$($Display.Bounds.Width)""" -FilePath "$InstallDirectory\Id1\ironwail.cfg"
Write-ReplaceContentInFile -Pattern '^vid_height (.+)' -Substitution "vid_height ""$($Display.Bounds.Height)""" -FilePath "$InstallDirectory\Id1\ironwail.cfg"

Name Change Script

Write-ReplaceContentInFile -Pattern '^"_cl_name" (.+)' -Substitution """_cl_name"" ""$NewPlayerAlias""" -FilePath "$InstallDirectory\Id1\config.cfg"
Write-ReplaceContentInFile -Pattern '^_cl_name (.+)' -Substitution "_cl_name ""$NewPlayerAlias""" -FilePath "$InstallDirectory\Id1\ironwail.cfg"