Assassin's Creed IV : Black Flag

Informations

Creator Message
ImperatorS79 Anonymous

Warning

This installer is a beta script. It means that it might not work as expected

Informations

Platforms:
Downloads: 14025
Wine: 3.0.3

Feedbacks

Description

The year is 1715. Pirates rule the Caribbean and have established their own lawless Republic where corruption, greediness and cruelty are commonplace.Among these outlaws is a brash young captain named Edward Kenway.

Source code

#!/bin/bash
# Date : (2017-06-04)
# Last revision : see changelog
# Wine version used :
# Distribution used to test : Ubuntu 16.04
# Author : ImperatorS79
# Licence : Retail
# Only For : http://www.playonlinux.com
#
# CHANGELOG
# [ImperatorS79] (2017-06-04)
#   First script.
# [ImperatorS79] (2017-07-23)
#   ?
# [Dadu042] (2019-12-12)
#   Wine "2.9-staging" (outdated) -> 3.0.3


## Begin Note 2017 ##
# see https://www.youtube.com/watch?v=4JoebSYERsc and https://appdb.winehq.org/objectManager.php?sClass=version&iId=29849&iTestingId=98002
# Not from me, but inspired this script, it's a kind of test...
# Script inspired from AC2 script
## End Note ##
     
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
     
TITLE="Assassin's Creed 4 : Black Flag"
PREFIX="AssassinsCreed4"
EDITOR="Ubisoft"
GAME_URL="https://www.ubisoft.com/fr-fr/game/assassins-creed-4-black-flag"
AUTOR="ImperatorS79"
WORKING_WINE_VERSION="3.0.3"
GAME_VMS="512"
     
# Starting the script
#POL_GetSetupImages "undefined" "undefine" "$TITLE"
POL_SetupWindow_Init
     
# Starting debugging API
POL_Debug_Init
     
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTOR" "$PREFIX"
     
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
     
# Downloading wine if necessary and creating prefix
POL_System_SetArch "x64"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
     
#DVD maybe later
POL_SetupWindow_InstallMethod "STEAM"
     
# Installing mandatory dependencies
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Call POL_Install_steam
        STEAM_ID="242050"
fi
    
#Not sure if it's needed
POL_Call POL_Install_physx
POL_Call POL_Install_ubigamelauncher
   
# Asking about memory size of graphic card
POL_SetupWindow_VMS "$GAME_VMS"
 
# Set Graphic Card informations keys for wine
POL_Wine_SetVideoDriver
     
# Begin game installation
    
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        # Mandatory pre-install fix for steam
        POL_Call POL_Install_steam_flags "$STEAM_ID"
        # Shortcut done before install for steam version
        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID"
        POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""
        # Steam install
        POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
        POL_Wine_WaitExit "$TITLE"
fi
      
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
Dadu042 Wednesday 25 March 2020 at 18:59
Dadu042

Information

This update has been approved by the team.

Differences

@@ -1,14 +1,22 @@
 #!/bin/bash
-# Date conv:yy-mm-dd
 # Date : (2017-06-04)
-# Last revision : (2017-07-23)
-# Wine version used : 2.9-staging
+# Last revision : see changelog
+# Wine version used :
 # Distribution used to test : Ubuntu 16.04
 # Author : ImperatorS79
 # Licence : Retail
 # Only For : http://www.playonlinux.com
-     
-## Begin Note ##
+#
+# CHANGELOG
+# [ImperatorS79] (2017-06-04)
+#   First script.
+# [ImperatorS79] (2017-07-23)
+#   ?
+# [Dadu042] (2019-12-12)
+#   Wine "2.9-staging" (outdated) -> 3.0.3
+
+
+## Begin Note 2017 ##
 # see https://www.youtube.com/watch?v=4JoebSYERsc and https://appdb.winehq.org/objectManager.php?sClass=version&iId=29849&iTestingId=98002
 # Not from me, but inspired this script, it's a kind of test...
 # Script inspired from AC2 script
@@ -22,7 +30,7 @@
 EDITOR="Ubisoft"
 GAME_URL="https://www.ubisoft.com/fr-fr/game/assassins-creed-4-black-flag"
 AUTOR="ImperatorS79"
-WORKING_WINE_VERSION="2.9-staging"
+WORKING_WINE_VERSION="3.0.3"
 GAME_VMS="512"
      
 # Starting the script

New source code

