Guild Wars

Informations

Créateur Messages
Quentin PÂRIS
Admin

Information

Cet installateur a été accepté par l'équipe.

Informations

Plate-formes :
Téléchargements : 55662
Wine: 3.20

Retours d'expérience

Description

Guild Wars is an episodic series of multiplayer online role-playing games, 2005. Wikipedia.

Appdb.winehq.org

Captures d'écran

Miniature

Code source

#!/bin/bash
# Author : Tinou/MulX
# 
# Changelog
#
# [MulX] (2010-08-17)
#         Syntax error
# [Quentin PÂRIS] (2012-05-12 13:48)
#         Update to PlayOnLinux V4
#         CD-ROM support is removed because it's broken
# [Quentin PÂRIS] (2012-05-24 21:05)
#         Download from Guild Wars's website
# [Quentin PÂRIS] (2015-08-09)
#         Changed Donwload link to match new link from offical site and checksum
# [Dadu042] (2019-07-03 16:24)
#         Upgrade from Wine 1.7.39 to 2.22 according to appdb.winehq.org and my trouble with the GUI (windows reduced) of the installer (POL 4.3.4, XUbuntu 18.04).
#         Update the checksum of GwSetup.exe
# [Dadu042] (2020-09-16 15:00)
#         Upgrade from Wine 2.22 to 3.20 (not tested. Latest supported by POL v4.2)
#         Improve POL_Shortcut


