Worms World Party

From LANCommander
Revision as of 01:41, 1 August 2023 by DoctorDalek (talk | contribs) (Created page with "Category:Games {{Game.InfoBox |Cover = cover.jpg |Developers = {{Game.InfoBox.Developer|Paragon 5}} {{Game.InfoBox.Developer|Fluid Studios}} {{Game.InfoBox.Developer|The Code Monkeys}} {{Game.InfoBox.Developer|Team17}} |Publishers = {{Game.InfoBox.Publisher|Virgin Interactive Entertainment (Europe) Ltd.}} {{Game.InfoBox.Publisher|Titus Software}} {{Game.InfoBox.Publisher|Nokia}} |Release Date = {{Game.InfoBox.ReleaseDate|Windows|April 6, 2001}} |Genres = {{Game.InfoB...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Developers
Paragon 5

Fluid Studios The Code Monkeys Team17

Publishers
Virgin Interactive Entertainment (Europe) Ltd.

Titus Software

Nokia
Release Date
Windows: April 6, 2001
Genres
Strategy
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play w2.exe True

Install Script

Adds necessary registry keys and sets video resolution to the main display's resolution.

$InstallDir = $PSScriptRoot
Add-Type -AssemblyName System.Windows.Forms
$Display = [System.Windows.Forms.Screen]::AllScreens | Where-Object Primary | Select Bounds

$BasePath = "HKCU:\SOFTWARE\Team17DigitalLTD\WormsWorldParty"
$NetSettingsPath = "$BasePath\NetSettings"
$OptionsPath = "$BasePath\Options"

New-Item -Path "$BasePath" -Force
New-Item -Path "$NetSettingsPath" -Force
New-Item -Path "$OptionsPath" -Force

New-ItemProperty -Path "$NetSettingsPath" -Name "AddressOverride" -Value 0
New-ItemProperty -Path "$NetSettingsPath" -Name "AutoPing" -Value 1
New-ItemProperty -Path "$NetSettingsPath" -Name "FilterLanguage" -Value 0
New-ItemProperty -Path "$NetSettingsPath" -Name "HostingPort" -Value 17011
New-ItemProperty -Path "$NetSettingsPath" -Name "Location" -Value 0
New-ItemProperty -Path "$NetSettingsPath" -Name "PlayerName" -Value "Vintage"
New-ItemProperty -Path "$NetSettingsPath" -Name "Protocol" -Value 1
New-ItemProperty -Path "$NetSettingsPath" -Name "ProxyPort" -Value 0
New-ItemProperty -Path "$NetSettingsPath" -Name "ServerLaunched" -Value 1
New-ItemProperty -Path "$NetSettingsPath" -Name "UpdatePrompt" -Value 0
New-ItemProperty -Path "$NetSettingsPath" -Name "UpdateServerList" -Value 1
New-ItemProperty -Path "$NetSettingsPath" -Name "UseProxy" -Value 0
New-ItemProperty -Path "$NetSettingsPath" -Name "UserId" -Value "1"
New-ItemProperty -Path "$NetSettingsPath" -Name "UseUPnP" -Value 1

New-ItemProperty -Path "$OptionsPath" -Name "Animations" -Value 1
New-ItemProperty -Path "$OptionsPath" -Name "CD Tracks" -Value 127
New-ItemProperty -Path "$OptionsPath" -Name "Detail" -Value 5
New-ItemProperty -Path "$OptionsPath" -Name "DetailLevel" -Value 4
New-ItemProperty -Path "$OptionsPath" -Name "DisplaySize" -Value 3 # Custom
New-ItemProperty -Path "$OptionsPath" -Name "DisplayXSize" -Value $Display.Width
New-ItemProperty -Path "$OptionsPath" -Name "DisplayYSize" -Value $Display.Height
New-ItemProperty -Path "$OptionsPath" -Name "EnergyBar" -Value 0
New-ItemProperty -Path "$OptionsPath" -Name "Filter" -Value 1
New-ItemProperty -Path "$OptionsPath" -Name "RemasteredAudio" -Value 1
New-ItemProperty -Path "$OptionsPath" -Name "Volume" -Value 1
New-ItemProperty -Path "$OptionsPath" -Name "vSync" -Value 1

Uninstall Script

$BasePath = "HKCU:\SOFTWARE\Team17DigitalLTD\WormsWorldParty"

Remove-Item -Path "$BasePath" -Force -Recurse

Name Change Script

$InstallDir = $PSScriptRoot
$NewName = $args[0]

if ($NewName.Length -gt 15) {
    $NewName = $NewName.Substring(0, 15)
}

$BasePath = "HKCU:\SOFTWARE\Team17DigitalLTD\WormsWorldParty"
$NetSettingsPath = "$BasePath\NetSettings"

New-ItemProperty -Path "$NetSettingsPath" -Name "PlayerName" -Value "$NewName"