The forum

[script] CSI: Dark Motives

Author Replies
Dadu042 Tuesday 4 February 2020 at 22:06
Dadu042

Warning: graphic rendering issues (tiles missing) makes this game almost unplayable.

 

#!/usr/bin/env playonlinux-bash
# Date : (2019-05-06 21-14)
# Last revision : see changelog
# 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, november 2005 (folders date), v1.01 (found in ReadMe.txt after installation).
#
# This game is based on Dotnet (2?), Bink videos, Macromedia.
#
# Known issues:
# - Wine 4.1 ? : game crash when lauching because of Bink videos. Fix: Wine 4.7, 4.21, 5.0
# - Wine 4.7, 4.21 : games goes to main menu (and show credit video) but main menu miss some graphic tiles ('clipping' ?), these that appear when moving mouse. Tried: gdiplus, flashplayer.

[ "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
   
TITLE="CSI: Dark Motives"
PREFIX="csi_dark_motives"
WORKING_WINE_VERSION="4.0.3"
AUTHOR="Dadu042"
EDITOR="369 Interactive"
GAME_URL="https://en.wikipedia.org/wiki/CSI:_Dark_Motives"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

POL_RequiredVersion "4.3.0" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
   
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"

Set_OS "winxp"

################
# GPU settings #
################

# Really indispensable ? (Dadu042)
POL_SetupWindow_VMS "64"

# POL_Call POL_Install_VideoDriver

# POL_Call POL_Install_d3dx9
 
###############
# Go          #
###############

POL_SetupWindow_InstallMethod "LOCAL,DVD"

POL_SetupWindow_message  "Warning: Please DO NOT install DirectX nor GameShadow ! (this is the way this script was tested).\nAnd do not launch the game at the end of the installation." "$TITLE"
   
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 "CSI.ico"
        POL_Wine start /unix "$CDROM/autorun.exe"
        POL_Wine_WaitExit "autorun.exe"
        cd "$POL_System_TmpDir"
fi

POL_Shortcut "CSI-Dark Motives.exe" "$TITLE" "" "" "Game;"

# Filename to change according the language
POL_Shortcut_Document "$TITLE" "Manual CSI-Dark Motives.pdf"

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0