Toca Race Driver 3

Informations

Creator Wiadmości
thib25 Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 13713
Wine: System

Feedbacks

Description

2006.

 

PC Gaming wiki.

Screenshots

MiniatureMiniature

Source code

#!/bin/bash
# Date : (2010-01-23  20-30)
# Last revision : See changelog
# Wine version used : 3.0.3
# Distribution used to test : Xubuntu 18.04 x64
# Author : thib25
# Licence : Retail 
#
# CHANGELOG:
# thib25 (2010-01-23)
#   First script. Distribution used to test : Ubuntu 9.10.
# Dadu042 (2019-08-01)
#   Wine 1.1.35 -> 2.22 Because on Xubuntu (18.04 x64), once the retail DVD installed Wine crashed before to show anything (same with Wine 1.9.24).
#   Fix link to Wikipedia picture.
#   Add (right click) link to readme.html
#   Add a link to HardwareSetup.exe
#   Half standardize the NoCD warning.
# Dadu042 (2019-08-01)
#   Wine 2.22 -> 3.0.3
#
# KNOWN ISSUES:
# 

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

TITLE="Toca Race Driver 3"
NAME="Toca Race Driver 3"
PREFIX="TRD3"
WORKING_WINE_VERSION="3.0.3"

if [ "$POL_LANG" == "fr" ]; then
        INSTALLATION="Installation en cours..."
        ATTENTION="Veuillez noter que ce jeu a une protection anti-copie
        et que malheuresement, cela empêche wine de lancer le jeu.
 
        PlayOnLinux ne fournira aucune aide concernant tout travail illégal."
        ATTENTIONT="Note à propos de la protection anti-copie"
        POLEND="$NAME a été installé avec succès."
else
        INSTALLATION="Installation in progress..."
        ATTENTION="Please note that this game has a copy protection system
        and sadly, it prevents Wine from running the game.
 
        PlayOnLinux will not provide any help concerning any illegal stuff."
        ATTENTIONT="Note about copy protection"
        POLEND="$NAME has been installed succesfully."
fi


wget https://upload.wikimedia.org/wikipedia/en/f/f0/TOCA_Race_Driver_3_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 "$NAME" "Codemasters" "http://www.codemasters.com/tocaracedriver3/" "thib25" "$PREFIX"

if [ "$POL_LANG" == "fr" ]; then
        POL_SetupWindow_message_image "$ATTENTION" "$ATTENTIONT" "$PLAYONLINUX/themes/tango/warning.png"
        # POL_Call POL_Function_NoCDWarning
else
        # POL_SetupWindow_message_image "$ATTENTION" "$ATTENTIONT" "$PLAYONLINUX/themes/tango/warning.png"
        POL_Call POL_Function_NoCDWarning
fi
  
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "RD3.ico"
  
select_prefix "$REPERTOIRE/wineprefix/$PREFIX"
POL_SetupWindow_prefixcreate
 
PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%" |tr -d '\015' | tr -d '\010'`
PROGRAMFILES=${PROGRAMFILES:3}
  
POL_SetupWindow_wait_next_signal "$INSTALLATION" "$NAME"
wine "$CDROM/setup.exe"
POL_SetupWindow_detect_exit
  
# Make custom Icon
convert "$CDROM/RD3.ico" -geometry 32x32 "$REPERTOIRE/icones/32/$NAME"
  
POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Codemasters/Race Driver 3" "RD3.exe" "$NAME" "$NAME"
POL_Shortcut_Document "$NAME" "readme.html"
POL_Shortcut "HardwareSetup.exe" "$NAME (Hardware setup)" ""

POL_SetupWindow_install_wine "3.0.3"
Set_WineVersion_Assign "3.0.3" "$NAME"

# Select GPU (if there are 2)
POL_Call POL_Install_VideoDriver

POL_SetupWindow_message "$POLEND" "$NAME"

POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Wiadmości
Dadu042 Thursday 1 August 2019 at 19:41
Dadu042
Moderator

