Source code for Guild Wars 2
This script is signed by PlayOnLinux.
#!/bin/bash
# Date : (2012-05-17 21:00)
# Last revision : (2013-04-15 21:00)
# Wine version used : 1.5.4, 1.5.9-raw3, 1.5.28-GuildWars2
# Distribution used to test : Linux Mint Debian Edition x64
# Author : GNU_Raziel
# Licence : Retail
# Only For : http://www.playonlinux.com
## Begin Note ##
# Client may crash every few MB when downloading game, no crash when playing - see Bug #30511 - http://bugs.winehq.org/show_bug.cgi?id=30511
# Used Awesomium patch to fix Bug #27168 - http://bugs.winehq.org/show_bug.cgi?id=27168
## End Note ##
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Guild Wars 2"
PREFIX="GuildWars2"
EDITOR="ArenaNet"
GAME_URL="http://www.guildwars2.com"
AUTHOR="GNU_Raziel"
GAME_VMS="512"
# Starting the script
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/gw2/top.jpg" "http://files.playonlinux.com/resources/setups/gw2/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_SetupWindow_SetID 1126
# Starting debugging API
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
# Setting Wine Version
WORKING_WINE_VERSION="1.5.28-GuildWars2"
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
# Downloading wine if necessary and creating prefix
POL_System_SetArch "auto"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
# (Added by Tinou) Seems to help with random crash issue
Set_OS "win7"
# Choose between Downloading client or using local one
POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL,CD"
# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver
# Fix for this game
POL_Wine_X11Drv "GrabFullscreen" "Y"
# Downloading client or choosing existing one
mkdir -p "$WINEPREFIX/drive_c/$PROGRAMFILES/ArenaNet/Guild Wars 2"
if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
# Donwloading client
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/ArenaNet/Guild Wars 2"
POL_Download "http://cloudfront.guildwars2.com/client/Gw2.exe" "2c720359773a7e1ac23ef44b01b8b4e5"
elif [ "$INSTALL_METHOD" = "LOCAL" ]; then
# Asking for client exe
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
SETUP_EXE="$APP_ANSWER"
cp "$SETUP_EXE" "$WINEPREFIX/drive_c/$PROGRAMFILES/ArenaNet/Guild Wars 2/Gw2.exe"
else
POL_Call POL_Wine_InstallCDROM "1" "w" "GW2Setup.exe"
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$CDROM/Gw2Setup.exe"
POL_Call POL_Wine_InstallCDROM "2" "w" "Gw2.js2"
POL_Wine_WaitExit "$TITLE"
fi
# Making shortcut
POL_Shortcut "Gw2.exe" "$TITLE" "$TITLE.png" "-dx9single" "Game;RolePlaying;"
# Begin installation
# Warning message about bug #30511
POL_SetupWindow_message "$(eval_gettext 'Because of wine bug #30512, dowloading will often crash, just relaunch the client and download will resume from where it stopped. Download percentage reset but do not worry, it do not restart from the beginning.')" "$TITLE"
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/ArenaNet/Guild Wars 2"
POL_Wine start /unix Gw2.exe -dx9single
POL_SetupWindow_Close
exit 0 Signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEABECAAYFAlFsVzAACgkQ5TH6yaoTykdeawCfUXfSQ6Pm+N36UorxG26xOOF7
fTcAnj1VO+QFQ6fyeHwGm9TCmKa/XnV6
=/snZ
-----END PGP SIGNATURE-----
Date : 15 April 2013 21:38:24
Signed by : PlayOnLinux
E-Mail : gpg@playonlinux.com
Comment : PlayOnLinux and PlayOnMac scripting keys
Fingerprint : 45B56114D9EA1640D68135CCE531FAC9AA13CA47
Known install files
1. 2c720359773a7e1ac23ef44b01b8b4e5
2. 192e2d4273be9db2750487197c2f3020