As I write in the code, currently this script does not allow to run the game (on DVD), but just to install it.
Read the comments for details:
#!/bin/bash
# Date : (2019-03-01 12-11)
# Last revision : (2019-03-06 12-11)
# Wine version used : 3.0.3
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : Retail
# Playonlinux : 4.2.12
#
# Tested : DVD french v1.0 (version displayed on the first installation window). setup.exe: april 2009.
#
# Known issue :
# The game crash as soon it start loading, this seems related to the Tages DRM (a anti copy protection).
# Issue occurs with the following Wine versions 1.5.20, 3.0.3, 4.3)
# Issue occurs with the following POL versions 4.2.12, 4.3.4)
#
# See also: https://wiki.winehq.org/Copy_Protection
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Still Life 2"
PREFIX="stilllife2"
WORKING_WINE_VERSION="3.0.3"
AUTHOR="Dadu042"
EDITOR="Gameco Studios"
GAME_URL="https://en.wikipedia.org/wiki/Still_Life_2"
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_d3dx9_43
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 "stilllife2.ico"
POL_Wine start /unix "$CDROM/setup.exe"
POL_Wine_WaitExit "setup.exe"
cd "$POL_System_TmpDir"
fi
POL_Shortcut "SL2.exe" "$TITLE" ""
# Create shortcut for french manual.
POL_Shortcut_Document "$TITLE" "SL2_Manuel_FR.pdf"
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0
Debugger output:
[03/06/19 12:19:28] - Running wine-3.0.3 SL2.exe (Working directory : /home/myself/.PlayOnLinux/wineprefix/stilllife2/drive_c/Program Files/Microids/StillLife2)
001f:fixme:ntoskrnl:KeInitializeTimerEx stub: 0x112810 0
0033:err:module:load_builtin_dll failed to load .so lib for builtin L"winebus.sys": libudev.so.0: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type
0033:err:winedevice:async_create_driver failed to create driver L"WineBus": c0000142
000f:fixme:service:scmdatabase_autostart_services Auto-start service L"WineBus" failed to start: 31
001e:fixme:ntoskrnl:MmProbeAndLockPages (0x112568, 1, 1): stub
001e:fixme:ntoskrnl:MmMapLockedPagesSpecifyCache (0x112568, 0, 1, (nil), 0, 32): stub
001e:fixme:ntoskrnl:IoGetDeviceObjectPointer stub: L"\\Device\\atksgt" 20000 0x54fb5c 0x54fb58
wine: Unhandled page fault on write access to 0x00000000 at address 0x7803c1 (thread 001e), starting debugger...
Edité par Dadu042