Dofus

Informations

Creator Message
andykimpe Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 815
Wine: 1.9.24

Feedbacks

Description

Dofus the linux version seems to have a problem with the updater (2016)
I leave you this installer for those who would like to install the Windows version

 

La version linux de dofus semble avoir des problème avec l'updater (2016).
Je vous laisse donc cette installateur pour ceux qui voudrait installer la version Windows.

Source code

#!/bin/bash
# Date : (2016-01-13)
# Last revision : (2019-05-27)
# Wine version used : see below
# Distribution used to test : Kubuntu 18.04 x64
# Author : Arcadien (arc@arcadien.net)
#
# CHANGELOG
# [Dadu042] (2019-05-23)
#   Make use of POL's features gdiplus and flashplayer.

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Dofus"
PREFIX="Dofus"
WORKING_WINE_VERSION="1.9.24"
  
# Start the script
POL_SetupWindow_Init
POL_Debug_Init
  
POL_SetupWindow_presentation "$TITLE" "Ankama Game" "http://www.dofus.com/" "andykimpe" "$PREFIX"
  
# Dotnet20 cannot be installed on a 64 bit system
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
  
POL_Call POL_Install_dotnet40
POL_Call POL_Install_corefonts
POL_Call POL_Install_vcrun2010

cd "$POL_USER_ROOT/ressources/"


POL_Call POL_Install_gdiplus

cd "$WINEPREFIX/drive_c/Tmp"
  

# Overriding dlls
POL_Wine_OverrideDLL "native" "gdiplus"
#WINE=POL_Wine
#winetricks comctl32

POL_Call POL_Install_flashplayer

cd "$POL_System_TmpDir"
POL_Download "http://dl.ak.ankama.com/games/installers/dofus.exe"
INSTALLER="dofus.exe"
 
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$INSTALLER"
  
POL_Shortcut "Dofus.exe" "$TITLE"  "Game;"
POL_SetupWindow_Close
  
exit

Contributions

Filters:

Contribute
Member Message
Dadu042 Monday 27 May 2019 at 15:11
Dadu042
Moderator

Information

This update has been approved by the team.

Message

See changelog.

Differences

@@ -1,57 +1,59 @@
 #!/bin/bash
+# Date : (2016-01-13)
+# Last revision : (2019-05-27)
+# Wine version used : see below
+# Distribution used to test : Kubuntu 18.04 x64
+# Author : Arcadien (arc@arcadien.net)
+#
+# CHANGELOG
+# [Dadu042] (2019-05-23)
+#   Make use of POL's features gdiplus and flashplayer.
 
- 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
- 
+  
 TITLE="Dofus"
 PREFIX="Dofus"
-WORKING_WINE_VERSION="1.9.1"
- 
+WORKING_WINE_VERSION="1.9.24"
+  
 # Start the script
 POL_SetupWindow_Init
 POL_Debug_Init
- 
+  
 POL_SetupWindow_presentation "$TITLE" "Ankama Game" "http://www.dofus.com/" "andykimpe" "$PREFIX"
- 
+  
 # Dotnet20 cannot be installed on a 64 bit system
 POL_Wine_SelectPrefix "$PREFIX"
 POL_System_SetArch "x86"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
- 
+  
 POL_Call POL_Install_dotnet40
 POL_Call POL_Install_corefonts
 POL_Call POL_Install_vcrun2010
+
 cd "$POL_USER_ROOT/ressources/"
-# Downloading GDIplus
-POL_Download_Resource "http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe"
- 
-# Installing GDIplus
-POL_Wine WindowsXP-KB975337-x86-ENU.exe /extract:C:\\Tmp /q
+
+
+POL_Call POL_Install_gdiplus
+
 cd "$WINEPREFIX/drive_c/Tmp"