#!/bin/bash
# Date : (2017-06-04)
# Last revision : see changelog
# Wine version used :
# Distribution used to test : Ubuntu 16.04
# Author : ImperatorS79
# Licence : Retail
# Only For : http://www.playonlinux.com
#
# CHANGELOG
# [ImperatorS79] (2017-06-04)
#   First script.
# [ImperatorS79] (2017-07-23)
#   ?
# [Dadu042] (2019-12-12)
#   Wine "2.9-staging" (outdated) -> 3.0.3


## Begin Note 2017 ##
# see https://www.youtube.com/watch?v=4JoebSYERsc and https://appdb.winehq.org/objectManager.php?sClass=version&iId=29849&iTestingId=98002
# Not from me, but inspired this script, it's a kind of test...
# Script inspired from AC2 script
## End Note ##
     
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
     
TITLE="Assassin's Creed 4 : Black Flag"
PREFIX="AssassinsCreed4"
EDITOR="Ubisoft"
GAME_URL="https://www.ubisoft.com/fr-fr/game/assassins-creed-4-black-flag"
AUTOR="ImperatorS79"
WORKING_WINE_VERSION="3.0.3"
GAME_VMS="512"
     
# Starting the script
#POL_GetSetupImages "undefined" "undefine" "$TITLE"
POL_SetupWindow_Init
     
# Starting debugging API
POL_Debug_Init
     
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTOR" "$PREFIX"
     
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
     
# Downloading wine if necessary and creating prefix
POL_System_SetArch "x64"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
     
#DVD maybe later
POL_SetupWindow_InstallMethod "STEAM"
     
# Installing mandatory dependencies
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Call POL_Install_steam
        STEAM_ID="242050"
fi
    
#Not sure if it's needed
POL_Call POL_Install_physx
POL_Call POL_Install_ubigamelauncher
   
# Asking about memory size of graphic card
POL_SetupWindow_VMS "$GAME_VMS"
 
# Set Graphic Card informations keys for wine
POL_Wine_SetVideoDriver
     
# Begin game installation
    
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        # Mandatory pre-install fix for steam
        POL_Call POL_Install_steam_flags "$STEAM_ID"
        # Shortcut done before install for steam version
        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID"
        POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""
        # Steam install
        POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
        POL_Wine_WaitExit "$TITLE"
fi
      
POL_SetupWindow_Close
exit 0

Replies

ImperatorS79 Sunday 23 July 2017 at 13:18
ImperatorS79 Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Forgot to update date :)

Differences

@@ -0,0 +1,79 @@
+#!/bin/bash
+# Date conv:yy-mm-dd
+# Date : (2017-06-04)
+# Last revision : (2017-07-23)
+# Wine version used : 2.9-staging
+# Distribution used to test : Ubuntu 16.04
+# Author : ImperatorS79
+# Licence : Retail
+# Only For : http://www.playonlinux.com
+     
+## Begin Note ##
+# see https://www.youtube.com/watch?v=4JoebSYERsc and https://appdb.winehq.org/objectManager.php?sClass=version&iId=29849&iTestingId=98002
+# Not from me, but inspired this script, it's a kind of test...
+# Script inspired from AC2 script
+## End Note ##
+     
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+     
+TITLE="Assassin's Creed 4 : Black Flag"
+PREFIX="AssassinsCreed4"
+EDITOR="Ubisoft"
+GAME_URL="https://www.ubisoft.com/fr-fr/game/assassins-creed-4-black-flag"
+AUTOR="ImperatorS79"
+WORKING_WINE_VERSION="2.9-staging"
+GAME_VMS="512"
+     
+# Starting the script
+#POL_GetSetupImages "undefined" "undefine" "$TITLE"
+POL_SetupWindow_Init
+     
+# Starting debugging API
+POL_Debug_Init
+     
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTOR" "$PREFIX"
+     
+# Setting prefix path
+POL_Wine_SelectPrefix "$PREFIX"
+     
+# Downloading wine if necessary and creating prefix
+POL_System_SetArch "x64"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+     
+#DVD maybe later
+POL_SetupWindow_InstallMethod "STEAM"
+     
+# Installing mandatory dependencies
+if [ "$INSTALL_METHOD" == "STEAM" ]; then
+        POL_Call POL_Install_steam
+        STEAM_ID="242050"
+fi
+    
+#Not sure if it's needed
+POL_Call POL_Install_physx
+POL_Call POL_Install_ubigamelauncher
+   
+# Asking about memory size of graphic card
+POL_SetupWindow_VMS "$GAME_VMS"
+ 
+# Set Graphic Card informations keys for wine
+POL_Wine_SetVideoDriver
+     
+# Begin game installation
+    
+if [ "$INSTALL_METHOD" == "STEAM" ]; then
+        # Mandatory pre-install fix for steam
+        POL_Call POL_Install_steam_flags "$STEAM_ID"
+        # Shortcut done before install for steam version
+        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID"
+        POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""
+        # Steam install
+        POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
+        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+        POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
+        POL_Wine_WaitExit "$TITLE"
+fi
+      
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date conv:yy-mm-dd
# Date : (2017-06-04)
# Last revision : (2017-07-23)
# Wine version used : 2.9-staging
# Distribution used to test : Ubuntu 16.04
# Author : ImperatorS79
# Licence : Retail
# Only For : http://www.playonlinux.com
     
