RollerCoaster Tycoon 2

Informations

Créateur Messages
Toumeno

Information

Cet installateur a été accepté par l'équipe.

Informations

Plate-formes :
Téléchargements : 19702
Wine: System

Retours d'expérience

Description

Amusement park management, 2002.

Type : RTS
Lan : -
Online : -
Company : Inforgames
Compatibility : 4/5

Code source

#!/bin/bash
# Date : (????-??-?? ??-??)
# Last revision : (2010-05-23 10-00)
# Wine version used : -
# Distribution used to test : -
# Author : Toumeno 
# Licence : Retail
# Depend : -
#
# CHANGELOG
# [Toumeno] (????-??-?? ??-??)
#   Initial script.
# [NSLW] (2010-05-23 10-00)
#   Updates.
# [Dadu042] (2020-06-06 15-00)
#   Wine 1.1.44 -> system
#   Refresh script

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

TITLE="RollerCoaster Tycoon 2"
PREFIX="RCT2"

# Starting the script

POL_SetupWindow_presentation "$TITLE" "Infogrames" "www.infogrames.com" "Toumeno" "$PREFIX"

POL_Call POL_Function_NoCDWarning

# Asking for CDROM and checking if it's correct one
POL_SetupWindow_message "Please insert $TITLE media into your disk drive."
POL_SetupWindow_cdrom
cd "$CDROM"
CHECK=$(find . -iwholename ./Setup.exe | cut -d'/' -f2)
POL_SetupWindow_check_cdrom "$CHECK"

POL_Wine_SelectPrefix "$PREFIX"

# Downloading specific Wine
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate

# Creating application's own prefix
POL_System_TmpCreate "$TITLE"

# Fetching PROGRAMFILES environmental variable
PROGRAMFILES="Program Files"
POL_LoadVar_PROGRAMFILES

# Starting installation
POL_SetupWindow_wait_next_signal "Installation in progress..." "$TITLE"
wine "$CDROM/$CHECK"
POL_Wine_WaitExit "$TITLE"

# Making shortcut
POL_SetupWindow_menu "What is your language version?" "Languages" "Polish~other" "~"
if [ "$APP_ANSWER" == "Polish" ]; then
POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Atari/Rollercoaster Tycoon 2" "rct2.exe" "" "$TITLE"
elif [ "$APP_ANSWER" == "other" ]; then
POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Infogrames/RollerCoaster Tycoon 2" "RCT2.exe" "" "$TITLE"
fi

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

POL_System_TmpDelete
POL_SetupWindow_Close
exit

Contributions

Filters:

Contribuer
Membre Messages
Dadu042 Samedi 6 Juin 2020 à 17:56
Dadu042

Information

Cette mise à jour a été acceptée par l'équipe

Differences

@@ -3,55 +3,57 @@
 # Last revision : (2010-05-23 10-00)
 # Wine version used : -
 # Distribution used to test : -
-# Author : Toumeno (last changes by NSLW)
+# Author : Toumeno 
 # Licence : Retail
 # Depend : -
+#
+# CHANGELOG
+# [Toumeno] (????-??-?? ??-??)
+#   Initial script.
+# [NSLW] (2010-05-23 10-00)
+#   Updates.
+# [Dadu042] (2020-06-06 15-00)
+#   Wine 1.1.44 -> system
+#   Refresh script
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
 TITLE="RollerCoaster Tycoon 2"
 PREFIX="RCT2"
-WORKINGWINEVERSION="2.22"
 
-POL_SetupWindow_make_icon_for_shortcut()
-{
-convert "$HOME/.local/share/icons/$2" -geometry 32X32 "$REPERTOIRE/icones/32/$1"
-}
-
-#starting the script
-wget http://upload.wikimedia.org/wikipedia/en/8/8b/RollerCoaster_Tycoon_2_cover.jpg --output-document="$REPERTOIRE/tmp/leftnotscaled.jpeg"
-convert "$REPERTOIRE/tmp/leftnotscaled.jpeg" -scale 150x356\! "$REPERTOIRE/tmp/left.jpeg"
-POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpeg"
- 
+# Starting the script
+
 POL_SetupWindow_presentation "$TITLE" "Infogrames" "www.infogrames.com" "Toumeno" "$PREFIX"
 
