F.E.A.R.: Difference between revisions
DoctorDalek (talk | contribs) No edit summary |
DoctorDalek (talk | contribs) No edit summary |
||
Line 15: | Line 15: | ||
|Actions = | |Actions = | ||
{{Game.ActionBox.Row|Name = Configuration Tool|Path = {InstallDir}\Config.exe|Arguments = |WorkingDirectory = |Primary = False}} | {{Game.ActionBox.Row|Name = Configuration Tool|Path = {InstallDir}\Config.exe|Arguments = |WorkingDirectory = |Primary = False}} | ||
{{Game.ActionBox.Row|Name = Play|Path = {InstallDir}\FEARMP.exe|Arguments = |WorkingDirectory = |Primary = True}} | {{Game.ActionBox.Row|Name = Play F.E.A.R.|Path = {InstallDir}\FEARMP.exe|Arguments = |WorkingDirectory = |Primary = True}} | ||
}} | }} | ||
Line 34: | Line 34: | ||
Write-ReplaceContentInFile -Pattern '^"ScreenWidth" "(.+)"' -Substitution """ScreenWidth"" ""$($Display.Bounds.Width)""" -FilePath "$Documents\Monolith Productions\FEARCombat\Settings.cfg" | Write-ReplaceContentInFile -Pattern '^"ScreenWidth" "(.+)"' -Substitution """ScreenWidth"" ""$($Display.Bounds.Width)""" -FilePath "$Documents\Monolith Productions\FEARCombat\Settings.cfg" | ||
Write-ReplaceContentInFile -Pattern '^"ScreenHeight" "(.+)"' -Substitution """ScreenHeight"" ""$($Display.Bounds.Height)""" -FilePath "$Documents\Monolith Productions\FEARCombat\Settings.cfg" | Write-ReplaceContentInFile -Pattern '^"ScreenHeight" "(.+)"' -Substitution """ScreenHeight"" ""$($Display.Bounds.Height)""" -FilePath "$Documents\Monolith Productions\FEARCombat\Settings.cfg" | ||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} | ||
Line 43: | Line 40: | ||
|Name = Uninstall Script | |Name = Uninstall Script | ||
|Description = | |Description = | ||
|RequiresAdmin = | |RequiresAdmin = False | ||
|Contents = | |Contents = | ||
<syntaxhighlight lang="powershell" line> | <syntaxhighlight lang="powershell" line> | ||
Line 68: | Line 65: | ||
|Name = Key Change Script | |Name = Key Change Script | ||
|Description = | |Description = | ||
|RequiresAdmin = | |RequiresAdmin = False | ||
|Contents = | |Contents = | ||
<syntaxhighlight lang="powershell" line> | <syntaxhighlight lang="powershell" line> | ||
$Documents = [Environment]::GetFolderPath("CommonDocuments") | $Documents = [Environment]::GetFolderPath("CommonDocuments") | ||
Set-Content -Path "$Documents\Monolith Productions\FEARCombat\key.ini" -value "[FEAR]`nCDKey=$AllocatedKey" -Force | Set-Content -Path "$Documents\Monolith Productions\FEARCombat\key.ini" -value "[FEAR]`nCDKey=$AllocatedKey" -Force | ||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} |
Latest revision as of 00:43, 22 February 2024
Developers | |
---|---|
Monolith Productions | |
Publishers | |
Sierra EntertainmentVivendi Universal Games | |
Release Date | |
Windows: October 17, 2005 | |
Genres | |
Shooter | |
View at PCGamingWiki |
Actions
Name | Path | Arguments | Working Directory | Primary |
---|---|---|---|---|
Configuration Tool | {InstallDir}\Config.exe | False | ||
Play F.E.A.R. | {InstallDir}\FEARMP.exe | True |
Install Script
$Documents = [Environment]::GetFolderPath("CommonDocuments")
Copy-Item -Path "$InstallDirectory\Monolith Productions" -Destination "$Documents" -Recurse
# Bounds are accessible by $Display.Width and $Display.Height
$Display = Get-PrimaryDisplay
# Use regex to replace text within a file. Quotes are escaped by double quoting ("")
Write-ReplaceContentInFile -Pattern '^"ScreenWidth" "(.+)"' -Substitution """ScreenWidth"" ""$($Display.Bounds.Width)""" -FilePath "$Documents\Monolith Productions\FEARCombat\Settings.cfg"
Write-ReplaceContentInFile -Pattern '^"ScreenHeight" "(.+)"' -Substitution """ScreenHeight"" ""$($Display.Bounds.Height)""" -FilePath "$Documents\Monolith Productions\FEARCombat\Settings.cfg"
Uninstall Script
$Documents = [Environment]::GetFolderPath("CommonDocuments")
Remove-Item -Path "$Documents\Monolith Productions" -Recurse -Force
Name Change Script
$Documents = [Environment]::GetFolderPath("CommonDocuments")
$bytes = ConvertTo-StringBytes -Input $NewPlayerAlias -Utf16 1 -MaxLength 15 -MinLength 15
Edit-PatchBinary -FilePath "$Documents\Monolith Productions\FEARCombat\Profiles\Profile000.gdb" -Offset 0x660 -Data $bytes
Key Change Script
$Documents = [Environment]::GetFolderPath("CommonDocuments")
Set-Content -Path "$Documents\Monolith Productions\FEARCombat\key.ini" -value "[FEAR]`nCDKey=$AllocatedKey" -Force