Farming Simulator 15

Informations

Creator Message
Dadu042
Moderator

Warning

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

Informations

Platforms:
Downloads: 575
Wine: 4.1

Feedbacks

Description

Game from the famous serie.

Source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-05-13 16-25)
# Last revision : (2019-05-13 16-25)
# Wine version used : see below
# Distribution used to test : Ubuntu 19.04 x64
# Script licence : GPL3
# Program licence : Retail
#
# Playonlinux version used : 4.3.4
    
[ "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Farming Simulator 15"
PREFIX="fs15"
WORKING_WINE_VERSION="4.1"
AUTHOR="Dadu042"
EDITOR="Giants"
GAME_URL="https://en.wikipedia.org/wiki/Farming_Simulator"

POL_SetupWindow_Init
POL_Debug_Init
     
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
     
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"
   
Set_OS "win7"
 
POL_Call POL_Install_d3dx11
   
###############
# Go          #
###############
     
POL_SetupWindow_InstallMethod "LOCAL,DVD"
     
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
        cd "$POL_System_TmpDir"
else
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "autorun.inf"
        POL_Wine start /unix "$CDROM/Setup.exe"
        POL_Wine_WaitExit "Setup.exe"
        cd "$POL_System_TmpDir"
fi
     
POL_Shortcut "FarmingSimulator2015.exe" "$TITLE" ""
   
# Filename to change according the language
POL_Shortcut_Document "$TITLE" "FarmingSimulator2015_EN.pdf"
 
POL_Call POL_Install_VideoDriver

# Really indispensable ? (Dadu042)
POL_SetupWindow_VMS "512"

POL_Call POL_Install_physx
 
################
# Patch update #
################
  
POL_SetupWindow_menu "$(eval_gettext 'Do want to install a official update file? (to download by yourself).')" "$TITLE" "$(eval_gettext 'Yes')~$(eval_gettext 'No')" "~"
   
if [ "$APP_ANSWER" == "$(eval_gettext 'Yes')" ]; then
        POL_SetupWindow_browse "$(eval_gettext 'Please select the patch file to run')" "$TITLE"
        PATCH_EXE="$APP_ANSWER"
        POL_Wine start /unix "$PATCH_EXE"
        POL_Wine_WaitExit "$PATCH_EXE"
fi
 
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
Dadu042 Monday 13 May 2019 at 16:30
Dadu042
Moderator

Information

This update has been approved by the team.

Message

I wrote the script but I don't have this game, however I have editions 13, 17, and 19 and wrote scripts for.

So... test reports are welcome !

 

If the game does no work with SetArch "x86" (OK for FS 2013) then perhaps try with SetArch "amd64" (OK for FS 2017).

Differences

@@ -0,0 +1,83 @@
+#!/usr/bin/env playonlinux-bash
+# Date : (2019-05-13 16-25)
+# Last revision : (2019-05-13 16-25)
+# Wine version used : see below
+# Distribution used to test : Ubuntu 19.04 x64
+# Script licence : GPL3
+# Program licence : Retail
+#
+# Playonlinux version used : 4.3.4
+    
+[ "$PLAYONLINUX" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+TITLE="Farming Simulator 15"
+PREFIX="fs15"
+WORKING_WINE_VERSION="4.1"
+AUTHOR="Dadu042"
+EDITOR="Giants"
+GAME_URL="https://en.wikipedia.org/wiki/Farming_Simulator"
+
+POL_SetupWindow_Init
+POL_Debug_Init
+     
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+     
+POL_Wine_SelectPrefix "$PREFIX"
+POL_System_SetArch "x86"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+POL_System_TmpCreate "$TITLE"
+   
+Set_OS "win7"
+ 
+POL_Call POL_Install_d3dx11
+   
+###############
+# Go          #
+###############
+     
+POL_SetupWindow_InstallMethod "LOCAL,DVD"
+     
+if [ "$INSTALL_METHOD" == "LOCAL" ]; then
+        cd "$HOME"
+        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
+        SETUP_EXE="$APP_ANSWER"
+        POL_Wine start /unix "$SETUP_EXE"
+        POL_Wine_WaitExit "$TITLE"
+        cd "$POL_System_TmpDir"
+else
+        POL_SetupWindow_cdrom
+        POL_SetupWindow_check_cdrom "autorun.inf"
+        POL_Wine start /unix "$CDROM/Setup.exe"
+        POL_Wine_WaitExit "Setup.exe"
+        cd "$POL_System_TmpDir"
+fi
+     
+POL_Shortcut "FarmingSimulator2015.exe" "$TITLE" ""
+   
+# Filename to change according the language
+POL_Shortcut_Document "$TITLE" "FarmingSimulator2015_EN.pdf"
+ 
+POL_Call POL_Install_VideoDriver
+
+# Really indispensable ? (Dadu042)
+POL_SetupWindow_VMS "512"
+
+POL_Call POL_Install_physx
+ 
+################
+# Patch update #
+################
+  
+POL_SetupWindow_menu "$(eval_gettext 'Do want to install a official update file? (to download by yourself).')" "$TITLE" "$(eval_gettext 'Yes')~$(eval_gettext 'No')" "~"
+   
+if [ "$APP_ANSWER" == "$(eval_gettext 'Yes')" ]; then
+        POL_SetupWindow_browse "$(eval_gettext 'Please select the patch file to run')" "$TITLE"
+        PATCH_EXE="$APP_ANSWER"
+        POL_Wine start /unix "$PATCH_EXE"
+        POL_Wine_WaitExit "$PATCH_EXE"
+fi
+ 
+POL_System_TmpDelete
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-05-13 16-25)
# Last revision : (2019-05-13 16-25)
# Wine version used : see below
# Distribution used to test : Ubuntu 19.04 x64
# Script licence : GPL3
# Program licence : Retail
#
# Playonlinux version used : 4.3.4
    
[ "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Farming Simulator 15"
PREFIX="fs15"
WORKING_WINE_VERSION="4.1"
AUTHOR="Dadu042"
EDITOR="Giants"
GAME_URL="https://en.wikipedia.org/wiki/Farming_Simulator"

POL_SetupWindow_Init
POL_Debug_Init
     
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
     
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"
   
Set_OS "win7"
 
POL_Call POL_Install_d3dx11
   
###############
# Go          #
###############
     
POL_SetupWindow_InstallMethod "LOCAL,DVD"
     
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
        cd "$POL_System_TmpDir"
else
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "autorun.inf"
        POL_Wine start /unix "$CDROM/Setup.exe"
        POL_Wine_WaitExit "Setup.exe"
        cd "$POL_System_TmpDir"
fi
     
POL_Shortcut "FarmingSimulator2015.exe" "$TITLE" ""
   
# Filename to change according the language
POL_Shortcut_Document "$TITLE" "FarmingSimulator2015_EN.pdf"
 
POL_Call POL_Install_VideoDriver

# Really indispensable ? (Dadu042)
POL_SetupWindow_VMS "512"

POL_Call POL_Install_physx
 
################
# Patch update #
################
  
POL_SetupWindow_menu "$(eval_gettext 'Do want to install a official update file? (to download by yourself).')" "$TITLE" "$(eval_gettext 'Yes')~$(eval_gettext 'No')" "~"
   
if [ "$APP_ANSWER" == "$(eval_gettext 'Yes')" ]; then
        POL_SetupWindow_browse "$(eval_gettext 'Please select the patch file to run')" "$TITLE"
        PATCH_EXE="$APP_ANSWER"
        POL_Wine start /unix "$PATCH_EXE"
        POL_Wine_WaitExit "$PATCH_EXE"
fi
 
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Edited by Dadu042