Guild Wars

Informations

Creator Message
Quentin PÂRIS Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 61860
Wine: 3.20

Feedbacks

Description

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

Appdb.winehq.org

Screenshots

Miniature

Source code

#!/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:

Contribute
Member Message
jp113122 Thursday 4 January 2024 at 19:57
jp113122 Anonymous

Message

I am attempting to launch Guild Wars on my 2015 Macbook pro using the playonmac program. I used the most recent update by IndefinitelyMac as his POL download information was correct; however, i keep getting the following error -

Error in POL_Shortcut
Binary not found: Gw.exe
Have you installed the program to the default location?

 

the program then lets me report a video card (my mac uses a AMD Radeon R9 M370X 2 GB) and the program quits. any help?

Replies

IndefinitelyMac Friday 22 September 2023 at 2:20
IndefinitelyMac Anonymous

Warning

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

Differences

@@ -42,7 +42,7 @@
 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_Download "http://cloudfront.guildwars2.com/client/GwSetup.exe" "470d634f3036c1f26ac6cd9f98028735"
  
 POL_Wine_WaitBefore "$TITLE"
 unzip gwsetup.zip

New source code

#!/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" "470d634f3036c1f26ac6cd9f98028735"
 
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

Replies

Anonymous
Friday 22 September 2023 at 2:21
Updated the hash
Anonymous
Friday 22 September 2023 at 2:23
Didn't update the changelog, sorry about that
Dadu042 Sunday 16 August 2020 at 16:33
Dadu042

Information

This update has been approved by the team.

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

New source code

#!/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

Replies

Dadu042 Wednesday 3 July 2019 at 16:38
Dadu042

Warning

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

Message

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

New source code

#!/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

Replies

Daviot Monday 4 July 2016 at 1:16
Daviot Anonymous

Message

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

Replies

Quentin PÂRIS Sunday 9 August 2015 at 13:09
Quentin PÂRIS Anonymous

Warning

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

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"

New source code

#!/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

Replies

dellintosh Friday 7 August 2015 at 4:52
dellintosh Anonymous

Warning

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

Message

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"

New source code

#!/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

Replies

Anonymous
Friday 7 August 2015 at 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 Wednesday 17 December 2014 at 20:01
AFK_Roger Anonymous

Warning

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

Message

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

New source code

#!/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

Replies