[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
   
TITLE="Guild Wars"
WINEVERSION="3.20"
PREFIX="GuildWars"
  
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "Guild Wars" "NCsoft" "http://www.guildwars.com" "Quentin PÂRIS, MulX" "$PREFIX"
  
# Use current wine
  
POL_Wine_SelectPrefix "GuildWars"
POL_Wine_PrefixCreate "$WINEVERSION"
[ "$POL_OS" = "Mac" ] && Set_Managed Off
  
POL_SetupWindow_InstallMethod "DVD,DOWNLOAD"
  
mkdir -p "$WINEPREFIX/drive_c/GW"
cd "$WINEPREFIX/drive_c/GW" || POL_Debug_Fatal "Unable to change directory"
 
POL_Download "http://cloudfront.guildwars2.com/client/GwSetup.exe" "c40f85e2a44d44bdbee81406d7570b90"
 
POL_Wine_WaitBefore "$TITLE"
unzip gwsetup.zip
POL_Wine --ignore-errors "GwSetup.exe"
  
  
# POL_Wine regedit Gw.reg
  
if [ "$INSTALL_METHOD" = "CD" ]; then
        # TO do
        echo "Not supported yet"
fi
  
if [ "$INSTALL_METHOD" = "DVD" ]; then
        POL_SetupWindow_message "$(eval_gettext 'Please insert the DVD-ROM')" "$TITLE"
        POL_SetupWindow_cdrom
        POL_System_cp "$CDROM/Data/Gw/Gw.dat" "$WINEPREFIX/drive_c/$PROGRAMFILES/GUILD WARS/Gw.dat"
fi
  
  
# Fix a bug of the next command when answer is no.
touch "$WINEPREFIX/drive_c/$PROGRAMFILES/GUILD WARS/Gw.dat"
# Fix a bug when file created is not RW (read write allowed)
chmod +rw "$WINEPREFIX/drive_c/$PROGRAMFILES/GUILD WARS/Gw.dat"
  
POL_Shortcut "Gw.exe" "$TITLE" "" "" "Game;RolePlaying;"
POL_Wine_SetVideoDriver
  
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribuer
Membre Messages
Dadu042 Dimanche 16 Aoüt 2020 à 16:33
Dadu042
Modérateur

Information

Cette mise à jour a été acceptée par l'équipe

Differences

@@ -15,57 +15,61 @@
 # [Dadu042] (2019-07-03 16:24)
 #         Upgrade from Wine 1.7.39 to 2.22 according to appdb.winehq.org and my trouble with the GUI (windows reduced) of the installer (POL 4.3.4, XUbuntu 18.04).
 #         Update the checksum of GwSetup.exe
+# [Dadu042] (2020-09-16 15:00)
+#         Upgrade from Wine 2.22 to 3.20 (not tested. Latest supported by POL v4.2)
+#         Improve POL_Shortcut
+
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-  
+   
 TITLE="Guild Wars"
-WINEVERSION="2.22"
+WINEVERSION="3.20"
 PREFIX="GuildWars"
- 
+  
 POL_SetupWindow_Init
 POL_Debug_Init
 POL_SetupWindow_presentation "Guild Wars" "NCsoft" "http://www.guildwars.com" "Quentin PÂRIS, MulX" "$PREFIX"
- 
+  
 # Use current wine
- 
+  
 POL_Wine_SelectPrefix "GuildWars"
 POL_Wine_PrefixCreate "$WINEVERSION"
 [ "$POL_OS" = "Mac" ] && Set_Managed Off
- 
+  
 POL_SetupWindow_InstallMethod "DVD,DOWNLOAD"
- 
+  
 mkdir -p "$WINEPREFIX/drive_c/GW"
 cd "$WINEPREFIX/drive_c/GW" || POL_Debug_Fatal "Unable to change directory"
-
+ 
 POL_Download "http://cloudfront.guildwars2.com/client/GwSetup.exe" "c40f85e2a44d44bdbee81406d7570b90"
-
+ 
 POL_Wine_WaitBefore "$TITLE"
 unzip gwsetup.zip
 POL_Wine --ignore-errors "GwSetup.exe"
- 
- 
-#POL_Wine regedit Gw.reg
- 
+  
+  
+# POL_Wine regedit Gw.reg
+  
 if [ "$INSTALL_METHOD" = "CD" ]; then
         # TO do
         echo "Not supported yet"
 fi
- 
+  
 if [ "$INSTALL_METHOD" = "DVD" ]; then
         POL_SetupWindow_message "$(eval_gettext 'Please insert the DVD-ROM')" "$TITLE"
         POL_SetupWindow_cdrom
         POL_System_cp "$CDROM/Data/Gw/Gw.dat" "$WINEPREFIX/drive_c/$PROGRAMFILES/GUILD WARS/Gw.dat"
 fi
- 
- 
+  
+  
 # Fix a bug of the next command when answer is no.
 touch "$WINEPREFIX/drive_c/$PROGRAMFILES/GUILD WARS/Gw.dat"
-# Fix a bug when file created is not rw 
+# Fix a bug when file created is not RW (read write allowed)
 chmod +rw "$WINEPREFIX/drive_c/$PROGRAMFILES/GUILD WARS/Gw.dat"
- 
-POL_Shortcut "Gw.exe" "$TITLE"
+  
+POL_Shortcut "Gw.exe" "$TITLE" "" "" "Game;RolePlaying;"
 POL_Wine_SetVideoDriver
- 
+  
 POL_SetupWindow_Close
 exit 0
\ No newline at end of file

Nouveau code source

#!/bin/bash
# Author : Tinou/MulX
# 
# Changelog
#
# [MulX] (2010-08-17)
#         Syntax error
# [Quentin PÂRIS] (2012-05-12 13:48)
#         Update to PlayOnLinux V4
#         CD-ROM support is removed because it's broken
# [Quentin PÂRIS] (2012-05-24 21:05)
#         Download from Guild Wars's website
# [Quentin PÂRIS] (2015-08-09)
#         Changed Donwload link to match new link from offical site and checksum
# [Dadu042] (2019-07-03 16:24)
#         Upgrade from Wine 1.7.39 to 2.22 according to appdb.winehq.org and my trouble with the GUI (windows reduced) of the installer (POL 4.3.4, XUbuntu 18.04).
#         Update the checksum of GwSetup.exe
# [Dadu042] (2020-09-16 15:00)
#         Upgrade from Wine 2.22 to 3.20 (not tested. Latest supported by POL v4.2)
#         Improve POL_Shortcut


[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
   
TITLE="Guild Wars"
WINEVERSION="3.20"
PREFIX="GuildWars"
  
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "Guild Wars" "NCsoft" "http://www.guildwars.com" "Quentin PÂRIS, MulX" "$PREFIX"
  
# Use current wine
  
POL_Wine_SelectPrefix "GuildWars"
POL_Wine_PrefixCreate "$WINEVERSION"
[ "$POL_OS" = "Mac" ] && Set_Managed Off
  
POL_SetupWindow_InstallMethod "DVD,DOWNLOAD"
  
mkdir -p "$WINEPREFIX/drive_c/GW"
cd "$WINEPREFIX/drive_c/GW" || POL_Debug_Fatal "Unable to change directory"
 
POL_Download "http://cloudfront.guildwars2.com/client/GwSetup.exe" "c40f85e2a44d44bdbee81406d7570b90"
 
POL_Wine_WaitBefore "$TITLE"
unzip gwsetup.zip
POL_Wine --ignore-errors "GwSetup.exe"
  
  
# POL_Wine regedit Gw.reg
  
if [ "$INSTALL_METHOD" = "CD" ]; then
        # TO do
        echo "Not supported yet"
fi
  
if [ "$INSTALL_METHOD" = "DVD" ]; then
        POL_SetupWindow_message "$(eval_gettext 'Please insert the DVD-ROM')" "$TITLE"
        POL_SetupWindow_cdrom
        POL_System_cp "$CDROM/Data/Gw/Gw.dat" "$WINEPREFIX/drive_c/$PROGRAMFILES/GUILD WARS/Gw.dat"
fi
  
  
# Fix a bug of the next command when answer is no.
touch "$WINEPREFIX/drive_c/$PROGRAMFILES/GUILD WARS/Gw.dat"
# Fix a bug when file created is not RW (read write allowed)
chmod +rw "$WINEPREFIX/drive_c/$PROGRAMFILES/GUILD WARS/Gw.dat"
  
POL_Shortcut "Gw.exe" "$TITLE" "" "" "Game;RolePlaying;"
POL_Wine_SetVideoDriver
  
POL_SetupWindow_Close
exit 0

Réponses

Dadu042 Mercredi 3 Juillet 2019 à 16:38
Dadu042
Modérateur

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

See changelog in the script.

Differences

@@ -4,64 +4,68 @@
 # Changelog
 #
 # [MulX] (2010-08-17)
-# 	Syntax error
+#         Syntax error
 # [Quentin PÂRIS] (2012-05-12 13:48)
-# 	Update to PlayOnLinux V4
-# 	CD-ROM support is removed because it's broken
+#         Update to PlayOnLinux V4
+#         CD-ROM support is removed because it's broken
 # [Quentin PÂRIS] (2012-05-24 21:05)
-# 	Download from Guild Wars's website
+#         Download from Guild Wars's website
+# [Quentin PÂRIS] (2015-08-09)
+#         Changed Donwload link to match new link from offical site and checksum
+# [Dadu042] (2019-07-03 16:24)
+#         Upgrade from Wine 1.7.39 to 2.22 according to appdb.winehq.org and my trouble with the GUI (windows reduced) of the installer (POL 4.3.4, XUbuntu 18.04).
+#         Update the checksum of GwSetup.exe
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
- 
+  
 TITLE="Guild Wars"
-WINEVERSION="1.7.39"
+WINEVERSION="2.22"
 PREFIX="GuildWars"
-
+ 
 POL_SetupWindow_Init
 POL_Debug_Init
-POL_SetupWindow_presentation "Guild Wars" "NCsoft" "http://www.guildwars.com" "Quentin PÂRIS, MulX" "$PREFIX" 
-
+POL_SetupWindow_presentation "Guild Wars" "NCsoft" "http://www.guildwars.com" "Quentin PÂRIS, MulX" "$PREFIX"
+ 
 # Use current wine
-
+ 
 POL_Wine_SelectPrefix "GuildWars"
 POL_Wine_PrefixCreate "$WINEVERSION"
 [ "$POL_OS" = "Mac" ] && Set_Managed Off
-
+ 
 POL_SetupWindow_InstallMethod "DVD,DOWNLOAD"
-
+ 
 mkdir -p "$WINEPREFIX/drive_c/GW"
 cd "$WINEPREFIX/drive_c/GW" || POL_Debug_Fatal "Unable to change directory"
 
-# Changed Donwload link to match new link from offical site and checksum
-POL_Download "http://cloudfront.guildwars2.com/client/GwSetup.exe" "da05b7ee3e299e6ef471f29c73be0e83"
+POL_Download "http://cloudfront.guildwars2.com/client/GwSetup.exe" "c40f85e2a44d44bdbee81406d7570b90"
 
 POL_Wine_WaitBefore "$TITLE"
 unzip gwsetup.zip
 POL_Wine --ignore-errors "GwSetup.exe"
-
-
+ 
+ 
 #POL_Wine regedit Gw.reg
-
+ 
 if [ "$INSTALL_METHOD" = "CD" ]; then
-	# TO do
-	echo "Not supported yet"
+        # TO do
+        echo "Not supported yet"
 fi
-
+ 
 if [ "$INSTALL_METHOD" = "DVD" ]; then
-	POL_SetupWindow_message "$(eval_gettext 'Please insert the DVD-ROM')" "$TITLE"
-	POL_SetupWindow_cdrom 
-	POL_System_cp "$CDROM/Data/Gw/Gw.dat" "$WINEPREFIX/drive_c/$PROGRAMFILES/GUILD WARS/Gw.dat"
+        POL_SetupWindow_message "$(eval_gettext 'Please insert the DVD-ROM')" "$TITLE"
+        POL_SetupWindow_cdrom
+        POL_System_cp "$CDROM/Data/Gw/Gw.dat" "$WINEPREFIX/drive_c/$PROGRAMFILES/GUILD WARS/Gw.dat"
 fi
-
-
-#fix a bug of the next command when answer is no.
+ 
+ 
+# Fix a bug of the next command when answer is no.
 touch "$WINEPREFIX/drive_c/$PROGRAMFILES/GUILD WARS/Gw.dat"
-#fix a bug when file created is not rw 
+# Fix a bug when file created is not rw 
 chmod +rw "$WINEPREFIX/drive_c/$PROGRAMFILES/GUILD WARS/Gw.dat"
-
+ 
 POL_Shortcut "Gw.exe" "$TITLE"
-POL_Wine_SetVideoDriver 
-
+POL_Wine_SetVideoDriver
+ 
 POL_SetupWindow_Close
-exit
\ No newline at end of file
+exit 0
\ No newline at end of file

Nouveau code source

#!/bin/bash
# Author : Tinou/MulX
# 
# Changelog
#
# [MulX] (2010-08-17)
#         Syntax error
# [Quentin PÂRIS] (2012-05-12 13:48)
#         Update to PlayOnLinux V4
#         CD-ROM support is removed because it's broken
# [Quentin PÂRIS] (2012-05-24 21:05)
#         Download from Guild Wars's website
# [Quentin PÂRIS] (2015-08-09)
#         Changed Donwload link to match new link from offical site and checksum
# [Dadu042] (2019-07-03 16:24)
#         Upgrade from Wine 1.7.39 to 2.22 according to appdb.winehq.org and my trouble with the GUI (windows reduced) of the installer (POL 4.3.4, XUbuntu 18.04).
#         Update the checksum of GwSetup.exe

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Guild Wars"
WINEVERSION="2.22"
PREFIX="GuildWars"
 
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "Guild Wars" "NCsoft" "http://www.guildwars.com" "Quentin PÂRIS, MulX" "$PREFIX"
 
# Use current wine
 
POL_Wine_SelectPrefix "GuildWars"
POL_Wine_PrefixCreate "$WINEVERSION"
[ "$POL_OS" = "Mac" ] && Set_Managed Off
 
POL_SetupWindow_InstallMethod "DVD,DOWNLOAD"
 
mkdir -p "$WINEPREFIX/drive_c/GW"
cd "$WINEPREFIX/drive_c/GW" || POL_Debug_Fatal "Unable to change directory"

POL_Download "http://cloudfront.guildwars2.com/client/GwSetup.exe" "c40f85e2a44d44bdbee81406d7570b90"

POL_Wine_WaitBefore "$TITLE"
unzip gwsetup.zip
POL_Wine --ignore-errors "GwSetup.exe"
 
 
#POL_Wine regedit Gw.reg
 
if [ "$INSTALL_METHOD" = "CD" ]; then
        # TO do
        echo "Not supported yet"
fi
 
if [ "$INSTALL_METHOD" = "DVD" ]; then
        POL_SetupWindow_message "$(eval_gettext 'Please insert the DVD-ROM')" "$TITLE"
        POL_SetupWindow_cdrom
        POL_System_cp "$CDROM/Data/Gw/Gw.dat" "$WINEPREFIX/drive_c/$PROGRAMFILES/GUILD WARS/Gw.dat"
fi
 
 
# Fix a bug of the next command when answer is no.
touch "$WINEPREFIX/drive_c/$PROGRAMFILES/GUILD WARS/Gw.dat"
# Fix a bug when file created is not rw 
chmod +rw "$WINEPREFIX/drive_c/$PROGRAMFILES/GUILD WARS/Gw.dat"
 
POL_Shortcut "Gw.exe" "$TITLE"
POL_Wine_SetVideoDriver
 
POL_SetupWindow_Close
exit 0

Réponses

Daviot Lundi 4 Juillet 2016 à 1:16
Daviot Anonymous

Messages

Using current installer script from within PlayOnLinux program, installs and runs with no further modification needed.  Slight graphical quirks (similar to old analogue TV "snow") during loading screens, but gameplay functions smoothly with no issues.

System: Linux Mint 18.0 w/ kernel 4.4.0-21

Réponses

Quentin PÂRIS Dimanche 9 Aoüt 2015 à 13:09
Quentin PÂRIS
Admin

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Differences

@@ -15,7 +15,7 @@
 source "$PLAYONLINUX/lib/sources"
  
 TITLE="Guild Wars"
-WINEVERSION="1.5.3"
+WINEVERSION="1.7.39"
 PREFIX="GuildWars"
 
 POL_SetupWindow_Init
@@ -23,8 +23,6 @@
 POL_SetupWindow_presentation "Guild Wars" "NCsoft" "http://www.guildwars.com" "Quentin PÂRIS, MulX" "$PREFIX" 
 
 # Use current wine
-POL_SetupWindow_install_wine "1.5.3"
-Set_WineVersion_Session "1.5.3"
 
 POL_Wine_SelectPrefix "GuildWars"
 POL_Wine_PrefixCreate "$WINEVERSION"

Nouveau code source

#!/bin/bash
# Author : Tinou/MulX
# 
# Changelog
#
# [MulX] (2010-08-17)
#         Syntax error
# [Quentin PÂRIS] (2012-05-12 13:48)
#         Update to PlayOnLinux V4
#         CD-ROM support is removed because it's broken
# [Quentin PÂRIS] (2012-05-24 21:05)
#         Download from Guild Wars's website

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Guild Wars"
WINEVERSION="1.7.39"
PREFIX="GuildWars"

POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "Guild Wars" "NCsoft" "http://www.guildwars.com" "Quentin PÂRIS, MulX" "$PREFIX" 

# Use current wine

POL_Wine_SelectPrefix "GuildWars"
POL_Wine_PrefixCreate "$WINEVERSION"
[ "$POL_OS" = "Mac" ] && Set_Managed Off

POL_SetupWindow_InstallMethod "DVD,DOWNLOAD"

mkdir -p "$WINEPREFIX/drive_c/GW"
cd "$WINEPREFIX/drive_c/GW" || POL_Debug_Fatal "Unable to change directory"

# Changed Donwload link to match new link from offical site and checksum
POL_Download "http://cloudfront.guildwars2.com/client/GwSetup.exe" "da05b7ee3e299e6ef471f29c73be0e83"

POL_Wine_WaitBefore "$TITLE"
unzip gwsetup.zip
POL_Wine --ignore-errors "GwSetup.exe"


#POL_Wine regedit Gw.reg

if [ "$INSTALL_METHOD" = "CD" ]; then
        # TO do
        echo "Not supported yet"
fi

if [ "$INSTALL_METHOD" = "DVD" ]; then
        POL_SetupWindow_message "$(eval_gettext 'Please insert the DVD-ROM')" "$TITLE"
        POL_SetupWindow_cdrom 
        POL_System_cp "$CDROM/Data/Gw/Gw.dat" "$WINEPREFIX/drive_c/$PROGRAMFILES/GUILD WARS/Gw.dat"
fi


#fix a bug of the next command when answer is no.
touch "$WINEPREFIX/drive_c/$PROGRAMFILES/GUILD WARS/Gw.dat"
#fix a bug when file created is not rw 
chmod +rw "$WINEPREFIX/drive_c/$PROGRAMFILES/GUILD WARS/Gw.dat"

POL_Shortcut "Gw.exe" "$TITLE"
POL_Wine_SetVideoDriver 

POL_SetupWindow_Close
exit

Réponses

dellintosh Vendredi 7 Aoüt 2015 à 4:52
dellintosh Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

Version 1.5.3 fails to load the installer due to missing window libraries.  Updating to 1.7.39 works fine!

Differences

@@ -15,7 +15,7 @@
 source "$PLAYONLINUX/lib/sources"
  
 TITLE="Guild Wars"
-WINEVERSION="1.5.3"
+WINEVERSION="1.7.39"
 PREFIX="GuildWars"
 
 POL_SetupWindow_Init
@@ -23,8 +23,8 @@
 POL_SetupWindow_presentation "Guild Wars" "NCsoft" "http://www.guildwars.com" "Quentin PÂRIS, MulX" "$PREFIX" 
 
 # Use current wine
-POL_SetupWindow_install_wine "1.5.3"
-Set_WineVersion_Session "1.5.3"
+POL_SetupWindow_install_wine "1.7.39"
+Set_WineVersion_Session "1.7.39"
 
 POL_Wine_SelectPrefix "GuildWars"
 POL_Wine_PrefixCreate "$WINEVERSION"

Nouveau code source

#!/bin/bash
# Author : Tinou/MulX
# 
# Changelog
#
# [MulX] (2010-08-17)
#         Syntax error
# [Quentin PÂRIS] (2012-05-12 13:48)
#         Update to PlayOnLinux V4
#         CD-ROM support is removed because it's broken
# [Quentin PÂRIS] (2012-05-24 21:05)
#         Download from Guild Wars's website

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Guild Wars"
WINEVERSION="1.7.39"
PREFIX="GuildWars"

POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "Guild Wars" "NCsoft" "http://www.guildwars.com" "Quentin PÂRIS, MulX" "$PREFIX" 

# Use current wine
POL_SetupWindow_install_wine "1.7.39"
Set_WineVersion_Session "1.7.39"

POL_Wine_SelectPrefix "GuildWars"
POL_Wine_PrefixCreate "$WINEVERSION"
[ "$POL_OS" = "Mac" ] && Set_Managed Off

POL_SetupWindow_InstallMethod "DVD,DOWNLOAD"

mkdir -p "$WINEPREFIX/drive_c/GW"
cd "$WINEPREFIX/drive_c/GW" || POL_Debug_Fatal "Unable to change directory"

# Changed Donwload link to match new link from offical site and checksum
POL_Download "http://cloudfront.guildwars2.com/client/GwSetup.exe" "da05b7ee3e299e6ef471f29c73be0e83"

POL_Wine_WaitBefore "$TITLE"
unzip gwsetup.zip
POL_Wine --ignore-errors "GwSetup.exe"


#POL_Wine regedit Gw.reg

if [ "$INSTALL_METHOD" = "CD" ]; then
        # TO do
        echo "Not supported yet"
fi

if [ "$INSTALL_METHOD" = "DVD" ]; then
        POL_SetupWindow_message "$(eval_gettext 'Please insert the DVD-ROM')" "$TITLE"
        POL_SetupWindow_cdrom 
        POL_System_cp "$CDROM/Data/Gw/Gw.dat" "$WINEPREFIX/drive_c/$PROGRAMFILES/GUILD WARS/Gw.dat"
fi


#fix a bug of the next command when answer is no.
touch "$WINEPREFIX/drive_c/$PROGRAMFILES/GUILD WARS/Gw.dat"
#fix a bug when file created is not rw 
chmod +rw "$WINEPREFIX/drive_c/$PROGRAMFILES/GUILD WARS/Gw.dat"

POL_Shortcut "Gw.exe" "$TITLE"
POL_Wine_SetVideoDriver 

POL_SetupWindow_Close
exit

Réponses

Vendredi 7 Aoüt 2015 à 20:12
Can you update the script so that it does no longer use deprecated (and not supported in the couple of next versions)? Thanks :)
AFK_Roger Mercredi 17 Décembre 2014 à 20:01
AFK_Roger Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

The download link used to download the installer is invalid this script has the fixed link and checksum.

New Link: http://cloudfront.guildwars2.com/client/GwSetup.exe

New Checksum = da05b7ee3e299e6ef471f29c73be0e83

Differences

@@ -35,7 +35,8 @@
 mkdir -p "$WINEPREFIX/drive_c/GW"
 cd "$WINEPREFIX/drive_c/GW" || POL_Debug_Fatal "Unable to change directory"
 
-POL_Download "http://www.guildwars.com/downloads/gwsetup.zip" "38ba9f03dce96df5991ffff7c555ecd5"
+# Changed Donwload link to match new link from offical site and checksum
+POL_Download "http://cloudfront.guildwars2.com/client/GwSetup.exe" "da05b7ee3e299e6ef471f29c73be0e83"
 
 POL_Wine_WaitBefore "$TITLE"
 unzip gwsetup.zip

Nouveau code source

#!/bin/bash
# Author : Tinou/MulX
# 
# Changelog
#
# [MulX] (2010-08-17)
#         Syntax error
# [Quentin PÂRIS] (2012-05-12 13:48)
#         Update to PlayOnLinux V4
#         CD-ROM support is removed because it's broken
# [Quentin PÂRIS] (2012-05-24 21:05)
#         Download from Guild Wars's website

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Guild Wars"
WINEVERSION="1.5.3"
PREFIX="GuildWars"

POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "Guild Wars" "NCsoft" "http://www.guildwars.com" "Quentin PÂRIS, MulX" "$PREFIX" 

# Use current wine
POL_SetupWindow_install_wine "1.5.3"
Set_WineVersion_Session "1.5.3"

POL_Wine_SelectPrefix "GuildWars"
POL_Wine_PrefixCreate "$WINEVERSION"
[ "$POL_OS" = "Mac" ] && Set_Managed Off

POL_SetupWindow_InstallMethod "DVD,DOWNLOAD"

mkdir -p "$WINEPREFIX/drive_c/GW"
cd "$WINEPREFIX/drive_c/GW" || POL_Debug_Fatal "Unable to change directory"

# Changed Donwload link to match new link from offical site and checksum
POL_Download "http://cloudfront.guildwars2.com/client/GwSetup.exe" "da05b7ee3e299e6ef471f29c73be0e83"

POL_Wine_WaitBefore "$TITLE"
unzip gwsetup.zip
POL_Wine --ignore-errors "GwSetup.exe"


#POL_Wine regedit Gw.reg

if [ "$INSTALL_METHOD" = "CD" ]; then
        # TO do
        echo "Not supported yet"
fi

if [ "$INSTALL_METHOD" = "DVD" ]; then
        POL_SetupWindow_message "$(eval_gettext 'Please insert the DVD-ROM')" "$TITLE"
        POL_SetupWindow_cdrom 
        POL_System_cp "$CDROM/Data/Gw/Gw.dat" "$WINEPREFIX/drive_c/$PROGRAMFILES/GUILD WARS/Gw.dat"
fi


#fix a bug of the next command when answer is no.
touch "$WINEPREFIX/drive_c/$PROGRAMFILES/GUILD WARS/Gw.dat"
#fix a bug when file created is not rw 
chmod +rw "$WINEPREFIX/drive_c/$PROGRAMFILES/GUILD WARS/Gw.dat"

POL_Shortcut "Gw.exe" "$TITLE"
POL_Wine_SetVideoDriver 

POL_SetupWindow_Close
exit

Réponses