Rfactor

Informations

Creator Message
thib25 Anonymous

Warning

This installer is a beta script. It means that it might not work as expected

Informations

Platforms:
Downloads: 12061
Wine:

Feedbacks

Description

Racing simulation, 2005. Wikipedia.

Source code

#!/bin/bash
# Date : (2009-10-29 16-30)
# Last revision : (2013-05-14 19-18)
# Wine version used : 1.5.24
# Distribution used to test : N/A
# Author : thib25

# CHANGELOG
# [SuperPlumus] (2013-05-14 19-18)
#   Rewrite script
#   Update Wine version to 1.5.24
# [Dadu042] (2020-02-16)
#   Wine 1.5.24 -> system
# [Dadu042] (2020-02-27)
#   Hide old Wine version.


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

TITLE="rFactor"
PREFIX="rFactor"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "ISI Simulation" "http://www.rfactor.net/" "thib25" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"

POL_Wine_PrefixCreate
# POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_System_TmpCreate "$PREFIX"


POL_SetupWindow_InstallMethod "CD,LOCAL"

if [ "$INSTALL_METHOD" = "CD" ]
then

POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Setup.exe"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$CDROM/Setup.exe"
POL_Wine_WaitExit "$TITLE"

fi
if [ "$INSTALL_METHOD" = "LOCAL" ]
then

cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$APP_ANSWER"
POL_Wine_WaitExit "$TITLE"

fi

POL_System_TmpDelete

POL_Shortcut "rFactor.exe" "$TITLE" "" "" "Game;"

POL_SetupWindow_message "$(eval_gettext "The CD protection of this game does not work correctly with Wine (2013).")" "$TITLE"

POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Message
Dadu042 Thursday 27 February 2020 at 17:29
Dadu042

Information

This update has been approved by the team.

Differences

@@ -11,13 +11,15 @@
 #   Update Wine version to 1.5.24
 # [Dadu042] (2020-02-16)
 #   Wine 1.5.24 -> system
+# [Dadu042] (2020-02-27)
+#   Hide old Wine version.
+
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
 TITLE="rFactor"
 PREFIX="rFactor"
-# WORKING_WINE_VERSION="1.5.24"
 
 POL_SetupWindow_Init
 POL_Debug_Init

New source code

#!/bin/bash
# Date : (2009-10-29 16-30)
# Last revision : (2013-05-14 19-18)
# Wine version used : 1.5.24
# Distribution used to test : N/A
# Author : thib25

# CHANGELOG
# [SuperPlumus] (2013-05-14 19-18)
#   Rewrite script
#   Update Wine version to 1.5.24
# [Dadu042] (2020-02-16)
#   Wine 1.5.24 -> system
# [Dadu042] (2020-02-27)
#   Hide old Wine version.


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

TITLE="rFactor"
PREFIX="rFactor"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "ISI Simulation" "http://www.rfactor.net/" "thib25" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"

POL_Wine_PrefixCreate
# POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_System_TmpCreate "$PREFIX"


POL_SetupWindow_InstallMethod "CD,LOCAL"

if [ "$INSTALL_METHOD" = "CD" ]
then

POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Setup.exe"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$CDROM/Setup.exe"
POL_Wine_WaitExit "$TITLE"

fi
if [ "$INSTALL_METHOD" = "LOCAL" ]
then

cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$APP_ANSWER"
POL_Wine_WaitExit "$TITLE"

fi

POL_System_TmpDelete

POL_Shortcut "rFactor.exe" "$TITLE" "" "" "Game;"

POL_SetupWindow_message "$(eval_gettext "The CD protection of this game does not work correctly with Wine (2013).")" "$TITLE"

POL_SetupWindow_Close
exit

Replies

Dadu042 Sunday 16 February 2020 at 18:20
Dadu042

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -9,13 +9,15 @@
 # [SuperPlumus] (2013-05-14 19-18)
 #   Rewrite script
 #   Update Wine version to 1.5.24
+# [Dadu042] (2020-02-16)
+#   Wine 1.5.24 -> system
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
 TITLE="rFactor"
 PREFIX="rFactor"
-WORKING_WINE_VERSION="1.5.24"
+# WORKING_WINE_VERSION="1.5.24"
 
 POL_SetupWindow_Init
 POL_Debug_Init
@@ -23,7 +25,9 @@
 POL_SetupWindow_presentation "$TITLE" "ISI Simulation" "http://www.rfactor.net/" "thib25" "$PREFIX"
 
 POL_Wine_SelectPrefix "$PREFIX"
-POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+
+POL_Wine_PrefixCreate
+# POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
 POL_System_TmpCreate "$PREFIX"
 
@@ -54,9 +58,9 @@
 
 POL_System_TmpDelete
 
-POL_Shortcut "rFactor.exe" "$TITLE"
+POL_Shortcut "rFactor.exe" "$TITLE" "" "" "Game;"
 
-POL_SetupWindow_message "$(eval_gettext "The CD protection of this game doesn't work correctly with Wine.")" "$TITLE"
+POL_SetupWindow_message "$(eval_gettext "The CD protection of this game does not work correctly with Wine (2013).")" "$TITLE"
 
 POL_SetupWindow_Close
 exit

New source code

#!/bin/bash
# Date : (2009-10-29 16-30)
# Last revision : (2013-05-14 19-18)
# Wine version used : 1.5.24
# Distribution used to test : N/A
# Author : thib25

# CHANGELOG
# [SuperPlumus] (2013-05-14 19-18)
#   Rewrite script
#   Update Wine version to 1.5.24
# [Dadu042] (2020-02-16)
#   Wine 1.5.24 -> system

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

TITLE="rFactor"
PREFIX="rFactor"
# WORKING_WINE_VERSION="1.5.24"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "ISI Simulation" "http://www.rfactor.net/" "thib25" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"

POL_Wine_PrefixCreate
# POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_System_TmpCreate "$PREFIX"


POL_SetupWindow_InstallMethod "CD,LOCAL"

if [ "$INSTALL_METHOD" = "CD" ]
then

POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive.')" "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Setup.exe"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$CDROM/Setup.exe"
POL_Wine_WaitExit "$TITLE"

fi
if [ "$INSTALL_METHOD" = "LOCAL" ]
then

cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$APP_ANSWER"
POL_Wine_WaitExit "$TITLE"

fi

POL_System_TmpDelete

POL_Shortcut "rFactor.exe" "$TITLE" "" "" "Game;"

POL_SetupWindow_message "$(eval_gettext "The CD protection of this game does not work correctly with Wine (2013).")" "$TITLE"

POL_SetupWindow_Close
exit

Replies

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