Information

This update has been approved by the team.

Wiadmości

Note: Wine v2.22+ seems to workaround the retail DVD's DRM.

Differences

@@ -1,7 +1,7 @@
 #!/bin/bash
 # Date : (2010-01-23  20-30)
 # Last revision : See changelog
-# Wine version used : 2.22
+# Wine version used : 3.0.3
 # Distribution used to test : Xubuntu 18.04 x64
 # Author : thib25
 # Licence : Retail 
@@ -13,16 +13,21 @@
 #   Wine 1.1.35 -> 2.22 Because on Xubuntu (18.04 x64), once the retail DVD installed Wine crashed before to show anything (same with Wine 1.9.24).
 #   Fix link to Wikipedia picture.
 #   Add (right click) link to readme.html
+#   Add a link to HardwareSetup.exe
+#   Half standardize the NoCD warning.
+# Dadu042 (2019-08-01)
+#   Wine 2.22 -> 3.0.3
 #
 # KNOWN ISSUES:
 # 
-  
+
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-  
+
+TITLE="Toca Race Driver 3"
 NAME="Toca Race Driver 3"
 PREFIX="TRD3"
-WORKING_WINE_VERSION="2.22"
+WORKING_WINE_VERSION="3.0.3"
 
 if [ "$POL_LANG" == "fr" ]; then
 	INSTALLATION="Installation en cours..."
@@ -31,7 +36,7 @@
  
 	PlayOnLinux ne fournira aucune aide concernant tout travail illégal."
 	ATTENTIONT="Note à propos de la protection anti-copie"
-	POLEND="$NAME a été installé avec succès"
+	POLEND="$NAME a été installé avec succès."
 else
 	INSTALLATION="Installation in progress..."
 	ATTENTION="Please note that this game has a copy protection system
@@ -39,15 +44,23 @@
  
 	PlayOnLinux will not provide any help concerning any illegal stuff."
 	ATTENTIONT="Note about copy protection"
-	POLEND="$NAME has been installed succesfully"
+	POLEND="$NAME has been installed succesfully."
 fi
-  
-  
+
+
 wget https://upload.wikimedia.org/wikipedia/en/f/f0/TOCA_Race_Driver_3_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 "$NAME" "Codemasters" "http://www.codemasters.com/tocaracedriver3/" "thib25" "$PREFIX"
+
+if [ "$POL_LANG" == "fr" ]; then
+	POL_SetupWindow_message_image "$ATTENTION" "$ATTENTIONT" "$PLAYONLINUX/themes/tango/warning.png"
+	# POL_Call POL_Function_NoCDWarning
+else
+	# POL_SetupWindow_message_image "$ATTENTION" "$ATTENTIONT" "$PLAYONLINUX/themes/tango/warning.png"
+	POL_Call POL_Function_NoCDWarning
+fi
   
 POL_SetupWindow_cdrom
 POL_SetupWindow_check_cdrom "RD3.ico"
@@ -62,16 +75,15 @@
 wine "$CDROM/setup.exe"
 POL_SetupWindow_detect_exit
   
-# Make Icon
+# Make custom Icon
 convert "$CDROM/RD3.ico" -geometry 32x32 "$REPERTOIRE/icones/32/$NAME"
   
 POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Codemasters/Race Driver 3" "RD3.exe" "$NAME" "$NAME"
-POL_Shortcut_Document "$TITLE" "readme.html"
-
-POL_SetupWindow_install_wine "2.22"
-Set_WineVersion_Assign "2.22" "$NAME"
+POL_Shortcut_Document "$NAME" "readme.html"
+POL_Shortcut "HardwareSetup.exe" "$NAME (Hardware setup)" ""
 
-POL_SetupWindow_message_image "$ATTENTION" "$ATTENTIONT" "$PLAYONLINUX/themes/tango/warning.png"
+POL_SetupWindow_install_wine "3.0.3"
+Set_WineVersion_Assign "3.0.3" "$NAME"
 
 # Select GPU (if there are 2)
 POL_Call POL_Install_VideoDriver

