This script is just a beta, because I don't own the game. I need screen shots of the filesnames on the DVD.
Currently (french) users report graphic issues (read the comments in the top of the script).
#!/usr/bin/env playonlinux-bash
# Date : (2019-04-01 12-26)
# Last revision : (2019-04-01 12-26)
# Wine version used : 4.5
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : Retail
#
# Playonlinux version used : 4.3.4
#
# As of 2019-04-0 with Wine 3.19 : game suffer from graphic issues (red filter).
# As of 2019-04-0 with Wine 4.5 : game suffer from graphic issues (black parts).
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Farming simulator 19"
PREFIX="fs19"
WORKING_WINE_VERSION="4.5"
AUTHOR="Dadu042"
EDITOR="Giants"
GAME_URL="https://en.wikipedia.org/wiki/Farming_Simulator"
Set_OS "Win7"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "amd64"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"
# Really Useful ? (Dadu042)
POL_Call POL_SetupWindow_VMS "256"
POL_Call POL_Install_VideoDriver
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 "Setup/setup.exe"
POL_Wine start /unix "$CDROM/Setup/setup.exe"
POL_Wine_WaitExit "setup.exe"
cd "$POL_System_TmpDir"
fi
POL_Shortcut "FarmingSimulator2019.exe" "$TITLE" ""
# Filename to fix
POL_Shortcut_Document "$TITLE" "Manual.pdf"
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0
Edité par Dadu042