Strife: Quest for the Sigil: Difference between revisions

From LANCommander
(Created new page for Strife: Quest for the Sigil)
 
No edit summary
 
Line 14: Line 14:
{{Game.ActionBox
{{Game.ActionBox
|Actions =  
|Actions =  
{{Game.ActionBox.Row|Name = Play Coop|Path = {InstallDir}\Strife.bat|Arguments = |WorkingDirectory = |Primary = True}}
{{Game.ActionBox.Row|Name = Play Strife: Quest for the Sigil|Path = {InstallDir}\zandronum.exe|Arguments = -config zandronum.ini -iwad "STRIFE1.wad" -file "voices.wad" -savedir saves|WorkingDirectory = |Primary = False}}
{{Game.ActionBox.Row|Name = Play Deathmatch|Path = {InstallDir}\Strife_dm.bat|Arguments = |WorkingDirectory = |Primary = True}}
}}
}}



Latest revision as of 00:51, 22 February 2024

Developers
Rogue Entertainment
Publishers
VelocityNightdive Studios
Release Date
Windows: May 31, 1996
Genres
ShooterRole-playing (RPG)
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play Strife: Quest for the Sigil {InstallDir}\zandronum.exe -config zandronum.ini -iwad "STRIFE1.wad" -file "voices.wad" -savedir saves False

Install Script

#Updates bat file launchers to the server address and correct ports
######################################################################
$LauncherCoop = "$InstallDirectory\Strife.bat"
$LauncherDM = "$InstallDirectory\Strife_dm.bat"
$uri = New-Object System.Uri($ServerAddress)
$Server = $uri.Host
$Server_COOP = $Server + ":10674"
$Server_DM = $Server + ":10675"
# Use regex to replace text within a file. Quotes are escaped by double quoting ("")
Write-ReplaceContentInFile -Pattern '^zandronum.exe -connect (.+)' -Substitution "zandronum.exe -connect ""$Server_COOP"" -iwad ""strife1.wad"" -file ""voices.wad""" -FilePath "$LauncherCoop"
Write-ReplaceContentInFile -Pattern '^zandronum.exe -connect (.+)' -Substitution "zandronum.exe -connect ""$Server_DM"" -iwad ""strife1.wad"" -file ""voices.wad""" -FilePath -FilePath "$LauncherDM"
#######################################################################

#Updates Screen Resolution to match desktop resolution
#######################################################################
$Username=$env:username
$Config = "$InstallDirectory\zandronum-$Username.ini"
Copy-Item -Path "$InstallDirectory\zandronum.ini" -Destination "$Config" -Recurse

# Bounds are accessible by $Display.Bounds.Width and $Display.Bounds.Height
$Display = Get-PrimaryDisplay

# Use regex to replace text within a file. Quotes are escaped by double quoting ("")
Write-ReplaceContentInFile -Pattern '^con_virtualheight=(.+)' -Substitution "con_virtualheight=$($Display.Bounds.Height)" -FilePath "$Config"
Write-ReplaceContentInFile -Pattern '^con_virtualwidth=(.+)' -Substitution "con_virtualwidth=$($Display.Bounds.Width)" -FilePath "$Config"
Write-ReplaceContentInFile -Pattern '^vid_defheight=(.+)' -Substitution "vid_defheight=$($Display.Bounds.Height)" -FilePath "$Config"
Write-ReplaceContentInFile -Pattern '^vid_defwidth=(.+)' -Substitution "vid_defwidth=$($Display.Bounds.Width)" -FilePath "$Config"
#######################################################################