## Begin Note ##
# see https://www.youtube.com/watch?v=4JoebSYERsc and https://appdb.winehq.org/objectManager.php?sClass=version&iId=29849&iTestingId=98002
# Not from me, but inspired this script, it's a kind of test...
# Script inspired from AC2 script
## End Note ##
     
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
     
TITLE="Assassin's Creed 4 : Black Flag"
PREFIX="AssassinsCreed4"
EDITOR="Ubisoft"
GAME_URL="https://www.ubisoft.com/fr-fr/game/assassins-creed-4-black-flag"
AUTOR="ImperatorS79"
WORKING_WINE_VERSION="2.9-staging"
GAME_VMS="512"
     
# Starting the script
#POL_GetSetupImages "undefined" "undefine" "$TITLE"
POL_SetupWindow_Init
     
# Starting debugging API
POL_Debug_Init
     
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTOR" "$PREFIX"
     
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
     
# Downloading wine if necessary and creating prefix
POL_System_SetArch "x64"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
     
#DVD maybe later
POL_SetupWindow_InstallMethod "STEAM"
     
# Installing mandatory dependencies
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Call POL_Install_steam
        STEAM_ID="242050"
fi
    
#Not sure if it's needed
POL_Call POL_Install_physx
POL_Call POL_Install_ubigamelauncher
   
# Asking about memory size of graphic card
POL_SetupWindow_VMS "$GAME_VMS"
 
# Set Graphic Card informations keys for wine
POL_Wine_SetVideoDriver
     
# Begin game installation
    
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        # Mandatory pre-install fix for steam
        POL_Call POL_Install_steam_flags "$STEAM_ID"
        # Shortcut done before install for steam version
        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID"
        POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""
        # Steam install
        POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
        POL_Wine_WaitExit "$TITLE"
fi
      
POL_SetupWindow_Close
exit 0

Replies

ImperatorS79 Sunday 23 July 2017 at 13:10
ImperatorS79 Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Update to Wine 2.12-staging

Differences

@@ -0,0 +1,79 @@
+#!/bin/bash
+# Date conv:yy-mm-dd
+# Date : (2017-06-04)
+# Last revision : (2017-06-04)
+# Wine version used : -
+# Distribution used to test : Ubuntu 16.04
+# Author : ImperatorS79
+# Licence : Retail
+# Only For : http://www.playonlinux.com
+     
+## Begin Note ##
+# see https://www.youtube.com/watch?v=4JoebSYERsc and https://appdb.winehq.org/objectManager.php?sClass=version&iId=29849&iTestingId=98002
+# Not from me, but inspired this script, it's a kind of test...
+# Script inspired from AC2 script
+## End Note ##
+     
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+     
+TITLE="Assassin's Creed 4 : Black Flag"
+PREFIX="AssassinsCreed4"
+EDITOR="Ubisoft"
+GAME_URL="https://www.ubisoft.com/fr-fr/game/assassins-creed-4-black-flag"
+AUTOR="ImperatorS79"
+WORKING_WINE_VERSION="2.12-staging"
+GAME_VMS="512"
+     
+# Starting the script
+#POL_GetSetupImages "undefined" "undefine" "$TITLE"
+POL_SetupWindow_Init
+     
+# Starting debugging API
+POL_Debug_Init
+     
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTOR" "$PREFIX"
+     
+# Setting prefix path
+POL_Wine_SelectPrefix "$PREFIX"
+     
+# Downloading wine if necessary and creating prefix
+POL_System_SetArch "x64"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+     
+#DVD maybe later
+POL_SetupWindow_InstallMethod "STEAM"
+     
+# Installing mandatory dependencies
+if [ "$INSTALL_METHOD" == "STEAM" ]; then
+        POL_Call POL_Install_steam
+        STEAM_ID="242050"
+fi
+    
+#Not sure if it's needed
+POL_Call POL_Install_physx
+POL_Call POL_Install_ubigamelauncher
+   
+# Asking about memory size of graphic card
+POL_SetupWindow_VMS "$GAME_VMS"
+ 
+# Set Graphic Card informations keys for wine
+POL_Wine_SetVideoDriver
+     
+# Begin game installation
+    
+if [ "$INSTALL_METHOD" == "STEAM" ]; then
+        # Mandatory pre-install fix for steam
+        POL_Call POL_Install_steam_flags "$STEAM_ID"
+        # Shortcut done before install for steam version
+        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID"
+        POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""
+        # Steam install
+        POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
+        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+        POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
+        POL_Wine_WaitExit "$TITLE"
+fi
+      
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date conv:yy-mm-dd
# Date : (2017-06-04)
# Last revision : (2017-06-04)
# Wine version used : -
# Distribution used to test : Ubuntu 16.04
# Author : ImperatorS79
# Licence : Retail
# Only For : http://www.playonlinux.com
     
