@@ -5,95 +5,114 @@
# Changed prefix name
# rm -rf "$POL_USER_ROOT/tmp/*" won't do anything. Removing it
#
-
+# [Dadu042] (2019-05-12) Script did not allow to launch the game once installed (POL 4.3.4 + Wine 1.7.46 and 4.2).
+# I did updates and rewrote. Tested with retail DVD v1.02 (french).
+#
# Date : (2009-06-06 14-00)
-# Last revision : (2011-09-10 15:58)
-# Wine version used : 1.3.7, 1.3.8, 1.3.23, 1.3.27, 1.3.28
+# Last revision : (2019-05-13 14:49)
+# Wine version used : 1.3.7, 1.3.8, 1.3.23, 1.3.27, 1.3.28, 1.7.46
# Distribution used to test : Debian Testing x64
-# Author : NSWL & GNU_Raziel
+# Author : NSWL and GNU_Raziel and Dadu042
# Licence : Retail
+#
+# Game 32 bits, based on DirectX 9 (with Shaders 3.0).
+
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
-
+
TITLE="Assassin's Creed"
PREFIX="AssassinsCreed"
-WORKING_WINE_VERSION="1.7.46"
+WORKING_WINE_VERSION="4.1"
+AUTHOR="NSLW and GNU_Raziel and Dadu042"
+EDITOR="Ubisoft"
+
+# Minimum video memory size required (game spec on the retail box)
GAME_VMS="256"
# Starting the script
POL_SetupWindow_Init
-
+
# Starting debugging API
POL_Debug_Init
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
-# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
-
-# Downloading wine if necessary and creating prefix
-POL_System_SetArch "auto"
+POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+POL_System_TmpCreate "$TITLE"
+Set_OS "vista"
+
# Choose between DVD and Digital Download version
POL_SetupWindow_InstallMethod "DVD,STEAM,LOCAL"
-
+
# Installing mandatory dependencies
if [ "$INSTALL_METHOD" == "STEAM" ]; then
- POL_Call POL_Install_steam
+ POL_Call POL_Install_steam
fi
-POL_Call POL_Install_dxfullsetup
+# Fail (2019)
+# POL_Call POL_Install_dxfullsetup
+
# Mandatory pre-install fix for steam
POL_Call POL_Install_steam_flags "15100"
-
+
# Begin game installation
if [ "$INSTALL_METHOD" == "DVD" ]; then
- # Asking for CDROM and checking if it's correct one
- POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive.')" "$TITLE"
- POL_SetupWindow_cdrom
- POL_SetupWindow_check_cdrom "System/AssassinsCreed_Game.exe"
- POL_Wine start /unix "$CDROM/setup.exe"
- POL_Wine_WaitExit "$TITLE"
+ # Asking for CDROM and checking if it's correct one
+ POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive.')" "$TITLE"
+ POL_SetupWindow_cdrom
+ POL_SetupWindow_check_cdrom "System/AssassinsCreed_Game.exe"
+ POL_Wine start /unix "$CDROM/setup.exe"
+ POL_Wine_WaitExit "$TITLE"
elif [ "$INSTALL_METHOD" == "STEAM" ]; then
- cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
- POL_Wine_WaitExit "$TITLE"
+ cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+ POL_Wine_WaitExit "$TITLE"
else
- # Asking then installing DDV of the game
- 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"
+ # Asking then installing DDV of the game
+ 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"
fi
# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
-## Fix for this game
+# Fix for this game
POL_Wine_Direct3D "DirectDrawRenderer" "opengl"
-
+
# Set Graphic Card informations keys for wine
-POL_Wine_SetVideoDriver
+POL_Call POL_Install_VideoDriver
+# Useless with Wine v3+ ?
# Sound problem fix - pulseaudio related
-[ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
-[ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
+ [ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
+ [ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
## End Fix
-
+
## PlayOnMac Section
[ "$POL_OS" = "Mac" ] && Set_Managed "Off"
## End Section
-
+
# Making shortcut
if [ "$INSTALL_METHOD" == "STEAM" ]; then
else
- POL_Shortcut "AssassinsCreed_Launcher.exe" "$TITLE"
+ POL_Shortcut "AssassinsCreed_Dx9.exe" "$TITLE"
+
+ # This one crash with Wine 3.x and 4.x
+ # POL_Shortcut "AssassinsCreed_Launcher.exe" "$TITLE"
+
+ POL_Shortcut_Document "$TITLE" "AssassinsCreed.pdf"
fi
+POL_System_TmpDelete
POL_SetupWindow_Close
exit 0
\ No newline at end of file