Tony Hawk's Pro Skater 2: Difference between revisions
DoctorDalek (talk | contribs) (Created page with "Category:Games {{Game.InfoBox |Cover = cover.jpg |Developers = {{Game.InfoBox.Developer|Westlake Interactive}} {{Game.InfoBox.Developer|Neversoft Entertainment}} |Publishers = {{Game.InfoBox.Publisher|Activision}} {{Game.InfoBox.Publisher|Aspyr Media}} |Release Date = {{Game.InfoBox.ReleaseDate|Windows|September 20, 2000}} |Genres = {{Game.InfoBox.Genre|Sport}} | PCGamingWiki = Tony_Hawk%27s_Pro_Skater_2 }} {{Game.ActionBox |Actions = {{Game.ActionBox.Row|Name = Pl...") |
DoctorDalek (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
|Cover = cover.jpg | |Cover = cover.jpg | ||
|Developers = | |Developers = | ||
{{Game.InfoBox.Developer|Westlake Interactive}} | {{Game.InfoBox.Developer|Westlake Interactive}}{{Game.InfoBox.Developer|Neversoft Entertainment}} | ||
{{Game.InfoBox.Developer|Neversoft Entertainment}} | |||
|Publishers = | |Publishers = | ||
{{Game.InfoBox.Publisher|Activision}} | {{Game.InfoBox.Publisher|Activision}}{{Game.InfoBox.Publisher|Aspyr Media}} | ||
{{Game.InfoBox.Publisher|Aspyr Media}} | |||
|Release Date = | |Release Date = | ||
{{Game.InfoBox.ReleaseDate|Windows|September 20, 2000}} | {{Game.InfoBox.ReleaseDate|Windows|September 20, 2000}} | ||
|Genres = | |Genres = | ||
{{Game.InfoBox.Genre|Sport}} | {{Game.InfoBox.Genre|Sport}} | ||
| PCGamingWiki = Tony_Hawk%27s_Pro_Skater_2 | |PCGamingWiki = Tony_Hawk%27s_Pro_Skater_2}} | ||
}} | |||
{{Game.ActionBox | {{Game.ActionBox | ||
|Actions = | |Actions = | ||
{{Game.ActionBox.Row|Name = Play|Path = THawk2.exe|Arguments = |WorkingDirectory = |Primary = True}} | {{Game.ActionBox.Row|Name = Play|Path = {InstallDir}\THawk2.exe|Arguments = |WorkingDirectory = |Primary = True}} | ||
{{Game.ActionBox.Row|Name = Setup|Path = THPS2Setup.exe|Arguments = |WorkingDirectory = |Primary = False}} | {{Game.ActionBox.Row|Name = Setup|Path = {InstallDir}\THPS2Setup.exe|Arguments = |WorkingDirectory = |Primary = False}} | ||
}} | }} | ||
{{Game.Scripts. | |||
|Name = | {{Game.Scripts.Install | ||
|Name = Install Script | |||
|Description = | |Description = | ||
|RequiresAdmin = False | |RequiresAdmin = False | ||
|Contents = <syntaxhighlight lang="powershell" line> | |Contents = | ||
$ | <syntaxhighlight lang="powershell" line> | ||
$ | # Bounds are accessible by $Display.Bounds.Width and $Display.Bounds.Height | ||
$Display = Get-PrimaryDisplay | |||
# Bounds accessible via $Resolution.Height, $Resolution.Width | |||
$Resolution = Convert-AspectRatio -Width $Display.Bounds.Width -Height $Display.Bounds.Height -AspectRatio (4 / 3) | |||
Write-ReplaceContentInFile - | Write-ReplaceContentInFile -Pattern '^DATAPATH=(.+)' -Substitution "DATAPATH=$InstallDirectory" -FilePath "$InstallDirectory\TH2_OPT.CFG" | ||
Write-ReplaceContentInFile -Pattern '^MUSPATH=(.+)' -Substitution "MUSPATH=$InstallDirectory\Music" -FilePath "$InstallDirectory\TH2_OPT.CFG" | |||
Write-ReplaceContentInFile -Pattern '^MOVPATH=(.+)' -Substitution "MOVPATH=$InstallDirectory\Movies" -FilePath "$InstallDirectory\TH2_OPT.CFG" | |||
Write-ReplaceContentInFile -Pattern 'h:(\d+), v:(\d+)' -Substitution "h:$($Resolution.Width), v:$($Resolution.Height)" -FilePath "$InstallDirectory\dgVoodoo.conf" | |||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} | ||
{{Game.Scripts. | {{Game.Scripts.NameChange | ||
|Name = | |Name = Name Change Script | ||
|Description = | |Description = | ||
|RequiresAdmin = False | |RequiresAdmin = False | ||
|Contents = <syntaxhighlight lang="powershell" line> | |Contents = | ||
<syntaxhighlight lang="powershell" line> | |||
Write-ReplaceContentInFile -Pattern '^NAME=(.+)' -Substitution "NAME=$NewPlayerAlias" -FilePath "$InstallDirectory\TH2_OPT.CFG" | |||
Write-ReplaceContentInFile - | |||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} |
Latest revision as of 21:58, 8 January 2024
Developers | |
---|---|
Westlake InteractiveNeversoft Entertainment | |
Publishers | |
ActivisionAspyr Media | |
Release Date | |
Windows: September 20, 2000 | |
Genres | |
Sport | |
View at PCGamingWiki |
Actions
Name | Path | Arguments | Working Directory | Primary |
---|---|---|---|---|
Play | {InstallDir}\THawk2.exe | True | ||
Setup | {InstallDir}\THPS2Setup.exe | False |
Install Script
# Bounds are accessible by $Display.Bounds.Width and $Display.Bounds.Height
$Display = Get-PrimaryDisplay
# Bounds accessible via $Resolution.Height, $Resolution.Width
$Resolution = Convert-AspectRatio -Width $Display.Bounds.Width -Height $Display.Bounds.Height -AspectRatio (4 / 3)
Write-ReplaceContentInFile -Pattern '^DATAPATH=(.+)' -Substitution "DATAPATH=$InstallDirectory" -FilePath "$InstallDirectory\TH2_OPT.CFG"
Write-ReplaceContentInFile -Pattern '^MUSPATH=(.+)' -Substitution "MUSPATH=$InstallDirectory\Music" -FilePath "$InstallDirectory\TH2_OPT.CFG"
Write-ReplaceContentInFile -Pattern '^MOVPATH=(.+)' -Substitution "MOVPATH=$InstallDirectory\Movies" -FilePath "$InstallDirectory\TH2_OPT.CFG"
Write-ReplaceContentInFile -Pattern 'h:(\d+), v:(\d+)' -Substitution "h:$($Resolution.Width), v:$($Resolution.Height)" -FilePath "$InstallDirectory\dgVoodoo.conf"
Name Change Script
Write-ReplaceContentInFile -Pattern '^NAME=(.+)' -Substitution "NAME=$NewPlayerAlias" -FilePath "$InstallDirectory\TH2_OPT.CFG"