## Begin Note ##
# see https://www.youtube.com/watch?v=4JoebSYERsc and https://appdb.winehq.org/objectManager.php?sClass=version&iId=29849&iTestingId=98002
# Not from me, but inspired this script, it's a kind of test...
# Script inspired from AC2 script
## End Note ##
     
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
     
TITLE="Assassin's Creed 4 : Black Flag"
PREFIX="AssassinsCreed4"
EDITOR="Ubisoft"
GAME_URL="https://www.ubisoft.com/fr-fr/game/assassins-creed-4-black-flag"
AUTOR="ImperatorS79"
WORKING_WINE_VERSION="2.12-staging"
GAME_VMS="512"
     
# Starting the script
#POL_GetSetupImages "undefined" "undefine" "$TITLE"
POL_SetupWindow_Init
     
# Starting debugging API
POL_Debug_Init
     
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTOR" "$PREFIX"
     
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
     
# Downloading wine if necessary and creating prefix
POL_System_SetArch "x64"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
     
#DVD maybe later
POL_SetupWindow_InstallMethod "STEAM"
     
# Installing mandatory dependencies
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Call POL_Install_steam
        STEAM_ID="242050"
fi
    
#Not sure if it's needed
POL_Call POL_Install_physx
POL_Call POL_Install_ubigamelauncher
   
# Asking about memory size of graphic card
POL_SetupWindow_VMS "$GAME_VMS"
 
# Set Graphic Card informations keys for wine
POL_Wine_SetVideoDriver
     
# Begin game installation
    
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        # Mandatory pre-install fix for steam
        POL_Call POL_Install_steam_flags "$STEAM_ID"
        # Shortcut done before install for steam version
        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID"
        POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""
        # Steam install
        POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
        POL_Wine_WaitExit "$TITLE"
fi
      
POL_SetupWindow_Close
exit 0

Replies

ImperatorS79 Tuesday 6 June 2017 at 16:48
ImperatorS79 Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

I think it's better with POL_Wine_SetVideoDriver

 

Differences

