The forum

[Script] RollerCoaster Tycoon (Original)

Author Replies
gothickitty93 Tuesday 6 September 2011 at 2:29

UPDATED 2011-09-06

I have updated the script to try and make it v4 compliant. Not sure if i did this, so please help me out by posting suggestions on this script.

This is my first time doing something like this, so there is probably errors in it that need to be fixed. There are different publishers for this game, and each one has a different installation directory. I have the Hasbro Interactive version, but I need someone with the Infograms version to test (and all other versions if there is more, so I can add them.) Feel free to post changes.
# Date : (2011-09-06 12-52)
# Last revision : (2011-09-05 12:51)
# Wine version used : 1.1.44
# Distribution used to test : Ubuntu 11.10 Beta 1
# Author : GothicKitty93 (based on work by NSLW & GNU_Raziel)
# Licence : Retail
# Only For :

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="RollerCoaster Tycoon"

# Starting the script
rm "$POL_USER_ROOT/tmp/*.jpg"

POL_SetupWindow_presentation "$TITLE" "Chris Sawyer" "" "GothicKitty93" "$PREFIX"

#asking for CDROM and checking if it's correct one
POL_SetupWindow_message "Please insert the $TITLE media into your disc drive."

#downloading specific Wine
POL_System_SetArch "auto"

#creating application's own prefix

#set prefix path
POL_Wine_SelectPrefix "$PREFIX"

cd "$CDROM"
CHECK=$(find . -iwholename ./Setup.exe | cut -d'/' -f2)
POL_SetupWindow_check_cdrom "$CHECK"

#starting installation
POL_SetupWindow_wait_next_signal "Installation is in progress..." "$TITLE"
wine "$CDROM/$CHECK"

#fetching PROGRAMFILES environmental variable
PROGRAMFILES="Program Files"

#install external libraries
POL_Call POL_Install_dinput
POL_Call POL_Install_directmusic
POL_Call POL_Install_directplay
POL_Call POL_Install_dsound

#install patch?
POL_SetupWindow_browse "$TITLE must be patched to the latest version\\nfor compatability with PlayOnLinux. Please\\nbrowse to the RCT-US.exe file." "$TITLE"

#making shortcut
POL_SetupWindow_menu "Who is the publisher of this version?" "Publisher" "Infograms~Hasbro Interactive" "~"
if [ "$APP_ANSWER" == "Infograms" ]; then
POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Infograms/RollerCoaster Tycoon" "rct.exe" "" "$TITLE"
elif [ "$APP_ANSWER" == "Hasbro Interactive" ]; then
POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Hasbro Interactive/RollerCoaster Tycoon" "rct.exe" "" "$TITLE"

Set_WineVersion_Assign "$WORKING_WINE_VERSION" "$TITLE"
POL_SetupWindow_make_icon_for_shortcut "$TITLE" "*_rct.xpm"

POL_SetupWindow_message "$TITLE has been installed successfully." "$TITLE"

POL_SetupWindow_message "Please note that this game has a copy protection system\\nand sadly, it might stop Wine from running the game.\\n\\nPlayOnLinux will not provide any help concerning any illegal\\nstuff." "Note about copy protection" "$PLAYONLINUX/themes/tango/warning.png"


Edited by gothickitty93

GNU_Raziel Tuesday 6 September 2011 at 7:14

old v3 script (not even v3 compliant) are not validated anymore.

If you want to know how a v4 script is, check, for example, Assassin's Creed script, it will help you to make a v4 one.
gothickitty93 Tuesday 6 September 2011 at 22:40

I have updated the script. Check first post.
GNU_Raziel Wednesday 7 September 2011 at 7:25

Better but still not v4, we cannot validate it until its v4 compliant. A proper v4 doc will be done soon to help contributors.
gothickitty93 Wednesday 7 September 2011 at 7:52

Ok. I will continue once v4 documentation is available.
GNU_Raziel Wednesday 7 September 2011 at 11:28

A side note, we separate game installation from patches, when it's not an auto-patch system (like steam). If the game must be patched to work, add a message at the end of the installation, to invite users to launch specific patch script.
snostormjp Sunday 14 January 2018 at 23:10

I used this script and the Latest Wine Versions 3.0-rc5 or 6 , seems to have solved alot of the  Copy Protection issues , If

you have issues installing try setting it to use window mode.  

Here is the link to the  Upgrade file to upgrade Roller coaster Tycoon Version.

Edited by snostormjp