-#asking for CDROM and checking if it's correct one
+POL_Call POL_Function_NoCDWarning
+
+# Asking for CDROM and checking if it's correct one
 POL_SetupWindow_message "Please insert $TITLE media into your disk drive."
 POL_SetupWindow_cdrom
 cd "$CDROM"
 CHECK=$(find . -iwholename ./Setup.exe | cut -d'/' -f2)
 POL_SetupWindow_check_cdrom "$CHECK"
 
-select_prefix "$REPERTOIRE/wineprefix/$PREFIX"
+POL_Wine_SelectPrefix "$PREFIX"
+
+# Downloading specific Wine
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate
 
-#downloading specific Wine
-POL_SetupWindow_install_wine "$WORKINGWINEVERSION"
-Use_WineVersion "$WORKINGWINEVERSION"
-
-#creating application's own prefix
-POL_SetupWindow_prefixcreate 
- 
-#fetching PROGRAMFILES environmental variable
+# Creating application's own prefix
+POL_System_TmpCreate "$TITLE"
+
+# Fetching PROGRAMFILES environmental variable
 PROGRAMFILES="Program Files"
 POL_LoadVar_PROGRAMFILES
 
-#starting installation
+# Starting installation
 POL_SetupWindow_wait_next_signal "Installation in progress..." "$TITLE"
 wine "$CDROM/$CHECK"
-POL_SetupWindow_detect_exit
+POL_Wine_WaitExit "$TITLE"
 
-#making shortcut
+# Making shortcut
 POL_SetupWindow_menu "What is your language version?" "Languages" "Polish~other" "~"
 if [ "$APP_ANSWER" == "Polish" ]; then
 POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Atari/Rollercoaster Tycoon 2" "rct2.exe" "" "$TITLE"
@@ -59,12 +61,8 @@
 POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Infogrames/RollerCoaster Tycoon 2" "RCT2.exe" "" "$TITLE"
 fi
 
-Set_WineVersion_Assign "$WORKINGWINEVERSION" "$TITLE"
-POL_SetupWindow_make_icon_for_shortcut "$TITLE" "*_rct2.0.xpm"
-
 POL_SetupWindow_message "$TITLE has been installed successfully." "$TITLE"
 
-POL_SetupWindow_message_image "Please note that this game has a copy protection system\nand sadly, it prevents 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_System_TmpDelete
 POL_SetupWindow_Close
 exit
\ No newline at end of file

Nouveau code source

#!/bin/bash
# Date : (????-??-?? ??-??)
# Last revision : (2010-05-23 10-00)
# Wine version used : -
# Distribution used to test : -
# Author : Toumeno 
# Licence : Retail
# Depend : -
#
# CHANGELOG
# [Toumeno] (????-??-?? ??-??)
#   Initial script.
# [NSLW] (2010-05-23 10-00)
#   Updates.
# [Dadu042] (2020-06-06 15-00)
#   Wine 1.1.44 -> system
#   Refresh script

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

TITLE="RollerCoaster Tycoon 2"
PREFIX="RCT2"

# Starting the script

POL_SetupWindow_presentation "$TITLE" "Infogrames" "www.infogrames.com" "Toumeno" "$PREFIX"

POL_Call POL_Function_NoCDWarning

# Asking for CDROM and checking if it's correct one
POL_SetupWindow_message "Please insert $TITLE media into your disk drive."
POL_SetupWindow_cdrom
cd "$CDROM"
CHECK=$(find . -iwholename ./Setup.exe | cut -d'/' -f2)
POL_SetupWindow_check_cdrom "$CHECK"

POL_Wine_SelectPrefix "$PREFIX"

# Downloading specific Wine
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate

# Creating application's own prefix
POL_System_TmpCreate "$TITLE"