@@ -0,0 +1,79 @@
+#!/bin/bash
+# Date conv:yy-mm-dd
+# Date : (2017-06-04)
+# Last revision : (2017-06-04)
+# Wine version used : 2.9-staging
+# Distribution used to test : Ubuntu 16.04
+# Author : ImperatorS79
+# Licence : Retail
+# Only For : http://www.playonlinux.com
+    
+## Begin Note ##
+# see https://www.youtube.com/watch?v=4JoebSYERsc and https://appdb.winehq.org/objectManager.php?sClass=version&iId=29849&iTestingId=98002
+# Not from me, but inspired this script, it's a kind of test...
+# Script inspired from AC2 script
+## End Note ##
+    
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+    
+TITLE="Assassin's Creed 4 : Black Flag"
+PREFIX="AssassinsCreed4"
+EDITOR="Ubisoft"
+GAME_URL="https://www.ubisoft.com/fr-fr/game/assassins-creed-4-black-flag"
+AUTOR="ImperatorS79"
+WORKING_WINE_VERSION="2.9-staging"
+GAME_VMS="512"
+    
+# Starting the script
+#POL_GetSetupImages "undefined" "undefine" "$TITLE"
+POL_SetupWindow_Init
+    
+# Starting debugging API
+POL_Debug_Init
+    
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTOR" "$PREFIX"
+    
+# Setting prefix path
+POL_Wine_SelectPrefix "$PREFIX"
+    
+# Downloading wine if necessary and creating prefix
+POL_System_SetArch "x64"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+    
+#DVD maybe later
+POL_SetupWindow_InstallMethod "STEAM"
+    
+# Installing mandatory dependencies
+if [ "$INSTALL_METHOD" == "STEAM" ]; then
+        POL_Call POL_Install_steam
+        STEAM_ID="242050"
+fi
+   
+#Not sure if it's needed
+POL_Call POL_Install_physx
+POL_Call POL_Install_ubigamelauncher
+  
+# Asking about memory size of graphic card
+POL_SetupWindow_VMS "$GAME_VMS"
+
+# Set Graphic Card informations keys for wine
+POL_Wine_SetVideoDriver
+    
+# Begin game installation
+   
+if [ "$INSTALL_METHOD" == "STEAM" ]; then
+        # Mandatory pre-install fix for steam
+        POL_Call POL_Install_steam_flags "$STEAM_ID"
+        # Shortcut done before install for steam version
+        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID"
+        POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""
+        # Steam install
+        POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
+        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+        POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
+        POL_Wine_WaitExit "$TITLE"
+fi
+     
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date conv:yy-mm-dd
# Date : (2017-06-04)
# Last revision : (2017-06-04)
# Wine version used : 2.9-staging
# Distribution used to test : Ubuntu 16.04
# Author : ImperatorS79
# Licence : Retail
# Only For : http://www.playonlinux.com
    
## Begin Note ##
# see https://www.youtube.com/watch?v=4JoebSYERsc and https://appdb.winehq.org/objectManager.php?sClass=version&iId=29849&iTestingId=98002
# Not from me, but inspired this script, it's a kind of test...
# Script inspired from AC2 script
## End Note ##
    
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
    
TITLE="Assassin's Creed 4 : Black Flag"
PREFIX="AssassinsCreed4"
EDITOR="Ubisoft"
GAME_URL="https://www.ubisoft.com/fr-fr/game/assassins-creed-4-black-flag"
AUTOR="ImperatorS79"
WORKING_WINE_VERSION="2.9-staging"
GAME_VMS="512"
    
# Starting the script
#POL_GetSetupImages "undefined" "undefine" "$TITLE"
POL_SetupWindow_Init
    
# Starting debugging API
POL_Debug_Init
    
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTOR" "$PREFIX"
    
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
    
# Downloading wine if necessary and creating prefix
POL_System_SetArch "x64"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
    
#DVD maybe later
POL_SetupWindow_InstallMethod "STEAM"
    
# Installing mandatory dependencies
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Call POL_Install_steam
        STEAM_ID="242050"
fi
   
#Not sure if it's needed
POL_Call POL_Install_physx
POL_Call POL_Install_ubigamelauncher
  
# Asking about memory size of graphic card
POL_SetupWindow_VMS "$GAME_VMS"

# Set Graphic Card informations keys for wine
POL_Wine_SetVideoDriver
    
# Begin game installation
   
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        # Mandatory pre-install fix for steam
        POL_Call POL_Install_steam_flags "$STEAM_ID"
        # Shortcut done before install for steam version
        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID"
        POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""
        # Steam install
        POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
        POL_Wine_WaitExit "$TITLE"
fi
     
POL_SetupWindow_Close
exit 0

Replies

ImperatorS79 Sunday 4 June 2017 at 15:23
ImperatorS79 Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Better with "GAME_VMS"

Differences

