Star Wars: Episode I - Racer: Difference between revisions

From LANCommander
No edit summary
No edit summary
 
Line 14: Line 14:
{{Game.ActionBox
{{Game.ActionBox
|Actions =  
|Actions =  
{{Game.ActionBox.Row|Name = Play|Path = {InstallDir}\SWEP1RCR.EXE|Arguments = |WorkingDirectory = |Primary = True}}
{{Game.ActionBox.Row|Name = Play|Path = SWEP1RCR.EXE|Arguments = |WorkingDirectory = {InstallDir}|Primary = True}}
{{Game.ActionBox.Row|Name = Video Settings|Path = {InstallDir}\SWEP1RCR.EXE|Arguments = -v|WorkingDirectory = |Primary = False}}
{{Game.ActionBox.Row|Name = Video Settings|Path = SWEP1RCR.EXE|Arguments = -v|WorkingDirectory = {InstallDir}|Primary = False}}
}}
}}


Line 22: Line 22:
|Name = Install Script
|Name = Install Script
|Description =  
|Description =  
|RequiresAdmin = True
|RequiresAdmin = False
|Contents =
|Contents =
<syntaxhighlight lang="powershell" line>
<syntaxhighlight lang="powershell" line>
Line 28: Line 28:
$Display = Get-PrimaryDisplay
$Display = Get-PrimaryDisplay


New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\LucasArts Entertainment Company LLC"
$VirtualStore = "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE"
New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer"
New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0"


New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "CD Path" -Value "." -Force
New-Item -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC"
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Display" -Value "dgVoodoo DirectX Wrapper" -Force
New-Item -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer"
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Display Height" -Value $Display.Bounds.Width -Force
New-Item -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0"
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Display Width" -Value $Display.Bounds.Height -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "FullScreen" -Value 1 -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Install Path" -Value $InstallDirectory -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Source Dir" -Value $InstallDirectory -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Source Path" -Value $InstallDirectory -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "InstallType" -Value 9 -Force


New-Item -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\DirectPlay\Service Providers\IPX Connection For DirectPlay"
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "CD Path" -Value "." -Force
New-ItemProperty -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\DirectPlay\Service Providers\IPX Connection For DirectPlay" -Name "DescriptionW" -Value "IPX Connection For DirectPlay" -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Display" -Value "dgVoodoo DirectX Wrapper" -Force
New-ItemProperty -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\DirectPlay\Service Providers\IPX Connection For DirectPlay" -Name "dwReserved1" -Value 50 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Display Height" -Value $Display.Bounds.Width -Force
New-ItemProperty -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\DirectPlay\Service Providers\IPX Connection For DirectPlay" -Name "dwReserved2" -Value 0 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Display Width" -Value $Display.Bounds.Height -Force
New-ItemProperty -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\DirectPlay\Service Providers\IPX Connection For DirectPlay" -Name "Guid" -Value "{685BC400-9D2C-11cf-A9CD-00AA006886E3}" -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "FullScreen" -Value 1 -Force
New-ItemProperty -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\DirectPlay\Service Providers\IPX Connection For DirectPlay" -Name "Path" -Value "dpwsockx.dll" -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Install Path" -Value $InstallDirectory -Force
New-ItemProperty -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\DirectPlay\Service Providers\IPX Connection For DirectPlay" -Name "DescriptionA" -Value "IPX Connection For DirectPlay" -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Source Dir" -Value $InstallDirectory -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Source Path" -Value $InstallDirectory -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "InstallType" -Value 9 -Force


New-Item -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\DirectPlay\Services\{5146ab8cb6b1ce11920c00aa006c4972}"
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Display Height" -Value $Display.Bounds.Height -Force
New-ItemProperty -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\DirectPlay\Services\{5146ab8cb6b1ce11920c00aa006c4972}" -Name "Description" -Value "WinSock IPX Connection For DirectPlay" -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Display Width" -Value $Display.Bounds.Width -Force
New-ItemProperty -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\DirectPlay\Services\{5146ab8cb6b1ce11920c00aa006c4972}" -Name "Path" -Value "%SystemRoot%\system32\dpserial.dll" -PropertyType ExpandString -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Display" -Value "dgVoodoo DirectX Wrapper" -Force


New-Item -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\DirectPlay\Services\{5146ab8cb6b1ce11920c00aa006c4972}\Players"
Write-ReplaceContentInFile -Pattern '^Resolution(.+)' -Substitution "Resolution = desktop" -FilePath "$InstallDirectory\dgVoodoo.conf"
 
</syntaxhighlight>
New-Item -Path "registry::\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\DirectPlay\Services\{5146ab8cb6b1ce11920c00aa006c4972}\Sessions"
}}
 
           
New-Item -Path -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\LucasArts Entertainment Company LLC"
{{Game.Scripts.Uninstall
New-Item -Path -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer"
|Name = Uninstall Script
New-Item -Path -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0"
|Description =
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Display Height" -Value $Display.Bounds.Height -Force
|RequiresAdmin = False
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Display Width" -Value $Display.Bounds.Width -Force
|Contents =
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Display" -Value "dgVoodoo DirectX Wrapper" -Force
<syntaxhighlight lang="powershell" line>
Remove-Item -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer" -Recurse
</syntaxhighlight>
</syntaxhighlight>
}}
}}

Latest revision as of 00:49, 22 February 2024

Developers
LucasArts
Publishers
NintendoGradienteLucasArtsAspyr Media
Release Date
Windows: May 18, 1999
Genres
Racing
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play SWEP1RCR.EXE {InstallDir} True
Video Settings SWEP1RCR.EXE -v {InstallDir} False

Install Script

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

$VirtualStore = "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE"

New-Item -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC"
New-Item -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer"
New-Item -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0"

New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "CD Path" -Value "." -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Display" -Value "dgVoodoo DirectX Wrapper" -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Display Height" -Value $Display.Bounds.Width -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Display Width" -Value $Display.Bounds.Height -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "FullScreen" -Value 1 -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Install Path" -Value $InstallDirectory -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Source Dir" -Value $InstallDirectory -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Source Path" -Value $InstallDirectory -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "InstallType" -Value 9 -Force

New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Display Height" -Value $Display.Bounds.Height -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Display Width" -Value $Display.Bounds.Width -Force
New-ItemProperty -Path "$VirtualStore\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Display" -Value "dgVoodoo DirectX Wrapper" -Force

Write-ReplaceContentInFile -Pattern '^Resolution(.+)' -Substitution "Resolution = desktop" -FilePath "$InstallDirectory\dgVoodoo.conf"

Uninstall Script

Remove-Item -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer" -Recurse

Name Change Script

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

New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0"
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "FullScreen" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Fix Flicker" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "DevMode" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "UseFett" -Value 0 -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Last Game" -Value "$NewPlayerAlias's Game" -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0" -Name "Last Player" -Value "$NewPlayerAlias" -Force