StarCraft: Difference between revisions

From LANCommander
(Created page with "Category:Games {{Game.InfoBox |Cover = cover.jpg |Developers = {{Game.InfoBox.Developer|Blizzard Entertainment}} |Publishers = {{Game.InfoBox.Publisher|Blizzard Entertainment}} |Release Date = {{Game.InfoBox.ReleaseDate|Windows|March 31, 1998}} |Genres = {{Game.InfoBox.Genre|Real Time Strategy (RTS)}} {{Game.InfoBox.Genre|Strategy}} | PCGamingWiki = StarCraft }} {{Game.ActionBox |Actions = {{Game.ActionBox.Row|Name = Play|Path = StarCraft.exe|Arguments = |WorkingDi...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
{{Game.InfoBox.ReleaseDate|Windows|March 31, 1998}}
{{Game.InfoBox.ReleaseDate|Windows|March 31, 1998}}
|Genres =
|Genres =
{{Game.InfoBox.Genre|Real Time Strategy (RTS)}}
{{Game.InfoBox.Genre|Real Time Strategy (RTS)}}{{Game.InfoBox.Genre|Strategy}}
{{Game.InfoBox.Genre|Strategy}}
|PCGamingWiki = StarCraft}}
| PCGamingWiki = StarCraft
}}


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


{{Game.Scripts.Install
{{Game.Scripts.Install
Line 23: Line 22:
|Description =  
|Description =  
|RequiresAdmin = False
|RequiresAdmin = False
|Contents = <syntaxhighlight lang="powershell" line>
|Contents =
$InstallDir = $PSScriptRoot
<syntaxhighlight lang="powershell" line>
 
cd "$InstallDirectory\StarCraft Key Changer"
cd "$InstallDir\StarCraft Key Changer"


Start-Process "Change StarCraft Key.exe" -ArgumentList "$InstallDir" -Wait
Start-Process "Change StarCraft Key.exe" -ArgumentList "$InstallDirectory" -Wait
</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>
$InstallDir = $PSScriptRoot
$NewPlayerAlias = $NewPlayerAlias.Split([IO.Path]::GetInvalidFileNameChars()) -join '_'


New-Item -ItemType Directory -Force -Path "$InstallDir\characters"
New-Item -ItemType Directory -Force -Path "$InstallDirectory\characters"
Copy-Item -Path "$InstallDir\Default.mpc" -Destination "$InstallDir\characters\$NewName.mpc"
Copy-Item -Path "$InstallDirectory\Default.mpc" -Destination "$InstallDirectory\characters\$NewPlayerAlias.mpc"
</syntaxhighlight>
</syntaxhighlight>
}}
}}

Latest revision as of 21:57, 8 January 2024

Developers
Blizzard Entertainment
Publishers
Blizzard Entertainment
Release Date
Windows: March 31, 1998
Genres
Real Time Strategy (RTS)Strategy
View at PCGamingWiki

Actions

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

Install Script

cd "$InstallDirectory\StarCraft Key Changer"

Start-Process "Change StarCraft Key.exe" -ArgumentList "$InstallDirectory" -Wait

Name Change Script

$NewPlayerAlias = $NewPlayerAlias.Split([IO.Path]::GetInvalidFileNameChars()) -join '_'

New-Item -ItemType Directory -Force -Path "$InstallDirectory\characters"
Copy-Item -Path "$InstallDirectory\Default.mpc" -Destination "$InstallDirectory\characters\$NewPlayerAlias.mpc"