Worms World Party: Difference between revisions

From LANCommander
(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...")
 
No edit summary
 
Line 3: Line 3:
|Cover = cover.jpg
|Cover = cover.jpg
|Developers =
|Developers =
{{Game.InfoBox.Developer|Paragon 5}}
{{Game.InfoBox.Developer|Paragon 5}}{{Game.InfoBox.Developer|Fluid Studios}}{{Game.InfoBox.Developer|The Code Monkeys}}{{Game.InfoBox.Developer|Team17}}
{{Game.InfoBox.Developer|Fluid Studios}}
{{Game.InfoBox.Developer|The Code Monkeys}}
{{Game.InfoBox.Developer|Team17}}
|Publishers =
|Publishers =
{{Game.InfoBox.Publisher|Virgin Interactive Entertainment (Europe) Ltd.}}
{{Game.InfoBox.Publisher|Virgin Interactive Entertainment (Europe) Ltd.}}{{Game.InfoBox.Publisher|Titus Software}}{{Game.InfoBox.Publisher|Nokia}}
{{Game.InfoBox.Publisher|Titus Software}}
{{Game.InfoBox.Publisher|Nokia}}
|Release Date =
|Release Date =
{{Game.InfoBox.ReleaseDate|Windows|April 6, 2001}}
{{Game.InfoBox.ReleaseDate|Windows|April 6, 2001}}
|Genres =
|Genres =
{{Game.InfoBox.Genre|Strategy}}
{{Game.InfoBox.Genre|Strategy}}
| PCGamingWiki = Worms_World_Party
|PCGamingWiki = Worms_World_Party}}
}}


{{Game.ActionBox
{{Game.ActionBox
|Actions =  
|Actions =  
{{Game.ActionBox.Row|Name = Play|Path = w2.exe|Arguments = |WorkingDirectory = |Primary = True}}
{{Game.ActionBox.Row|Name = Play|Path = {InstallDir}\w2.exe|Arguments = |WorkingDirectory = |Primary = True}}
}}
}}


{{Game.Scripts.Install
{{Game.Scripts.Install
|Name = Install Script
|Name = Install Script
|Description = Adds necessary registry keys and sets video resolution to the main display's resolution.
|Description = Adds necessary registry keys and sets video resolution to the main display's resolution.
|RequiresAdmin = False
|RequiresAdmin = False
|Contents = <syntaxhighlight lang="powershell" line>
|Contents =
$InstallDir = $PSScriptRoot
<syntaxhighlight lang="powershell" line>
Add-Type -AssemblyName System.Windows.Forms
$Display = Get-PrimaryDisplay
$Display = [System.Windows.Forms.Screen]::AllScreens | Where-Object Primary | Select Bounds
 
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" -Name "$InstallDirectory\<Executable>" -Value "~ DISABLEDXMAXIMIZEDWINDOWEDMODE" -Force


$BasePath = "HKCU:\SOFTWARE\Team17DigitalLTD\WormsWorldParty"
$BasePath = "HKCU:\SOFTWARE\Team17DigitalLTD\WormsWorldParty"
Line 60: Line 56:
New-ItemProperty -Path "$OptionsPath" -Name "DetailLevel" -Value 4
New-ItemProperty -Path "$OptionsPath" -Name "DetailLevel" -Value 4
New-ItemProperty -Path "$OptionsPath" -Name "DisplaySize" -Value 3 # Custom
New-ItemProperty -Path "$OptionsPath" -Name "DisplaySize" -Value 3 # Custom
New-ItemProperty -Path "$OptionsPath" -Name "DisplayXSize" -Value $Display.Width
New-ItemProperty -Path "$OptionsPath" -Name "DisplayXSize" -Value $Display.Bounds.Width
New-ItemProperty -Path "$OptionsPath" -Name "DisplayYSize" -Value $Display.Height
New-ItemProperty -Path "$OptionsPath" -Name "DisplayYSize" -Value $Display.Bounds.Height
New-ItemProperty -Path "$OptionsPath" -Name "EnergyBar" -Value 0
New-ItemProperty -Path "$OptionsPath" -Name "EnergyBar" -Value 0
New-ItemProperty -Path "$OptionsPath" -Name "Filter" -Value 1
New-ItemProperty -Path "$OptionsPath" -Name "Filter" -Value 1
Line 69: Line 65:
</syntaxhighlight>
</syntaxhighlight>
}}
}}
 
           
{{Game.Scripts.Uninstall
{{Game.Scripts.Uninstall
|Name = Uninstall Script
|Name = Uninstall Script
|Description =  
|Description =  
|RequiresAdmin = False
|RequiresAdmin = False
|Contents = <syntaxhighlight lang="powershell" line>
|Contents =
<syntaxhighlight lang="powershell" line>
$BasePath = "HKCU:\SOFTWARE\Team17DigitalLTD\WormsWorldParty"
$BasePath = "HKCU:\SOFTWARE\Team17DigitalLTD\WormsWorldParty"


Line 80: Line 77:
</syntaxhighlight>
</syntaxhighlight>
}}
}}
 
           
{{Game.Scripts.NameChange
{{Game.Scripts.NameChange
|Name = Name Change Script
|Name = Name Change Script
|Description =  
|Description =  
|RequiresAdmin = False
|RequiresAdmin = False
|Contents = <syntaxhighlight lang="powershell" line>
|Contents =
$InstallDir = $PSScriptRoot
<syntaxhighlight lang="powershell" line>
$NewName = $args[0]
if ($NewPlayerAlias.Length -gt 15) {
 
     $NewPlayerAlias = $NewPlayerAlias.Substring(0, 15)
if ($NewName.Length -gt 15) {
     $NewName = $NewName.Substring(0, 15)
}
}


Line 96: Line 91:
$NetSettingsPath = "$BasePath\NetSettings"
$NetSettingsPath = "$BasePath\NetSettings"


New-ItemProperty -Path "$NetSettingsPath" -Name "PlayerName" -Value "$NewName"
New-ItemProperty -Path "$NetSettingsPath" -Name "PlayerName" -Value "$NewPlayerAlias"
</syntaxhighlight>
</syntaxhighlight>
}}
}}

Latest revision as of 21:58, 8 January 2024

Developers
Paragon 5Fluid StudiosThe Code MonkeysTeam17
Publishers
Virgin Interactive Entertainment (Europe) Ltd.Titus SoftwareNokia
Release Date
Windows: April 6, 2001
Genres
Strategy
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play {InstallDir}\w2.exe True

Install Script

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

$Display = Get-PrimaryDisplay

New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" -Name "$InstallDirectory\<Executable>" -Value "~ DISABLEDXMAXIMIZEDWINDOWEDMODE" -Force

$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.Bounds.Width
New-ItemProperty -Path "$OptionsPath" -Name "DisplayYSize" -Value $Display.Bounds.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

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

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

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