Command & Conquer: Renegade
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