@@ -0,0 +1,76 @@
+#!/bin/bash
+# Date conv:yy-mm-dd
+# Date : (2017-06-04)
+# Last revision : (2017-06-04)
+# Wine version used : 2.9-staging
+# Distribution used to test : Ubuntu 16.04
+# Author : ImperatorS79
+# Licence : Retail
+# Only For : http://www.playonlinux.com
+   
+## Begin Note ##
+# see https://www.youtube.com/watch?v=4JoebSYERsc and https://appdb.winehq.org/objectManager.php?sClass=version&iId=29849&iTestingId=98002
+# Not from me, but inspired this script, it's a kind of test...
+# Script inspired from AC2 script
+## End Note ##
+   
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+   
+TITLE="Assassin's Creed 4 : Black Flag"
+PREFIX="AssassinsCreed4"
+EDITOR="Ubisoft"
+GAME_URL="https://www.ubisoft.com/fr-fr/game/assassins-creed-4-black-flag"
+AUTOR="ImperatorS79"
+WORKING_WINE_VERSION="2.9-staging"
+GAME_VMS="512"
+   
+# Starting the script
+#POL_GetSetupImages "undefined" "undefine" "$TITLE"
+POL_SetupWindow_Init
+   
+# Starting debugging API
+POL_Debug_Init
+   
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTOR" "$PREFIX"
+   
+# Setting prefix path
+POL_Wine_SelectPrefix "$PREFIX"
+   
+# Downloading wine if necessary and creating prefix
+POL_System_SetArch "x64"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+   
+#DVD maybe later
+POL_SetupWindow_InstallMethod "STEAM"
+   
+# Installing mandatory dependencies
+if [ "$INSTALL_METHOD" == "STEAM" ]; then
+        POL_Call POL_Install_steam
+        STEAM_ID="242050"
+fi
+  
+#Not sure if it's needed
+POL_Call POL_Install_physx
+POL_Call POL_Install_ubigamelauncher
+ 
+# Asking about memory size of graphic card
+POL_SetupWindow_VMS "$GAME_VMS"
+   
+# Begin game installation
+  
+if [ "$INSTALL_METHOD" == "STEAM" ]; then
+        # Mandatory pre-install fix for steam
+        POL_Call POL_Install_steam_flags "$STEAM_ID"
+        # Shortcut done before install for steam version
+        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID"
+        POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""
+        # Steam install
+        POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
+        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+        POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
+        POL_Wine_WaitExit "$TITLE"
+fi
+    
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date conv:yy-mm-dd
# Date : (2017-06-04)
# Last revision : (2017-06-04)
# Wine version used : 2.9-staging
# Distribution used to test : Ubuntu 16.04
# Author : ImperatorS79
# Licence : Retail
# Only For : http://www.playonlinux.com
   
## Begin Note ##
# see https://www.youtube.com/watch?v=4JoebSYERsc and https://appdb.winehq.org/objectManager.php?sClass=version&iId=29849&iTestingId=98002
# Not from me, but inspired this script, it's a kind of test...
# Script inspired from AC2 script
## End Note ##
   
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
   
TITLE="Assassin's Creed 4 : Black Flag"
PREFIX="AssassinsCreed4"
EDITOR="Ubisoft"
GAME_URL="https://www.ubisoft.com/fr-fr/game/assassins-creed-4-black-flag"
AUTOR="ImperatorS79"
WORKING_WINE_VERSION="2.9-staging"
GAME_VMS="512"
   
# Starting the script
#POL_GetSetupImages "undefined" "undefine" "$TITLE"
POL_SetupWindow_Init
   
# Starting debugging API
POL_Debug_Init
   
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTOR" "$PREFIX"
   
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
   
# Downloading wine if necessary and creating prefix
POL_System_SetArch "x64"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
   
#DVD maybe later
POL_SetupWindow_InstallMethod "STEAM"
   
# Installing mandatory dependencies
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Call POL_Install_steam
        STEAM_ID="242050"
fi
  
#Not sure if it's needed
POL_Call POL_Install_physx
POL_Call POL_Install_ubigamelauncher
 
# Asking about memory size of graphic card
POL_SetupWindow_VMS "$GAME_VMS"
   
# Begin game installation
  
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        # Mandatory pre-install fix for steam
        POL_Call POL_Install_steam_flags "$STEAM_ID"
        # Shortcut done before install for steam version
        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID"
        POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""
        # Steam install
        POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
        POL_Wine_WaitExit "$TITLE"
fi
    
POL_SetupWindow_Close
exit 0

Replies

Anonymous
Sunday 4 June 2017 at 16:24
Do you think it will need POL_Wine_SetVideoDriver ?
Anonymous
Sunday 4 June 2017 at 16:25
Or maybe to set win version ?
ImperatorS79 Sunday 4 June 2017 at 15:11
ImperatorS79 Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Minimu Game VMS is 512 Mb

Differences