- 
-if [ "$POL_ARCH" == "amd64" ]; then
-        mv "$WINEPREFIX/drive_c/Tmp/asms/10/msft/windows/gdiplus/gdiplus.dll" "$WINEPREFIX/drive_c/windows/syswow64"
-else
-        mv "$WINEPREFIX/drive_c/Tmp/asms/10/msft/windows/gdiplus/gdiplus.dll" "$WINEPREFIX/drive_c/windows/system32"
-fi
- 
+  
+
 # Overriding dlls
 POL_Wine_OverrideDLL "native" "gdiplus"
 #WINE=POL_Wine
 #winetricks comctl32
-cd "$POL_USER_ROOT/ressources"
-POL_Download_Resource "http://fpdownload.adobe.com/get/flashplayer/pdc/20.0.0.235/install_flash_player.exe"
-POL_Wine_WaitBefore "Flash Player"
-POL_Wine "install_flash_player.exe" -install -au 2
+
+POL_Call POL_Install_flashplayer
+
 cd "$POL_System_TmpDir"
 POL_Download "http://dl.ak.ankama.com/games/installers/dofus.exe"
 INSTALLER="dofus.exe"
-
+ 
 POL_Wine_WaitBefore "$TITLE"
 POL_Wine "$INSTALLER"
- 
-POL_Shortcut "Dofus.exe" "$TITLE" 
+  
+POL_Shortcut "Dofus.exe" "$TITLE"  "Game;"
 POL_SetupWindow_Close
- 
+  
 exit
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2016-01-13)
# Last revision : (2019-05-27)
# Wine version used : see below
# Distribution used to test : Kubuntu 18.04 x64
# Author : Arcadien (arc@arcadien.net)
#
# CHANGELOG
# [Dadu042] (2019-05-23)
#   Make use of POL's features gdiplus and flashplayer.

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Dofus"
PREFIX="Dofus"
WORKING_WINE_VERSION="1.9.24"
  
# Start the script
POL_SetupWindow_Init
POL_Debug_Init
  
POL_SetupWindow_presentation "$TITLE" "Ankama Game" "http://www.dofus.com/" "andykimpe" "$PREFIX"
  
# Dotnet20 cannot be installed on a 64 bit system
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
  
POL_Call POL_Install_dotnet40
POL_Call POL_Install_corefonts
POL_Call POL_Install_vcrun2010

cd "$POL_USER_ROOT/ressources/"


POL_Call POL_Install_gdiplus

cd "$WINEPREFIX/drive_c/Tmp"
  

# Overriding dlls
POL_Wine_OverrideDLL "native" "gdiplus"
#WINE=POL_Wine
#winetricks comctl32

POL_Call POL_Install_flashplayer

cd "$POL_System_TmpDir"
POL_Download "http://dl.ak.ankama.com/games/installers/dofus.exe"
INSTALLER="dofus.exe"
 
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$INSTALLER"
  
POL_Shortcut "Dofus.exe" "$TITLE"  "Game;"
POL_SetupWindow_Close
  
exit

Replies

andykimpe Wednesday 13 January 2016 at 12:11
andykimpe Anonymous

Warning

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

Differences

