gothickitty93 |
Mardi 6 September 2011 à 2:29
|
gothickitty93
|
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.
#!/bin/bash
# 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 : http://www.playonmac.com
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="RollerCoaster Tycoon"
PREFIX="RCTYCOON"
WORKING_WINE_VERSION="1.1.44"
# Starting the script
rm "$POL_USER_ROOT/tmp/*.jpg"
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "Chris Sawyer" "www.rollercoastertycoon.com" "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"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
#creating application's own prefix
POL_SetupWindow_prefixcreate
#set prefix path
POL_Wine_SelectPrefix "$PREFIX"
POL_SetupWindow_cdrom
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"
POL_SetupWindow_detect_exit
#fetching PROGRAMFILES environmental variable
PROGRAMFILES="Program Files"
POL_LoadVar_PROGRAMFILES
#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"
wine $APP_ANSWER
#
#
#
#
#
#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"
fi
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"
POL_SetupWindow_Close
exit Edité par gothickitty93
|
GNU_Raziel |
Mardi 6 September 2011 à 7:14
|
GNU_Raziel
|
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 |
Mardi 6 September 2011 à 22:40
|
gothickitty93
|
I have updated the script. Check first post.
|
GNU_Raziel |
Mercredi 7 September 2011 à 7:25
|
GNU_Raziel
|
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 |
Mercredi 7 September 2011 à 7:52
|
gothickitty93
|
Ok. I will continue once v4 documentation is available.
|
GNU_Raziel |
Mercredi 7 September 2011 à 11:28
|
GNU_Raziel
|
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 |
Dimanche 14 Janvier 2018 à 23:10
|
snostormjp
|
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.
http://www.moddb.com/downloads/mirror/110928/101/7966aa70b890f07b4e76b77ee57d2d31/?referer=https%3A%2F%2Fwww.google.co.uk%2F
Edité par snostormjp
|