Aliens vs. Predator 2: Difference between revisions

From LANCommander
(Created new page for Aliens vs. Predator 2)
 
No edit summary
Line 14: Line 14:
{{Game.ActionBox
{{Game.ActionBox
|Actions =  
|Actions =  
{{Game.ActionBox.Row|Name = Play Aliens versus Predator 2|Path = {InstallDir}\lithtech.exe|Arguments = -windowtitle "Aliens vs. Predator 2" -rez AVP2.rez -rez sounds.rez -rez Alien.rez -rez Marine.rez -rez Predator.rez -rez Multi.rez -rez AVP2dll.rez -rez AVP2l.rez -rez custom -rez AVP2p.rez -rez AVP2p2.rez -rez AVP2P1.REZ -rez AVP2SP.REZ -rez avp2p5.rez  +DisableMusic 0 +DisableSound 0 +DisableMovies 1 +EnableTripBuf 1 +DisableHardwareCursor 0  |WorkingDirectory = |Primary = True}}
{{Game.ActionBox.Row|Name = Play Aliens versus Predator 2|Path = lithtech.exe|Arguments = -windowtitle "Aliens vs. Predator 2" -rez AVP2.rez -rez sounds.rez -rez Alien.rez -rez Marine.rez -rez Predator.rez -rez Multi.rez -rez AVP2dll.rez -rez AVP2l.rez -rez custom -rez AVP2p.rez -rez AVP2p2.rez -rez AVP2P1.REZ -rez AVP2SP.REZ -rez avp2p5.rez  +DisableMusic 0 +DisableSound 0 +DisableMovies 1 +EnableTripBuf 1 +DisableHardwareCursor 0  |WorkingDirectory = {InstallDir}|Primary = True}}
{{Game.ActionBox.Row|Name = Run Launcher|Path = {InstallDir}\AVP2.exe|Arguments = |WorkingDirectory = |Primary = False}}
{{Game.ActionBox.Row|Name = Run Launcher|Path = {InstallDir}\AVP2.exe|Arguments = |WorkingDirectory = {InstallDir}|Primary = False}}
}}
{{Game.ActionBox.Row|Name = Start Server|Path = {InstallDir}\AVP2Serv.exe|Arguments = |WorkingDirectory = {InstallDir}|Primary = False}}
}}
}}


{{Game.Scripts.Install
{{Game.Scripts.Install

Revision as of 13:20, 1 August 2024

Developers
Third Law InteractiveMonolith ProductionsThe Omni Group
Publishers
MacPlayFox Interactive
Release Date
Windows: October 22, 2001
Genres
Shooter
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play Aliens versus Predator 2 lithtech.exe -windowtitle "Aliens vs. Predator 2" -rez AVP2.rez -rez sounds.rez -rez Alien.rez -rez Marine.rez -rez Predator.rez -rez Multi.rez -rez AVP2dll.rez -rez AVP2l.rez -rez custom -rez AVP2p.rez -rez AVP2p2.rez -rez AVP2P1.REZ -rez AVP2SP.REZ -rez avp2p5.rez +DisableMusic 0 +DisableSound 0 +DisableMovies 1 +EnableTripBuf 1 +DisableHardwareCursor 0 {InstallDir} True
Run Launcher {InstallDir}\AVP2.exe {InstallDir} False

Start Server {InstallDir}\AVP2Serv.exe {InstallDir} False }}

Install Script

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

Write-ReplaceContentInFile -Pattern '^"SCREENWIDTH" "(.+)"' -Substitution """SCREENWIDTH"" ""$($Display.Bounds.Width)""" -FilePath "$InstallDirectory\autoexec.cfg"
Write-ReplaceContentInFile -Pattern '^"GameScreenWidth" "(.+)"' -Substitution """GameScreenWidth"" ""$($Display.Bounds.Width)""" -FilePath "$InstallDirectory\autoexec.cfg"
Write-ReplaceContentInFile -Pattern '^"SCREENHEIGHT" "(.+)"' -Substitution """SCREENHEIGHT"" ""$($Display.Bounds.Height)""" -FilePath "$InstallDirectory\autoexec.cfg"
Write-ReplaceContentInFile -Pattern '^"GameScreenHeight" "(.+)"' -Substitution """GameScreenHeight"" ""$($Display.Bounds.Height)""" -FilePath "$InstallDirectory\autoexec.cfg"

New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Monolith Productions\Aliens vs. Predator 2\1.0" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Monolith Productions\Aliens vs. Predator 2\1.0" -Name "InstallDir" -Value "$InstallDirectory" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Monolith Productions\Aliens vs. Predator 2\1.0" -Name "Language" -Value "English" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Monolith Productions\Aliens vs. Predator 2\1.0" -Name "Update Command Line" -Value "-rez AVP2P1.REZ -rez AVP2SP.REZ -rez avp2p5.rez" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Monolith Productions\Aliens vs. Predator 2\1.0" -Name "Num Launcher Runs" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Monolith Productions\Aliens vs. Predator 2\1.0" -Name "Disable Sound" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Monolith Productions\Aliens vs. Predator 2\1.0" -Name "Disable Music" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Monolith Productions\Aliens vs. Predator 2\1.0" -Name "Disable Movies" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Monolith Productions\Aliens vs. Predator 2\1.0" -Name "Disable Joysticks" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Monolith Productions\Aliens vs. Predator 2\1.0" -Name "Disable Triple Buffering" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Monolith Productions\Aliens vs. Predator 2\1.0" -Name "Disable Hardware Cursor" -Value 0 -Force

Rename-Item -Path "$InstallDirectory\Movies\foxlogo.bik" -NewName "$InstallDirectory\Movies\foxlogo.bik.bak"
Rename-Item -Path "$InstallDirectory\Movies\lithlogo.bik" -NewName "$InstallDirectory\Movies\lithlogo.bik.bak"
Rename-Item -Path "$InstallDirectory\Movies\ltlogo.bik" -NewName "$InstallDirectory\Movies\ltlogo.bik.bak"
Rename-Item -Path "$InstallDirectory\Movies\sierralogo.bik" -NewName "$InstallDirectory\Movies\sierralogo.bik.bak"

Uninstall Script

Remove-Item -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Monolith Productions\Aliens vs. Predator 2" -Force -Recurse

Name Change Script

Write-ReplaceContentInFile -Pattern '^PlayerName = "(.+)"' -Substitution "PlayerName = ""$NewPlayerAlias""" -FilePath "$InstallDirectory\Profiles\Player_0.txt"