@@ -6,28 +6,35 @@
# Distribution used to test : KUbuntu 18.04 x64
# Script licence : GPL3
# Program licence : Retail
-# Playonlinux v4.2.12
+# Playonlinux v4.3.4
#
-# Tested version : CD-ROM, files date: 2016.
+# Tested version : CD-ROM, files date: 2016, v1.005 (found in menu Credits, top right).
#
-# Game based on: DirectX 9, Visual C 2013.
+# Game based on: DirectX 9 v46, Visual C++ 2013, Autodesk Stingray (game engine).
#
# CHANGELOG
# [Dadu042] (2019-07-01)
# Initial writting.
+# How to force this game to use d3dx9 ? (it switch to d3dx11)
+# [Dadu042] (2019-09-28)
+# Game now run, but has no sound.
+#
#
# KNOW ISSUES
# - Game does crash when exiting.
-# - wine 3.0.3, 4.0.1, 4.12.1: Install does freeze because "Additional icon" is blinking.
-
+# - wine 3.0.3, 4.0.1, 4.12.1: Installation does freeze because "Additional icon: Create a desktop icon" is blinking. Workaround: wait 10 min.
+# - wine 3.0.3, 4.0.1, 4.12.1: game fail to run. Fix: POL_Install_riched30
+# - wine 4.0.2 amd64: clicking Options in the main menu lead to a crash (AL lib: (EE) ReleaseThreadCtx: Context 0x7defbcc0 current for thread being destroyed, possible leak!). Fix: Wine 4.15
+# - wine 4.15 amd64: no sound.
+
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Kill All Zombies"
PREFIX="Kill-All-Zombies"
-WORKING_WINE_VERSION="4.12.1"
AUTHOR="Dadu042"
+WORKING_WINE_VERSION="4.15"
@@ -35,7 +42,9 @@
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
-
+
+POL_RequiredVersion "4.3.4" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
+
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "amd64"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
@@ -43,7 +52,9 @@
POL_System_TmpCreate "$TITLE"
Set_OS "win7"
-
+
+
+
# Useless ?
# POL_Call POL_Install_d3dx9_43
# POL_Call POL_Install_d3compiler_43
@@ -51,6 +62,10 @@
# Useless for thez issue 'blinking install menu'.
# POL_Call POL_Install_gdiplus
+POL_Call POL_Install_riched30
+# POL_Call POL_Install_gecko
+# POL_Call POL_Install_mono210
+
POL_SetupWindow_InstallMethod "LOCAL,STEAM,DVD"
@@ -86,9 +101,16 @@
# Restore screen resolution (game's default is 640x480)
POL_Shortcut_InsertBeforeWine "$SHORTCUT" "trap 'xrandr -s 0' EXIT"
- POL_Shortcut "zombies.exe" "$TITLE" "" "Game;ActionGame;" ""
+ POL_Shortcut "zombies.exe" "$TITLE" "" "" "Game;ActionGame;"
# POL_Shortcut_Document "$TITLE" "jc_manual_uk_pc.pdf"
fi
+
+# Set Graphic Card information keys for wine
+POL_Wine_SetVideoDriver
+
+POL_SetupWindow_message "$(eval_gettext 'WARNING: to avoid to have a big useless POL/POM log file, you should type \ninto Debug flags : fixme-all')" "$TITLE"
+
+POL_SetupWindow_message "$(eval_gettext '\nInstallation is finished ! :)')" "$TITLE"
################
# Patch update #
@@ -96,12 +118,12 @@
# POL_SetupWindow_menu "$(eval_gettext 'Do you want to install a official patch-update ? (to download by yourself).')" "$TITLE" "$(eval_gettext 'Yes')~$(eval_gettext 'No')" "~"
-if [ "$APP_ANSWER" == "$(eval_gettext 'Yes')" ]; then
- POL_SetupWindow_browse "$(eval_gettext 'Please select the .EXE file to run')" "$TITLE"
- PATCH_EXE="$APP_ANSWER"
- POL_Wine start /unix "$PATCH_EXE"
- POL_Wine_WaitExit "$PATCH_EXE"
-fi
+# if [ "$APP_ANSWER" == "$(eval_gettext 'Yes')" ]; then
+# POL_SetupWindow_browse "$(eval_gettext 'Please select the .EXE file to run')" "$TITLE"
+# PATCH_EXE="$APP_ANSWER"
+# POL_Wine start /unix "$PATCH_EXE"
+# POL_Wine_WaitExit "$PATCH_EXE"
+# fi
POL_System_TmpDelete
POL_SetupWindow_Close