@@ -0,0 +1,76 @@
+#!/bin/bash
+# Date conv:yy-mm-dd
+# Date : (2017-06-04)
+# Last revision : (2017-06-04)
+# Wine version used : 2.9-staging
+# Distribution used to test : Ubuntu 16.04
+# Author : ImperatorS79
+# Licence : Retail
+# Only For : http://www.playonlinux.com
+  
+## Begin Note ##
+# see https://www.youtube.com/watch?v=4JoebSYERsc and https://appdb.winehq.org/objectManager.php?sClass=version&iId=29849&iTestingId=98002
+# Not from me, but inspired this script, it's a kind of test...
+# Script inspired from AC2 script
+## End Note ##
+  
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+  
+TITLE="Assassin's Creed 4 : Black Flag"
+PREFIX="AssassinsCreed4"
+EDITOR="Ubisoft"
+GAME_URL="https://www.ubisoft.com/fr-fr/game/assassins-creed-4-black-flag"
+AUTOR="ImperatorS79"
+WORKING_WINE_VERSION="2.9-staging"
+GAME_VMS="512"
+  
+# Starting the script
+#POL_GetSetupImages "undefined" "undefine" "$TITLE"
+POL_SetupWindow_Init
+  
+# Starting debugging API
+POL_Debug_Init
+  
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTOR" "$PREFIX"
+  
+# Setting prefix path
+POL_Wine_SelectPrefix "$PREFIX"
+  
+# Downloading wine if necessary and creating prefix
+POL_System_SetArch "x64"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+  
+#DVD maybe later
+POL_SetupWindow_InstallMethod "STEAM"
+  
+# Installing mandatory dependencies
+if [ "$INSTALL_METHOD" == "STEAM" ]; then
+        POL_Call POL_Install_steam
+        STEAM_ID="242050"
+fi
+ 
+#Not sure if it's needed
+POL_Call POL_Install_physx
+POL_Call POL_Install_ubigamelauncher
+
+# Asking about memory size of graphic card
+POL_SetupWindow_VMS $GAME_VMS
+  
+# Begin game installation
+ 
+if [ "$INSTALL_METHOD" == "STEAM" ]; then
+        # Mandatory pre-install fix for steam
+        POL_Call POL_Install_steam_flags "$STEAM_ID"
+        # Shortcut done before install for steam version
+        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID"
+        POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""
+        # Steam install
+        POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
+        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+        POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
+        POL_Wine_WaitExit "$TITLE"
+fi
+   
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date conv:yy-mm-dd
# Date : (2017-06-04)
# Last revision : (2017-06-04)
# Wine version used : 2.9-staging
# Distribution used to test : Ubuntu 16.04
# Author : ImperatorS79
# Licence : Retail
# Only For : http://www.playonlinux.com
  
## Begin Note ##
# see https://www.youtube.com/watch?v=4JoebSYERsc and https://appdb.winehq.org/objectManager.php?sClass=version&iId=29849&iTestingId=98002
# Not from me, but inspired this script, it's a kind of test...
# Script inspired from AC2 script
## End Note ##
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Assassin's Creed 4 : Black Flag"
PREFIX="AssassinsCreed4"
EDITOR="Ubisoft"
GAME_URL="https://www.ubisoft.com/fr-fr/game/assassins-creed-4-black-flag"
AUTOR="ImperatorS79"
WORKING_WINE_VERSION="2.9-staging"
GAME_VMS="512"
  
# Starting the script
#POL_GetSetupImages "undefined" "undefine" "$TITLE"
POL_SetupWindow_Init
  
# Starting debugging API
POL_Debug_Init
  
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTOR" "$PREFIX"
  
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
  
# Downloading wine if necessary and creating prefix
POL_System_SetArch "x64"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
  
#DVD maybe later
POL_SetupWindow_InstallMethod "STEAM"
  
# Installing mandatory dependencies
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Call POL_Install_steam
        STEAM_ID="242050"
fi
 
#Not sure if it's needed
POL_Call POL_Install_physx
POL_Call POL_Install_ubigamelauncher

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
  
# Begin game installation
 
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        # Mandatory pre-install fix for steam
        POL_Call POL_Install_steam_flags "$STEAM_ID"
        # Shortcut done before install for steam version
        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID"
        POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""
        # Steam install
        POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
        POL_Wine_WaitExit "$TITLE"
fi
   
POL_SetupWindow_Close
exit 0

Replies

ImperatorS79 Sunday 4 June 2017 at 11:40
ImperatorS79 Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

So guys seems that AC4 is working under wine so here is a little script inspired from AC2 script.

It only works with steam version, but as i don't have a powerfull linux PC, i can't test it. So I need your tests ;)

In this video ad ths wine bug report, we can see that it's working :

https://appdb.winehq.org/objectManager.php?sClass=version&iId=29849&iTestingId=98002

