@@ -1,53 +1,26 @@
-!/bin/bash
+#!/bin/bash
# Date : (2019-06-12 14-10)
-# Last revision : (2019-06-25)
+# Last revision : (2019-06-12 14-10)
# Wine version used : see below
-# Distribution used to test : XUbuntu 18.04 x64
+# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : Retail
-# Playonlinux v4.3.4
+# Playonlinux v4.2.12
#
-# Tested : version 1.00.000 (see in the file Setup.ini on the DVD). v1.1 according "version" file (once installed).
+# Tested : version 1.00.000 (see in the file Setup.ini on the DVD)
#
-# Game based on: DirectX 9, DRM TAGES (need Administrator account), Mozilla Xulrunner, Python, Pynche.
+# Game based on DirectX 9, DRM TAGES.
#
-# KNOWN ISSUES:
-# - Wine 3.0.3: "Windows installer: File source not found: 1. Check if this file exist..." : error message disapear when d3dx9 is installed before the game.
-# - Wine 3.0.5: Error 1158 when reinstalling (after a fail) with overwrite instead of erase.
-# - Wine 4.0.1 and 3.21: Crash when the installer (InstallShield wizard) start working. 'msiexec.exe' does crash, log: Unhandled exception: unimplemented function msls31.dll.LssbFDonePresSubline called in 32-bit code (0x7b43f51c). Cause: POL_Install_riched30
-# - Wine 3.0.3 and .5: Files of the games are not created (only folders created). In fact files are deleted by the installer when the button Finish is clicked.
-
-# Trick (for what Splash issue ?, I forgot): Instead to run \splash.exe run \english\setup.exe
-
-
-# Workaround about 'no files, only folders names' :
-# 1. Copy 'drive_c/Program Files/Simon the Sorcerer - Chaos happens/' to a other folder name, then exit installer, then remove the old, then rename.
-#
-# 001f:fixme:ntoskrnl:KeInitializeTimerEx stub: 0x1127f8 0
-# 0009:err:module:import_dll Library xul.dll (which is needed by L"C:\\Program Files\\Simon the Sorcerer - Chaos happens\\game.exe") not found
-# 0009:err:module:attach_dlls Importing dlls for L"C:\\Program Files\\Simon the Sorcerer - Chaos happens\\game.exe" failed, status c0000135
-#
-# 2. Apply a NO CD. Run 'simon4.exe' instead of 'game.exe' (default).
-# [06/25/19 10:10:06] - Running wine-3.0.5 simon4.exe (Working directory : /home/dadu042/.PlayOnLinux/wineprefix/simon_sorcerer_4_chaos_happens/drive_c/Program Files/Simon the Sorcerer - Chaos happens)
-# 001f:fixme:ntoskrnl:KeInitializeTimerEx stub: 0x112818 0
-# 0009:fixme:wbemprox:wbem_services_CreateInstanceEnum unsupported flags 0x00000030
-# 0009:fixme:wbemprox:enum_class_object_Next timeout not supported
-# 0009:fixme:win:EnumDisplayDevicesW ((null),0,0x32e988,0x00000000), stub!
-# 0009:fixme:win:EnumDisplayDevicesW ((null),0,0x32e7f8,0x00000000), stub!
-# 0009:fixme:ddraw:ddraw7_Initialize Ignoring guid {aeb2cdd4-6e41-43ea-941c-8361cc760781}.
-# 0009:err:winediag:MIDIMAP_drvOpen No software synthesizer midi port found, Midi sound output probably won't work.
-# 0041:fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
-# 0041:fixme:win:EnumDisplayDevicesW ((null),0,0x8cddc8,0x00000000), stub!
-# 0041:fixme:d3dx:d3dx9_effect_init Failed to parse effect, hr 0x80004005.
-# wine: Unhandled exception 0x80000003 in thread 41 at address 0x7b420023:0x7b43defc (thread 0041), starting debugger...
-
+# KNOWN ISSUES (with Set_OS "vista" and "win7") and wine 3.0.3 :
+# - "Windows installer: File source not found: 1. Check if this file exist..." : error message disapear when d3dx9 installed before the game.
+# - Files of the games are not created (only folders created).
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Simon the Sorcerer 4 - Chaos Happens"
-PREFIX="simon_sorcerer_4_chaos_happens"
-WORKING_WINE_VERSION="3.0.5"
+PREFIX="simon_sorcerer_4_(chaos_happens)"
+WORKING_WINE_VERSION="3.0.3"
AUTHOR="Dadu042"
EDITOR="Playlogic Entertainment"
@@ -62,35 +35,12 @@
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"
-Set_OS "winxp"
-
-# Fix the issue: 'when installing, game does does create folders but none files'. To check before to quit the installer because sometimes it does it before exiting.
-POL_Call POL_Install_gecko
-
-# Necessary (otherwise no picture when game is launched)
+Set_OS "vista"
+# Set_OS "win7"
+
+# Not necessary:
POL_Call POL_Install_d3dx9
-
-# Fix Installshield's 'error 1158' (when launching setup.exe)
-POL_Call POL_Install_mfc42
-
-
-# Indispensable ?:
-# POL_Call POL_Install_mono210
-# POL_Call POL_Install_dotnet20sp2
-# POL_Call POL_Install_vcrun2005
-
-# Seems not indispensable:
-# POL_Call POL_Install_msxml4
-
-# Useful ?
-POL_Call POL_Install_xmllite
-
-
-# Warning: makes 'msiexec.exe' crash at launching of InstallShield wizard (unimplemented function msls31.dll)
-# However seems required... (as seen in the POL install log).
-# POL_Call POL_Install_riched30
-# POL_Call POL_Install_riched20
-
+
###############
# Go #
###############
@@ -108,16 +58,13 @@
else
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "english/Simon the Sorcerer.msi"
- POL_Call POL_Function_NoCDWarning
POL_Wine start /unix "$CDROM/splash.exe"
- POL_Wine_WaitExit "InstallShield"
+ POL_Wine_WaitExit "splash.exe"
cd "$POL_System_TmpDir"
fi
-POL_Shortcut "game.exe" "$TITLE - Launcher" ""
-POL_Shortcut "simon4.exe" "$TITLE - (ran by Launcher)" ""
-
-# POL_Shortcut_Document "$TITLE" "*.pdf"
+POL_Shortcut "GAME.exe" "$TITLE" ""
+POL_Shortcut_Document "$TITLE" "*.pdf"
POL_System_TmpDelete
POL_SetupWindow_Close