Doom

From LANCommander
Revision as of 00:42, 22 February 2024 by DoctorDalek (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Developers
id Software
Publishers
Wiz Technologyid SoftwareActivisionGT Interactive Software
Release Date
Windows: December 10, 1993
Genres
Shooter
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play Doom {InstallDir}\zandronum.exe -iwad "{InstallDir}/doom.wad" -config zandronum.ini -savedir saves True

Install Script

$Config = "$InstallDirectory\zandronum.ini"

# Updates Screen Resolution to match desktop resolution
#######################################################################
$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"
#######################################################################

Name Change Script

Write-ReplaceContentInFile -Pattern '^name=(.+)' -Substitution "name=$NewPlayerAlias" -FilePath "$InstallDirectory\zandronum.ini"