Command & Conquer: Renegade: Difference between revisions

From LANCommander
(Created page with "Category:Games {{Game.InfoBox |Cover = cover.jpg |Release Date = {{Game.InfoBox.ReleaseDate|Windows|February 26, 2002}} | PCGamingWiki = Command_%26_Conquer:_Renegade }} {{Game.ActionBox |Actions = {{Game.ActionBox.Row|Name = Configuration Tool|Path = WWConfig.exe|Arguments = |WorkingDirectory = |Primary = False}} {{Game.ActionBox.Row|Name = Play|Path = Game.exe|Arguments = |WorkingDirectory = |Primary = True}} }} {{Game.Scripts.KeyChange |Name = Key Change Script...")
 
(Fixes to deprecated PowerShell scripts)
Line 2: Line 2:
{{Game.InfoBox
{{Game.InfoBox
|Cover = cover.jpg
|Cover = cover.jpg
|Developers =
{{Game.InfoBox.Developer|Westwood Studios}}
|Publishers =
{{Game.InfoBox.Developer|Electronic Arts}}
|Release Date =
|Release Date =
{{Game.InfoBox.ReleaseDate|Windows|February 26, 2002}}
{{Game.InfoBox.ReleaseDate|Windows|February 26, 2002}}
| PCGamingWiki = Command_%26_Conquer:_Renegade
|Genres =
}}
{{Game.InfoBox.Genre|Shooter}}
|PCGamingWiki = Command_%26_Conquer:_Renegade}}


{{Game.ActionBox
{{Game.ActionBox
|Actions =  
|Actions =  
{{Game.ActionBox.Row|Name = Configuration Tool|Path = WWConfig.exe|Arguments = |WorkingDirectory = |Primary = False}}
{{Game.ActionBox.Row|Name = Configuration Tool|Path = {InstallDir}\WWConfig.exe|Arguments = |WorkingDirectory = |Primary = False}}
{{Game.ActionBox.Row|Name = Play|Path = Game.exe|Arguments = |WorkingDirectory = |Primary = True}}
{{Game.ActionBox.Row|Name = Play|Path = {InstallDir}\Game.exe|Arguments = |WorkingDirectory = |Primary = True}}
}}
}}


{{Game.Scripts.KeyChange
|Name = Key Change Script
|Description =
|RequiresAdmin = True
|Contents = <syntaxhighlight lang="powershell" line>
$Key = $args[0]
# Const, WOLData.key
$woldata = "04986627193318147921680928765690038703412631629541829427981390480026273565342680243441611903515001062268622186233202902241104710"
$Key = $Key.Replace("-", "")
for ($i = 0, $j = 0; $i -lt $woldata.Length; $i++, $j++) {
if ($j -eq $Key.Length) {
$j = 0
}
$value = (([int]$Key[$j] + [int]$woldata[$i] + 2) % 10 + '0')
$Key = $Key.Substring(0, $j) + [char]$value + $Key.Substring($j + 1)
}
# Creates or updates a key in the registry
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood" -Name "Serial" -Value "$Key" -Force
</syntaxhighlight>
}}


