The forum

[script] Woodcutter Simulator 2013

Author Replies
Dadu042 Wednesday 8 May 2019 at 22:54
Dadu042

Warning : This script does not allow the game to launch (to run). sad

 

#!/usr/bin/env playonlinux-bash
# Date : (2019-05-08 21-50)
# Last revision : (2019-05-08 21-50)
# 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
#
# Media used: DVD, Start.exe : dec 2013.

[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
   
TITLE="Woodcutter Simulator 2013"
PREFIX="woodcutter2013"
WORKING_WINE_VERSION="4.7"
AUTHOR="Dadu042"
EDITOR="UIG"
GAME_URL="https://pcgamingwiki.com/wiki/Woodcutter_Simulator_2013"

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"

################
# GPU settings #
################
 
POL_Call POL_Install_d3dx9_43

POL_Call POL_Install_dsound

###############
# 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 "Start.exe"
        POL_Wine start /unix "$CDROM/Start.exe"
        POL_Wine_WaitExit "Start.exe"
        cd "$POL_System_TmpDir"
fi

POL_Shortcut "Woodcutter2013.exe" "$TITLE" ""

POL_Call POL_Install_VideoDriver

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Edited by Dadu042

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