@@ -0,0 +1,57 @@
+#!/bin/bash
+
+ 
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+TITLE="Dofus"
+PREFIX="Dofus"
+WORKING_WINE_VERSION="1.9.1"
+ 
+# Start the script
+POL_SetupWindow_Init
+POL_Debug_Init
+ 
+POL_SetupWindow_presentation "$TITLE" "Ankama Game" "http://www.dofus.com/" "andykimpe" "$PREFIX"
+ 
+# Dotnet20 cannot be installed on a 64 bit system
+POL_Wine_SelectPrefix "$PREFIX"
+POL_System_SetArch "x86"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+ 
+POL_Call POL_Install_dotnet40
+POL_Call POL_Install_corefonts
+POL_Call POL_Install_vcrun2010
+cd "$POL_USER_ROOT/ressources/"
+# Downloading GDIplus
+POL_Download_Resource "http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe"
+ 
+# Installing GDIplus
+POL_Wine WindowsXP-KB975337-x86-ENU.exe /extract:C:\\Tmp /q
+cd "$WINEPREFIX/drive_c/Tmp"
+ 
+if [ "$POL_ARCH" == "amd64" ]; then
+        mv "$WINEPREFIX/drive_c/Tmp/asms/10/msft/windows/gdiplus/gdiplus.dll" "$WINEPREFIX/drive_c/windows/syswow64"
+else
+        mv "$WINEPREFIX/drive_c/Tmp/asms/10/msft/windows/gdiplus/gdiplus.dll" "$WINEPREFIX/drive_c/windows/system32"
+fi
+ 
+# Overriding dlls
+POL_Wine_OverrideDLL "native" "gdiplus"
+#WINE=POL_Wine
+#winetricks comctl32
+cd "$POL_USER_ROOT/ressources"
+POL_Download_Resource "http://fpdownload.adobe.com/get/flashplayer/pdc/20.0.0.235/install_flash_player.exe"
+POL_Wine_WaitBefore "Flash Player"
+POL_Wine "install_flash_player.exe" -install -au 2
+cd "$POL_System_TmpDir"
+POL_Download "http://dl.ak.ankama.com/games/installers/dofus.exe"
+INSTALLER="dofus.exe"
+
+POL_Wine_WaitBefore "$TITLE"
+POL_Wine "$INSTALLER"
+ 
+POL_Shortcut "Dofus.exe" "$TITLE" 
+POL_SetupWindow_Close
+ 
+exit
\ No newline at end of file

New source code

#!/bin/bash

 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Dofus"
PREFIX="Dofus"
WORKING_WINE_VERSION="1.9.1"
 
# Start the script
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "Ankama Game" "http://www.dofus.com/" "andykimpe" "$PREFIX"
 
# Dotnet20 cannot be installed on a 64 bit system
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
POL_Call POL_Install_dotnet40
POL_Call POL_Install_corefonts
POL_Call POL_Install_vcrun2010
cd "$POL_USER_ROOT/ressources/"
# Downloading GDIplus
POL_Download_Resource "http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe"
 
# Installing GDIplus
POL_Wine WindowsXP-KB975337-x86-ENU.exe /extract:C:\\Tmp /q
cd "$WINEPREFIX/drive_c/Tmp"
 
if [ "$POL_ARCH" == "amd64" ]; then
        mv "$WINEPREFIX/drive_c/Tmp/asms/10/msft/windows/gdiplus/gdiplus.dll" "$WINEPREFIX/drive_c/windows/syswow64"
else
        mv "$WINEPREFIX/drive_c/Tmp/asms/10/msft/windows/gdiplus/gdiplus.dll" "$WINEPREFIX/drive_c/windows/system32"
fi
 
# Overriding dlls
POL_Wine_OverrideDLL "native" "gdiplus"
#WINE=POL_Wine
#winetricks comctl32
cd "$POL_USER_ROOT/ressources"
POL_Download_Resource "http://fpdownload.adobe.com/get/flashplayer/pdc/20.0.0.235/install_flash_player.exe"
POL_Wine_WaitBefore "Flash Player"
POL_Wine "install_flash_player.exe" -install -au 2
cd "$POL_System_TmpDir"
POL_Download "http://dl.ak.ankama.com/games/installers/dofus.exe"
INSTALLER="dofus.exe"

POL_Wine_WaitBefore "$TITLE"
POL_Wine "$INSTALLER"
 
POL_Shortcut "Dofus.exe" "$TITLE" 
POL_SetupWindow_Close
 
exit

Replies

Wednesday 13 January 2016 at 14:03
Why not use the existing gdiplus and flashplayer components?
Anonymous
Wednesday 13 January 2016 at 19:02

by what the md5 are not kept up to date whenever we have the use of a setup error
Wednesday 13 January 2016 at 21:31
Wrong reason to work around them, if they're broken they should be fixed. But we basically get no reports... :(
Wednesday 13 January 2016 at 21:44
And say the Flash player is updated; Since the URL changes each time, removing the MD5 won't allow your script to continue working. Instead of having one script to fix we'll just have two