https://www.youtube.com/watch?v=4JoebSYERsc

I don't know how to add the top, left, 22x22 and 48x48 image, but i made them.

Differences

@@ -0,0 +1,72 @@
+#!/bin/bash
+# Date conv:yy-mm-dd
+# Date : (2017-06-04)
+# Last revision : (2017-06-04)
+# Wine version used : 2.9-staging
+# Distribution used to test : Ubuntu 16.04
+# Author : ImperatorS79
+# Licence : Retail
+# Only For : http://www.playonlinux.com
+ 
+## Begin Note ##
+# see https://www.youtube.com/watch?v=4JoebSYERsc and https://appdb.winehq.org/objectManager.php?sClass=version&iId=29849&iTestingId=98002
+# Not from me, but inspired this script, it's a kind of test...
+# Script inspired from AC2 script
+## End Note ##
+ 
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+TITLE="Assassin's Creed 4 : Black Flag"
+PREFIX="AssassinsCreed4"
+EDITOR="Ubisoft"
+GAME_URL="https://www.ubisoft.com/fr-fr/game/assassins-creed-4-black-flag"
+AUTOR="ImperatorS79"
+WORKING_WINE_VERSION="2.9-staging"
+ 
+# Starting the script
+#POL_GetSetupImages "undefined" "undefine" "$TITLE"
+POL_SetupWindow_Init
+ 
+# Starting debugging API
+POL_Debug_Init
+ 
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTOR" "$PREFIX" 
+ 
+# Setting prefix path
+POL_Wine_SelectPrefix "$PREFIX"
+ 
+# Downloading wine if necessary and creating prefix
+POL_System_SetArch "x64"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+ 
+#DVD maybe later
+POL_SetupWindow_InstallMethod "STEAM"
+ 
+# Installing mandatory dependencies
+if [ "$INSTALL_METHOD" == "STEAM" ]; then
+        POL_Call POL_Install_steam
+        STEAM_ID="242050"
+fi
+
+#Not sure if it's needed
+POL_Call POL_Install_physx
+POL_Call POL_Install_ubigamelauncher
+ 
+# Begin game installation
+
+if [ "$INSTALL_METHOD" == "STEAM" ]; then
+        # Mandatory pre-install fix for steam
+        POL_Call POL_Install_steam_flags "$STEAM_ID"
+        # Shortcut done before install for steam version
+        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID"
+        POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""
+        # Steam install
+        POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
+        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+        POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
+        POL_Wine_WaitExit "$TITLE"
+fi
+  
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date conv:yy-mm-dd
# Date : (2017-06-04)
# Last revision : (2017-06-04)
# Wine version used : 2.9-staging
# Distribution used to test : Ubuntu 16.04
# Author : ImperatorS79
# Licence : Retail
# Only For : http://www.playonlinux.com
 
## Begin Note ##
# see https://www.youtube.com/watch?v=4JoebSYERsc and https://appdb.winehq.org/objectManager.php?sClass=version&iId=29849&iTestingId=98002
# Not from me, but inspired this script, it's a kind of test...
# Script inspired from AC2 script
## End Note ##
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Assassin's Creed 4 : Black Flag"
PREFIX="AssassinsCreed4"
EDITOR="Ubisoft"
GAME_URL="https://www.ubisoft.com/fr-fr/game/assassins-creed-4-black-flag"
AUTOR="ImperatorS79"
WORKING_WINE_VERSION="2.9-staging"
 
# Starting the script
#POL_GetSetupImages "undefined" "undefine" "$TITLE"
POL_SetupWindow_Init
 
# Starting debugging API
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTOR" "$PREFIX" 
 
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
 
# Downloading wine if necessary and creating prefix
POL_System_SetArch "x64"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
#DVD maybe later
POL_SetupWindow_InstallMethod "STEAM"
 
# Installing mandatory dependencies
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Call POL_Install_steam
        STEAM_ID="242050"
fi

#Not sure if it's needed
POL_Call POL_Install_physx
POL_Call POL_Install_ubigamelauncher
 
# Begin game installation

if [ "$INSTALL_METHOD" == "STEAM" ]; then
        # Mandatory pre-install fix for steam
        POL_Call POL_Install_steam_flags "$STEAM_ID"
        # Shortcut done before install for steam version
        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID"
        POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""
        # Steam install
        POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
        POL_Wine_WaitExit "$TITLE"
fi
  
POL_SetupWindow_Close
exit 0

Replies

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com