Grand Theft Auto 2: Difference between revisions

From LANCommander
(Created page with "Category:Games {{Game.InfoBox |Cover = cover.jpg |Developers = {{Game.InfoBox.Developer|DMA Design}} |Publishers = {{Game.InfoBox.Publisher|Rockstar Games}} |Release Date = {{Game.InfoBox.ReleaseDate|Windows|October 26, 1999}} |Genres = {{Game.InfoBox.Genre|Arcade}} | PCGamingWiki = Grand_Theft_Auto_2 }} {{Game.ActionBox |Actions = {{Game.ActionBox.Row|Name = Play Singleplayer|Path = gta2.exe|Arguments = |WorkingDirectory = |Primary = True}} {{Game.ActionBox.Row|Na...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
{{Game.InfoBox.Developer|DMA Design}}
{{Game.InfoBox.Developer|DMA Design}}
|Publishers =
|Publishers =
{{Game.InfoBox.Publisher|Rockstar Games}}
{{Game.InfoBox.Publisher|Take-Two Interactive}}{{Game.InfoBox.Publisher|Rockstar Games}}
|Release Date =
|Release Date =
{{Game.InfoBox.ReleaseDate|Windows|October 26, 1999}}
{{Game.InfoBox.ReleaseDate|Windows|October 22, 1999}}
|Genres =
|Genres =
{{Game.InfoBox.Genre|Arcade}}
{{Game.InfoBox.Genre|Racing}}{{Game.InfoBox.Genre|Shooter}}
| PCGamingWiki = Grand_Theft_Auto_2
|PCGamingWiki = Grand_Theft_Auto_2}}
}}


{{Game.ActionBox
{{Game.ActionBox
|Actions =  
|Actions =  
{{Game.ActionBox.Row|Name = Play Singleplayer|Path = gta2.exe|Arguments = |WorkingDirectory = |Primary = True}}
{{Game.ActionBox.Row|Name = Play Singleplayer|Path = {InstallDir}\gta2.exe|Arguments = |WorkingDirectory = |Primary = True}}
{{Game.ActionBox.Row|Name = Run GTA2 Manager|Path = gta2 manager.exe|Arguments = |WorkingDirectory = |Primary = False}}
{{Game.ActionBox.Row|Name = Run GTA2 Manager|Path = {InstallDir}\gta2 manager.exe|Arguments = |WorkingDirectory = |Primary = False}}
{{Game.ActionBox.Row|Name = Play Multiplayer|Path = gta2 manager.exe|Arguments = |WorkingDirectory = |Primary = True}}
{{Game.ActionBox.Row|Name = Play Multiplayer|Path = {InstallDir}\gta2 manager.exe|Arguments = |WorkingDirectory = |Primary = True}}
}}
}}


{{Game.Scripts.Uninstall
|Name = Uninstall Script
|Description =
|RequiresAdmin = False
|Contents =
<syntaxhighlight lang="powershell" line>
Remove-Item -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\DMA Design Ltd\GTA2" -Recurse
</syntaxhighlight>
}}
           
{{Game.Scripts.NameChange
{{Game.Scripts.NameChange
|Name = Name Change Script
|Name = Name Change Script
|Description =  
|Description =  
|RequiresAdmin = True
|RequiresAdmin = False
|Contents = <syntaxhighlight lang="powershell" line>
|Contents =
$NewName = $args[0]
<syntaxhighlight lang="powershell" line>
 
if ($NewPlayerAlias.Length -gt 24) {
if ($NewName.Length -gt 24) {
     $NewPlayerAlias = $NewPlayerAlias.Substring(0, 24)
     $NewName = $NewName.Substring(0, 24)
}
}


New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\DMA Design Ltd"
New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\DMA Design Ltd"
New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\DMA Design Ltd\GTA2"
New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\DMA Design Ltd\GTA2"
New-Item -Path "HKLM:\SOFTWARE\WOW6432Node\DMA Design Ltd\GTA2\Network"
New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\DMA Design Ltd\GTA2\Network"


New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\DMA Design Ltd\GTA2\Network" -Name "PlayerName" -Value $NewName -Force
New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\DMA Design Ltd\GTA2\Network" -Name "PlayerName" -Value $NewPlayerAlias -Force
</syntaxhighlight>
</syntaxhighlight>
}}
}}

Latest revision as of 00:43, 22 February 2024

Developers
DMA Design
Publishers
Take-Two InteractiveRockstar Games
Release Date
Windows: October 22, 1999
Genres
RacingShooter
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play Singleplayer {InstallDir}\gta2.exe True
Run GTA2 Manager {InstallDir}\gta2 manager.exe False
Play Multiplayer {InstallDir}\gta2 manager.exe True

Uninstall Script

Remove-Item -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\DMA Design Ltd\GTA2" -Recurse

Name Change Script

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

New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\DMA Design Ltd"
New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\DMA Design Ltd\GTA2"
New-Item -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\DMA Design Ltd\GTA2\Network"

New-ItemProperty -Path "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\DMA Design Ltd\GTA2\Network" -Name "PlayerName" -Value $NewPlayerAlias -Force