Deus Ex: Difference between revisions
DoctorDalek (talk | contribs) No edit summary |
DoctorDalek (talk | contribs) No edit summary |
||
Line 5: | Line 5: | ||
{{Game.InfoBox.Developer|Ion Storm}} | {{Game.InfoBox.Developer|Ion Storm}} | ||
|Publishers = | |Publishers = | ||
{{Game.InfoBox. | {{Game.InfoBox.Publisher|Eidos Interactive}}{{Game.InfoBox.Publisher|Aspyr Media}} | ||
|Release Date = | |Release Date = | ||
{{Game.InfoBox.ReleaseDate|Windows|June 26, 2000}} | {{Game.InfoBox.ReleaseDate|Windows|June 26, 2000}} | ||
Line 24: | Line 24: | ||
|Contents = | |Contents = | ||
<syntaxhighlight lang="powershell" line> | <syntaxhighlight lang="powershell" line> | ||
$Display = Get-PrimaryDisplay | |||
$ | |||
$X = $Display.Bounds.Width | |||
$Y = $Display.Bounds.Height | |||
$ | |||
$ | |||
$FOV = 75 | |||
$ | |||
Write-ReplaceContentInFile -Pattern '^FullscreenViewportX=(.+)' -Substitution "FullscreenViewportX=$($Display.Bounds.Width)" -FilePath "$InstallDirectory\System\DeusEx.ini" | |||
Write-ReplaceContentInFile -Pattern '^FullscreenViewportY=(.+)' -Substitution "FullscreenViewportY=$($Display.Bounds.Height)" -FilePath "$InstallDirectory\System\DeusEx.ini" | |||
if (($X / $Y) -eq (16 / 9)) { | |||
$FOV = 90 | |||
} elseif (($X / $Y) -eq (16 / 10)) { | |||
$FOV = 85 | |||
} | } | ||
Write-ReplaceContentInFile -Pattern '^DesiredFOV=(.+)' -Substitution "DesiredFOV=$FOV.000000" -FilePath "$InstallDirectory\System\DeusEx.ini" | |||
$ | Write-ReplaceContentInFile -Pattern '^DefaultFOV=(.+)' -Substitution "DefaultFOV=$FOV.000000" -FilePath "$InstallDirectory\System\DeusEx.ini" | ||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} |
Latest revision as of 00:41, 22 February 2024
Developers | |
---|---|
Ion Storm | |
Publishers | |
Eidos InteractiveAspyr Media | |
Release Date | |
Windows: June 26, 2000 | |
Genres | |
AdventureShooterRole-playing (RPG) | |
View at PCGamingWiki |
Actions
Name | Path | Arguments | Working Directory | Primary |
---|---|---|---|---|
Play | DeusEx.exe | {InstallDir}/System | True |
Install Script
$Display = Get-PrimaryDisplay
$X = $Display.Bounds.Width
$Y = $Display.Bounds.Height
$FOV = 75
Write-ReplaceContentInFile -Pattern '^FullscreenViewportX=(.+)' -Substitution "FullscreenViewportX=$($Display.Bounds.Width)" -FilePath "$InstallDirectory\System\DeusEx.ini"
Write-ReplaceContentInFile -Pattern '^FullscreenViewportY=(.+)' -Substitution "FullscreenViewportY=$($Display.Bounds.Height)" -FilePath "$InstallDirectory\System\DeusEx.ini"
if (($X / $Y) -eq (16 / 9)) {
$FOV = 90
} elseif (($X / $Y) -eq (16 / 10)) {
$FOV = 85
}
Write-ReplaceContentInFile -Pattern '^DesiredFOV=(.+)' -Substitution "DesiredFOV=$FOV.000000" -FilePath "$InstallDirectory\System\DeusEx.ini"
Write-ReplaceContentInFile -Pattern '^DefaultFOV=(.+)' -Substitution "DefaultFOV=$FOV.000000" -FilePath "$InstallDirectory\System\DeusEx.ini"
Name Change Script
Write-ReplaceContentInFile -Pattern '^Name=(.+)' -Substitution "Name=$NewPlayerAlias" -FilePath "$InstallDirectory\System\User.ini"