New source code

#!/bin/bash
# Date : (2010-01-23  20-30)
# Last revision : See changelog
# Wine version used : 3.0.3
# Distribution used to test : Xubuntu 18.04 x64
# Author : thib25
# Licence : Retail 
#
# CHANGELOG:
# thib25 (2010-01-23)
#   First script. Distribution used to test : Ubuntu 9.10.
# Dadu042 (2019-08-01)
#   Wine 1.1.35 -> 2.22 Because on Xubuntu (18.04 x64), once the retail DVD installed Wine crashed before to show anything (same with Wine 1.9.24).
#   Fix link to Wikipedia picture.
#   Add (right click) link to readme.html
#   Add a link to HardwareSetup.exe
#   Half standardize the NoCD warning.
# Dadu042 (2019-08-01)
#   Wine 2.22 -> 3.0.3
#
# KNOWN ISSUES:
# 

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

TITLE="Toca Race Driver 3"
NAME="Toca Race Driver 3"
PREFIX="TRD3"
WORKING_WINE_VERSION="3.0.3"

if [ "$POL_LANG" == "fr" ]; then
        INSTALLATION="Installation en cours..."
        ATTENTION="Veuillez noter que ce jeu a une protection anti-copie
        et que malheuresement, cela empêche wine de lancer le jeu.
 
        PlayOnLinux ne fournira aucune aide concernant tout travail illégal."
        ATTENTIONT="Note à propos de la protection anti-copie"
        POLEND="$NAME a été installé avec succès."
else
        INSTALLATION="Installation in progress..."
        ATTENTION="Please note that this game has a copy protection system
        and sadly, it prevents Wine from running the game.
 
        PlayOnLinux will not provide any help concerning any illegal stuff."
        ATTENTIONT="Note about copy protection"
        POLEND="$NAME has been installed succesfully."
fi


wget https://upload.wikimedia.org/wikipedia/en/f/f0/TOCA_Race_Driver_3_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 "$NAME" "Codemasters" "http://www.codemasters.com/tocaracedriver3/" "thib25" "$PREFIX"

if [ "$POL_LANG" == "fr" ]; then
        POL_SetupWindow_message_image "$ATTENTION" "$ATTENTIONT" "$PLAYONLINUX/themes/tango/warning.png"
        # POL_Call POL_Function_NoCDWarning
else
        # POL_SetupWindow_message_image "$ATTENTION" "$ATTENTIONT" "$PLAYONLINUX/themes/tango/warning.png"
        POL_Call POL_Function_NoCDWarning
fi
  
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "RD3.ico"
  
select_prefix "$REPERTOIRE/wineprefix/$PREFIX"
POL_SetupWindow_prefixcreate
 
PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%" |tr -d '\015' | tr -d '\010'`
PROGRAMFILES=${PROGRAMFILES:3}
  
POL_SetupWindow_wait_next_signal "$INSTALLATION" "$NAME"
wine "$CDROM/setup.exe"
POL_SetupWindow_detect_exit
  
# Make custom Icon
convert "$CDROM/RD3.ico" -geometry 32x32 "$REPERTOIRE/icones/32/$NAME"
  
POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Codemasters/Race Driver 3" "RD3.exe" "$NAME" "$NAME"
POL_Shortcut_Document "$NAME" "readme.html"
POL_Shortcut "HardwareSetup.exe" "$NAME (Hardware setup)" ""

POL_SetupWindow_install_wine "3.0.3"
Set_WineVersion_Assign "3.0.3" "$NAME"

# Select GPU (if there are 2)
POL_Call POL_Install_VideoDriver

POL_SetupWindow_message "$POLEND" "$NAME"

POL_SetupWindow_Close
exit

Odpowiedzi

Edytowane przez Dadu042