RollerCoaster Tycoon 2

From LANCommander
Revision as of 21:54, 8 January 2024 by DoctorDalek (talk | contribs) (Created new page for RollerCoaster Tycoon 2)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Developers
Chris Sawyer Productions
Publishers
Atari, Inc.Infogrames
Release Date
Windows: October 15, 2002
Genres
SimulatorReal Time Strategy (RTS)
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play {InstallDir}/openrct2.exe True

Install Script

Copies the bundled template profile directory to the user's Documents\OpenRCT2 directory.

$Documents = [Environment]::GetFolderPath("MyDocuments")

if (!Test-Path "$Documents\OpenRCT2") {
    Copy-Item -Path "$InstallDirectory\Profile" -Destination "$Documents\OpenRCT2" -Recurse
}

Name Change Script

Changes the name of the player in the config.ini file in the OpenRCT2 profile directory.

$Documents = [Environment]::GetFolderPath("MyDocuments")
Write-ReplaceContentInFile -Pattern '^player_name = "(.+)"' -Substitution "player_name ""$NewPlayerAlias""" -FilePath "$Documents\OpenRCT2\config.ini"