{{Game.Scripts.Install
{{Game.Scripts.Install
Line 44: Line 23:
|Description =  
|Description =  
|RequiresAdmin = True
|RequiresAdmin = True
|Contents = <syntaxhighlight lang="powershell" line>
|Contents =
$InstallDir = $PSScriptRoot
<syntaxhighlight lang="powershell" line>
# Accessible via $Display.Width and $Display.Height
# Bounds are accessible by $Display.Bounds.Width and $Display.Bounds.Height
Add-Type -AssemblyName System.Windows.Forms
$Display = Get-PrimaryDisplay
$Display = ([System.Windows.Forms.Screen]::AllScreens | Where-Object Primary).Bounds
 
$User = New-Object System.Security.Principal.NTAccount($env:UserName)
$SID = $User.Translate([System.Security.Principal.SecurityIdentifier]).value


# Non-destructively creates path in registry
# Non-destructively creates path in registry
Line 57: Line 32:
New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade"
New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade"
New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade\Render"
New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade\Render"
New-Item -Path "registry::\HKEY_USERS\$SID\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood"
New-Item -Path "registry::\HKEY_USERS\$SID\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade"
New-Item -Path "registry::\HKEY_USERS\$SID\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Render"
New-Item -Path "registry::\HKEY_USERS\$SID\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Networking"
New-Item -Path "registry::\HKEY_USERS\$SID\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Networking\Options"


# Creates or updates a key in the registry
# Creates or updates a key in the registry
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade" -Name "InstallPath" -Value "$InstallDir\Renegade.exe" -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade" -Name "InstallPath" -Value "$InstallDirectory\Renegade.exe" -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade" -Name "SKU" -Value 3072 -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade" -Name "SKU" -Value 3072 -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade" -Name "Version" -Value 65573 -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade" -Name "Version" -Value 65573 -Force
Line 71: Line 40:


New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceDepth" -Value 32 -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceDepth" -Value 32 -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceHeight" -Value $Display.Height -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceHeight" -Value $Display.Bounds.Height -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceWidth" -Value $Display.Width -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceWidth" -Value $Display.Bounds.Width -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceWindowed" -Value 0 -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceWindowed" -Value 0 -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceTextureDepth" -Value 32 -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceTextureDepth" -Value 32 -Force
New-ItemProperty -Path "registry::\HKEY_USERS\$SID\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceDepth" -Value 32 -Force
 
New-ItemProperty -Path "registry::\HKEY_USERS\$SID\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceHeight" -Value $Display.Height -Force
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood"
New-ItemProperty -Path "registry::\HKEY_USERS\$SID\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceWidth" -Value $Display.Width -Force
 
New-ItemProperty -Path "registry::\HKEY_USERS\$SID\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceWindowed" -Value 0 -Force
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade"
New-ItemProperty -Path "registry::\HKEY_USERS\$SID\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceTextureDepth" -Value 32 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade" -Name "SKU" -Value 3072 -Force
New-ItemProperty -Path "registry::\HKEY_USERS\$SID\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Networking\Options" -Name "MyLanName" -Value "Vintage" -Force
 
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Debug"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Debug" -Name "ExitThreadOnAssert" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Debug" -Name "CompareExeVersionOnNetwork" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Debug" -Name "NewTCADO" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Debug" -Name "GameInitInProgress" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Debug" -Name "ApplicationCrashVersion" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Debug" -Name "EnabledDevices" -Value -2 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Debug" -Name "EnabledTypes" -Value -129 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Debug" -Name "EnabledOptions" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Debug" -Name "EnableFileLogging" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Debug" -Name "EnableDiagLogging" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Debug" -Name "LoadDebugScripts" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Debug" -Name "AllowCinematicKeys" -Value 0 -Force
 
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\GameSpy"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\GameSpy" -Name "GameSpyBandwidthType" -Value 106 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\GameSpy" -Name "PreferredGameSpyNic" -Value -1224671222 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\GameSpy" -Name "GameSpyNickname" -Value """ -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\GameSpy" -Name "GameSpyQueryPort" -Value 25300 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\GameSpy" -Name "GameSpyGamePort" -Value 4848 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\GameSpy" -Name "SplashCount" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\GameSpy" -Name "DoneClientBandwidthTest" -Value 0 -Force
 
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Networking"
 
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Networking\Debug"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Networking\Debug" -Name "ShowFps" -Value 0 -Force
 
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Networking\Firewall"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Networking\Firewall" -Name "SendDelay" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Networking\Firewall" -Name "ForcePort" -Value 0 -Force
 
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Options"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Options" -Name "SkipQuitConfirmDialog" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Options" -Name "SkipIngameQuitConfirmDialog" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Options" -Name "CameraLockedToTurret" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Options" -Name "PermitDiagLogging" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Options" -Name "SkipAllIntroMovies" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Options" -Name "MaxScrollLines" -Value 30 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Options" -Name "ScrollLinesPersistTime" -Value 1092616192 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Options" -Name "ScreenUVBias" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Options" -Name "FPS" -Value 1 -Force
 
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Render"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceDepth" -Value 32 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceHeight" -Value $Display.Bounds.Height -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceWidth" -Value $Display.Bounds.Width -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceWindowed" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceTextureDepth" -Value 16 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "DriverVersionCheckDisabled" -Value 87 -Force
 
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Sound"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Sound" -Name "device name" -Value "Miles Fast 2D Positional Audio" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Sound" -Name "stereo" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Sound" -Name "bits" -Value 16 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Sound" -Name "hertz" -Value 44100 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Sound" -Name "music enabled" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Sound" -Name "sound enabled" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Sound" -Name "dialog enabled" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Sound" -Name "cinematic enabled" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Sound" -Name "music volume" -Value 31 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Sound" -Name "sound volume" -Value 39 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Sound" -Name "dialog volume" -Value 50 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Sound" -Name "cinematic volume" -Value 100 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Sound" -Name "speaker type" -Value 0 -Force
 
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Dynamic_LOD_Budget" -Value 10000 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Static_LOD_Budget" -Value 10000 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Dynamic_Projectors" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Static_Projectors" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Prelit_Mode" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Texture_Filter_Mode" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Shadow_Mode" -Value 3 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Texture_Resolution" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Surface_Effect_Detail" -Value 2 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Particle_Detail" -Value 2 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Mesh_Draw_Mode" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "NPatches (NOT SUPPORTED BY HARDWARE)" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "NPatches_Gap_Filling_Mode" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Enable_Auto_Transitions" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Difficulty" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Gamma_Correction" -Value 90 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Brightness" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Contrast" -Value 130 -Force
 
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\WOLSettings"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\WOLSettings" -Name "Options" -Value 21 -Force
 
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\WWAudio"
 
Read-Host
</syntaxhighlight>
}}
           
{{Game.Scripts.Uninstall
|Name = Uninstall Script
|Description =
|RequiresAdmin = True
|Contents =
<syntaxhighlight lang="powershell" line>
Remove-Item -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade" -Recurse
Remove-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade" -Recurse
</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 =
$NewName = $args[0]
<syntaxhighlight lang="powershell" line>
$User = New-Object System.Security.Principal.NTAccount($env:UserName)
# Trim a string down to a specified amount of characters
$SID = $User.Translate([System.Security.Principal.SecurityIdentifier]).value
if ($NewPlayerAlias.Length -gt 9) {
    $NewPlayerAlias = $NewPlayerAlias.Substring(0, 9);
}


# Trim a string down to a specified amount of characters
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Networking"
if ($NewName.Length -gt 9) {
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Networking\Options"
    $NewName = $NewName.Substring(0, 9);
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Networking\Options" -Name "MyLanName" -Value $NewPlayerAlias -Force
</syntaxhighlight>
}}
           
{{Game.Scripts.KeyChange
|Name = Key Change Script
|Description =
|RequiresAdmin = True
|Contents =
<syntaxhighlight lang="powershell" line>
$Key = $AllocatedKey
 
# Const, WOLData.key
$woldata = "04986627193318147921680928765690038703412631629541829427981390480026273565342680243441611903515001062268622186233202902241104710"
 
$Key = $Key.Replace("-", "")
 
for ($i = 0, $j = 0; $i -lt $woldata.Length; $i++, $j++) {
if ($j -eq $Key.Length) {
$j = 0
}
 
$value = (([int]$Key[$j] + [int]$woldata[$i] + 2) % 10 + '0')
 
$Key = $Key.Substring(0, $j) + [char]$value + $Key.Substring($j + 1)
}
}


New-ItemProperty -Path "registry::\HKEY_USERS\$SID\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Networking\Options" -Name "MyLanName" -Value "$NewName" -Force
# Creates or updates a key in the registry
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood" -Name "Serial" -Value "$Key" -Force
</syntaxhighlight>
</syntaxhighlight>
}}
}}

Revision as of 02:06, 6 January 2024

Developers
Westwood Studios
Publishers
Electronic Arts
Release Date
Windows: February 26, 2002
Genres
Shooter
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Configuration Tool {InstallDir}\WWConfig.exe False
Play {InstallDir}\Game.exe True

Install Script

This script requires admin access to function properly

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

# Non-destructively creates path in registry
New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood"
New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade"
New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade\Render"

# Creates or updates a key in the registry
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade" -Name "InstallPath" -Value "$InstallDirectory\Renegade.exe" -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade" -Name "SKU" -Value 3072 -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade" -Name "Version" -Value 65573 -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade" -Name "Language" -Value 0 -Force

New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceDepth" -Value 32 -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceHeight" -Value $Display.Bounds.Height -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceWidth" -Value $Display.Bounds.Width -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceWindowed" -Value 0 -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceTextureDepth" -Value 32 -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood"

New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade" -Name "SKU" -Value 3072 -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Debug"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Debug" -Name "ExitThreadOnAssert" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Debug" -Name "CompareExeVersionOnNetwork" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Debug" -Name "NewTCADO" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Debug" -Name "GameInitInProgress" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Debug" -Name "ApplicationCrashVersion" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Debug" -Name "EnabledDevices" -Value -2 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Debug" -Name "EnabledTypes" -Value -129 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Debug" -Name "EnabledOptions" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Debug" -Name "EnableFileLogging" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Debug" -Name "EnableDiagLogging" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Debug" -Name "LoadDebugScripts" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Debug" -Name "AllowCinematicKeys" -Value 0 -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\GameSpy"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\GameSpy" -Name "GameSpyBandwidthType" -Value 106 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\GameSpy" -Name "PreferredGameSpyNic" -Value -1224671222 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\GameSpy" -Name "GameSpyNickname" -Value """ -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\GameSpy" -Name "GameSpyQueryPort" -Value 25300 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\GameSpy" -Name "GameSpyGamePort" -Value 4848 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\GameSpy" -Name "SplashCount" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\GameSpy" -Name "DoneClientBandwidthTest" -Value 0 -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Networking"

New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Networking\Debug"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Networking\Debug" -Name "ShowFps" -Value 0 -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Networking\Firewall"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Networking\Firewall" -Name "SendDelay" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Networking\Firewall" -Name "ForcePort" -Value 0 -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Options"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Options" -Name "SkipQuitConfirmDialog" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Options" -Name "SkipIngameQuitConfirmDialog" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Options" -Name "CameraLockedToTurret" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Options" -Name "PermitDiagLogging" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Options" -Name "SkipAllIntroMovies" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Options" -Name "MaxScrollLines" -Value 30 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Options" -Name "ScrollLinesPersistTime" -Value 1092616192 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Options" -Name "ScreenUVBias" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Options" -Name "FPS" -Value 1 -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Render"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceDepth" -Value 32 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceHeight" -Value $Display.Bounds.Height -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceWidth" -Value $Display.Bounds.Width -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceWindowed" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "RenderDeviceTextureDepth" -Value 16 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Render" -Name "DriverVersionCheckDisabled" -Value 87 -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Sound"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Sound" -Name "device name" -Value "Miles Fast 2D Positional Audio" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Sound" -Name "stereo" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Sound" -Name "bits" -Value 16 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Sound" -Name "hertz" -Value 44100 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Sound" -Name "music enabled" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Sound" -Name "sound enabled" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Sound" -Name "dialog enabled" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Sound" -Name "cinematic enabled" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Sound" -Name "music volume" -Value 31 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Sound" -Name "sound volume" -Value 39 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Sound" -Name "dialog volume" -Value 50 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Sound" -Name "cinematic volume" -Value 100 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Sound" -Name "speaker type" -Value 0 -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Dynamic_LOD_Budget" -Value 10000 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Static_LOD_Budget" -Value 10000 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Dynamic_Projectors" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Static_Projectors" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Prelit_Mode" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Texture_Filter_Mode" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Shadow_Mode" -Value 3 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Texture_Resolution" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Surface_Effect_Detail" -Value 2 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Particle_Detail" -Value 2 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Mesh_Draw_Mode" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "NPatches (NOT SUPPORTED BY HARDWARE)" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "NPatches_Gap_Filling_Mode" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Enable_Auto_Transitions" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Difficulty" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Gamma_Correction" -Value 90 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Brightness" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\System Settings" -Name "Contrast" -Value 130 -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\WOLSettings"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\WOLSettings" -Name "Options" -Value 21 -Force

New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\WWAudio"

Read-Host

Uninstall Script

This script requires admin access to function properly

Remove-Item -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade" -Recurse
Remove-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade" -Recurse

Name Change Script

# Trim a string down to a specified amount of characters
if ($NewPlayerAlias.Length -gt 9) {
    $NewPlayerAlias = $NewPlayerAlias.Substring(0, 9);
}

New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Networking"
New-Item -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Networking\Options"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\Westwood\Renegade\Networking\Options" -Name "MyLanName" -Value $NewPlayerAlias -Force

Key Change Script

This script requires admin access to function properly

$Key = $AllocatedKey

# Const, WOLData.key
$woldata = "04986627193318147921680928765690038703412631629541829427981390480026273565342680243441611903515001062268622186233202902241104710"

$Key = $Key.Replace("-", "")

for ($i = 0, $j = 0; $i -lt $woldata.Length; $i++, $j++) {
	if ($j -eq $Key.Length) {
		$j = 0
	}

	$value = (([int]$Key[$j] + [int]$woldata[$i] + 2) % 10 + '0')

	$Key = $Key.Substring(0, $j) + [char]$value + $Key.Substring($j + 1)
}

# Creates or updates a key in the registry
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Westwood" -Name "Serial" -Value "$Key" -Force