F.E.A.R.: Difference between revisions

From LANCommander
(Created page with "Category:Games {{Game.InfoBox |Cover = cover.jpg |Developers = {{Game.InfoBox.Developer|Monolith Productions}} |Publishers = {{Game.InfoBox.Publisher|Sierra Entertainment}} {{Game.InfoBox.Publisher|Vivendi Universal Games}} |Release Date = {{Game.InfoBox.ReleaseDate|Windows|October 17, 2005}} |Genres = {{Game.InfoBox.Genre|Shooter}} | PCGamingWiki = F.E.A.R. }} {{Game.ActionBox |Actions = {{Game.ActionBox.Row|Name = Multiplayer|Path = FEARMP.exe|Arguments = |Workin...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
{{Game.InfoBox.Developer|Monolith Productions}}
{{Game.InfoBox.Developer|Monolith Productions}}
|Publishers =
|Publishers =
{{Game.InfoBox.Publisher|Sierra Entertainment}}
{{Game.InfoBox.Publisher|Sierra Entertainment}}{{Game.InfoBox.Publisher|Vivendi Universal Games}}
{{Game.InfoBox.Publisher|Vivendi Universal Games}}
|Release Date =
|Release Date =
{{Game.InfoBox.ReleaseDate|Windows|October 17, 2005}}
{{Game.InfoBox.ReleaseDate|Windows|October 17, 2005}}
|Genres =
|Genres =
{{Game.InfoBox.Genre|Shooter}}
{{Game.InfoBox.Genre|Shooter}}
| PCGamingWiki = F.E.A.R.
|PCGamingWiki = F.E.A.R.}}
}}


{{Game.ActionBox
{{Game.ActionBox
|Actions =  
|Actions =  
{{Game.ActionBox.Row|Name = Multiplayer|Path = FEARMP.exe|Arguments = |WorkingDirectory = |Primary = True}}
{{Game.ActionBox.Row|Name = Configuration Tool|Path = {InstallDir}\Config.exe|Arguments = |WorkingDirectory = |Primary = False}}
{{Game.ActionBox.Row|Name = Singleplayer|Path = FEAR.exe|Arguments = |WorkingDirectory = |Primary = True}}
{{Game.ActionBox.Row|Name = Play F.E.A.R.|Path = {InstallDir}\FEARMP.exe|Arguments = |WorkingDirectory = |Primary = True}}
}}
 
 
{{Game.Scripts.Install
|Name = Install Script
|Description =
|RequiresAdmin = False
|Contents =
<syntaxhighlight lang="powershell" line>
$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"
</syntaxhighlight>
}}
           
{{Game.Scripts.Uninstall
|Name = Uninstall Script
|Description =
|RequiresAdmin = False
|Contents =
<syntaxhighlight lang="powershell" line>
$Documents = [Environment]::GetFolderPath("CommonDocuments")
Remove-Item -Path "$Documents\Monolith Productions" -Recurse -Force
</syntaxhighlight>
}}
           
{{Game.Scripts.NameChange
|Name = Name Change Script
|Description =
|RequiresAdmin = False
|Contents =
<syntaxhighlight lang="powershell" line>
$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
</syntaxhighlight>
}}
           
{{Game.Scripts.KeyChange
|Name = Key Change Script
|Description =
|RequiresAdmin = False
|Contents =
<syntaxhighlight lang="powershell" line>
$Documents = [Environment]::GetFolderPath("CommonDocuments")
Set-Content -Path "$Documents\Monolith Productions\FEARCombat\key.ini" -value "[FEAR]`nCDKey=$AllocatedKey" -Force
</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