Dragon Age 2

Informations

Creator Message
GNU_Raziel

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 26184
Wine: 1.3.27

Feedbacks

Description

Français :
Dragon Age II est un jeu de rôle/action. Vous y incarnez Hawke, un humain originaire de la ville de Lothering. Choisissez le sexe et la classe de votre personnage, et partez à l'aventure dans la ville de Kirkwall. Les choix de dialogues sont toujours présents et le système de combat vous permettra d'opter pour la stratégie ou l'action temps réel.

English :
Dragon Age II tells the story of Hawke, a survivor of the Darkspawn horde's destruction of Lothering who rises to become the Champion of Kirkwall. Using a framed story format, Varric, one of Hawke's companions, tells Hawke's story to Cassandra Pentaghast, a Chantry Seeker; "decisions" made in the game by the player determine more than a decade of history that changes the world of Thedas forever.

Screenshots

MiniatureMiniature

Source code

#!/bin/bash
# Date : (2011-09-03 21-00)
# Last revision : (2011-09-02 16:02)
# Wine version used : 1.3.15, 1.3.23, 1.3.27
# Distribution used to test : Debian Testing x64
# Author : GNU_Raziel
# Licence : Retail
# Only For : http://www.playonlinux.com

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Dragon Age 2"
TITLE_CONFIG="Dragon Age 2 - Configutation"
PREFIX="DA2"
WORKING_WINE_VERSION="1.3.27"
GAME_VMS="256"

# Starting the script
rm "$POL_USER_ROOT/tmp/*.jpg"
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/da2/top.jpg" "http://files.playonlinux.com/resources/setups/da2/left.jpg" "$TITLE"
POL_SetupWindow_Init

# Starting debugging API
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Bioware" "http://dragonage.bioware.com/da2" "GNU_Raziel" "$PREFIX" 

# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"

# Downloading wine if necessary and creating prefix
POL_System_SetArch "auto"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

# Choose between DVD and Digital Download version
POL_SetupWindow_InstallMethod "DVD,STEAM,LOCAL"

# Installing mandatory dependencies
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Call POL_Install_steam
fi

# Note
POL_SetupWindow_message "$(eval_gettext 'If the setup request DirectX installation, answer no.')" "$TITLE"

# Mandatory pre-install fix for steam
POL_Call POL_Install_steam_flags "901633"

# Begin game installation
if [ "$INSTALL_METHOD" == "DVD" ]; then
        # Asking for CDROM and checking if it's correct one
        POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')" "$TITLE"
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "data/Dragon Age 2 Uninstaller.exe"
        POL_Wine start /unix "$CDROM/Setup.exe"
        POL_Wine_WaitExit "$TITLE"
elif [ "$INSTALL_METHOD" == "STEAM" ]; then
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine start /unix "steam.exe" steam://install/901633
        POL_Wine_WaitExit "$TITLE"
else
        # Asking then installing DDV of the game
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
fi

# Installing mandatory dependencies - need to be post-install for this game
POL_Call POL_Install_vcrun2008
POL_Call POL_Install_devenum
POL_Call POL_Install_dxfullsetup

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS

## Fix for this game
# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver

# Sound problem fix - pulseaudio related
[ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
[ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
## End Fix

# Cleaning temp
if [ -e "$WINEPREFIX/drive_c/windows/temp/" ]; then
        rm -rf "$WINEPREFIX/drive_c/windows/temp/*"
        chmod -R 777 "$POL_USER_ROOT/tmp/"
        rm -rf "$POL_USER_ROOT/tmp/*"
fi

# Making shortcut
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/901633"
else
        POL_Shortcut "DragonAge2.exe" "$TITLE" "$TITLE.png" ""
fi
POL_Shortcut "DragonAge2Config.exe" "$TITLE_CONFIG" "$TITLE_CONFIG.png" ""

# Fix needed after the very first launch
CHECK_GAME_FILE=`find "$HOME/BioWare/Dragon Age 2/Settings" -name "DragonAge.ini"`
if [ "$CHECK_GAME_FILE" == "" ]; then
        POL_SetupWindow_message "$(eval_gettext "$TITLE_CONFIG will be started\nClose it after your hardware's detection.")" "$TITLE"
        bash "$POL_USER_ROOT/shortcuts/$TITLE_CONFIG"
        POL_Wine_WaitExit "$TITLE"
fi
cd "$HOME/BioWare/Dragon Age 2/Settings"
mv "DragonAge.ini" "DragonAge.ini.save"
cat "DragonAge.ini.save" | sed s/"SoundDisabled=1"/"SoundDisabled=0"/g > "DragonAge.ini"

# Game protection warning
POL_SetupWindow_message "$(eval_gettext 'You must disable anti-piracy protections of this game\nif you want to play it with wine.')" "$TITLE"

POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message