# Fetching PROGRAMFILES environmental variable
PROGRAMFILES="Program Files"
POL_LoadVar_PROGRAMFILES

# Starting installation
POL_SetupWindow_wait_next_signal "Installation in progress..." "$TITLE"
wine "$CDROM/$CHECK"
POL_Wine_WaitExit "$TITLE"

# Making shortcut
POL_SetupWindow_menu "What is your language version?" "Languages" "Polish~other" "~"
if [ "$APP_ANSWER" == "Polish" ]; then
POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Atari/Rollercoaster Tycoon 2" "rct2.exe" "" "$TITLE"
elif [ "$APP_ANSWER" == "other" ]; then
POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Infogrames/RollerCoaster Tycoon 2" "RCT2.exe" "" "$TITLE"
fi

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

POL_System_TmpDelete
POL_SetupWindow_Close
exit

Réponses

Dadu042 Samedi 6 Juin 2020 à 17:46
Dadu042

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

Wine 1.1.44 -> 2.22

Differences

@@ -12,7 +12,7 @@
 
 TITLE="RollerCoaster Tycoon 2"
 PREFIX="RCT2"
-WORKINGWINEVERSION="1.1.44"
+WORKINGWINEVERSION="2.22"
 
 POL_SetupWindow_make_icon_for_shortcut()
 {

Nouveau code source

#!/bin/bash
# Date : (????-??-?? ??-??)
# Last revision : (2010-05-23 10-00)
# Wine version used : -
# Distribution used to test : -
# Author : Toumeno (last changes by NSLW)
# Licence : Retail
# Depend : -

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

TITLE="RollerCoaster Tycoon 2"
PREFIX="RCT2"
WORKINGWINEVERSION="2.22"

POL_SetupWindow_make_icon_for_shortcut()
{
convert "$HOME/.local/share/icons/$2" -geometry 32X32 "$REPERTOIRE/icones/32/$1"
}

#starting the script
wget http://upload.wikimedia.org/wikipedia/en/8/8b/RollerCoaster_Tycoon_2_cover.jpg --output-document="$REPERTOIRE/tmp/leftnotscaled.jpeg"
convert "$REPERTOIRE/tmp/leftnotscaled.jpeg" -scale 150x356\! "$REPERTOIRE/tmp/left.jpeg"
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpeg"
 
POL_SetupWindow_presentation "$TITLE" "Infogrames" "www.infogrames.com" "Toumeno" "$PREFIX"

#asking for CDROM and checking if it's correct one
POL_SetupWindow_message "Please insert $TITLE media into your disk drive."
POL_SetupWindow_cdrom
cd "$CDROM"
CHECK=$(find . -iwholename ./Setup.exe | cut -d'/' -f2)
POL_SetupWindow_check_cdrom "$CHECK"

select_prefix "$REPERTOIRE/wineprefix/$PREFIX"

#downloading specific Wine
POL_SetupWindow_install_wine "$WORKINGWINEVERSION"
Use_WineVersion "$WORKINGWINEVERSION"

#creating application's own prefix
POL_SetupWindow_prefixcreate 
 
#fetching PROGRAMFILES environmental variable
PROGRAMFILES="Program Files"
POL_LoadVar_PROGRAMFILES

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

#making shortcut
POL_SetupWindow_menu "What is your language version?" "Languages" "Polish~other" "~"
if [ "$APP_ANSWER" == "Polish" ]; then
POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Atari/Rollercoaster Tycoon 2" "rct2.exe" "" "$TITLE"
elif [ "$APP_ANSWER" == "other" ]; then
POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Infogrames/RollerCoaster Tycoon 2" "RCT2.exe" "" "$TITLE"
fi

Set_WineVersion_Assign "$WORKINGWINEVERSION" "$TITLE"
POL_SetupWindow_make_icon_for_shortcut "$TITLE" "*_rct2.0.xpm"

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

POL_SetupWindow_message_image "Please note that this game has a copy protection system\nand sadly, it prevents 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

Réponses

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com