The forum

[Script] Path of Exile Ascendancy

Author Replies
.M. Thursday 19 May 2016 at 22:26
.M.Anonymous

Hi, this is my first script and I hope that it works for you.

 

Description

Path of Exile is an online Action RPG set in the dark fantasy world of Wraeclast. It is designed around a strong online item economy, deep character customisation, competitive PvP and ladder races. The game is completely free and will never be "pay to win".

Tested Computer

Amd Phenom ii x4 965 | 8GB Ram | NVIDIA GeForce GT 630 – 2GB

Intel Core i3-2350M | 8GB Ram | Intel GMA HD Graphics (To run I used: "UseGLSL" "enable")

Launching

The game will download the installer first and the full content of game will be updated after the installation.

Additional Information

To prevent full screen problems I used this code to resolve the problem, but I don't know if this is the most "beautiful" kind of solution:


POL_SetupWindow_menu "Sets the Wine virtual desktop settings" "$TITLE" "800 x 600|1024 x 768|1280 x 720|1366 x 768|1440 x 900|1600 x 900|1920 x 1080|2560 x 1440|3840 x 2160|7680 x 4320|" "|"

if [ "$APP_ANSWER" = "800 x 600" ]
then
    Set_Desktop "On" "800" "600"
elif [ "$APP_ANSWER" = "1024 x 768" ]
then
    Set_Desktop "On" "1024" "768"
elif [ "$APP_ANSWER" = "1280 x 720" ]
then
    Set_Desktop "On" "1280" "720"
elif [ "$APP_ANSWER" = "1366 x 768" ]
then
    Set_Desktop "On" "1366" "768"
elif [ "$APP_ANSWER" = "1440 x 900" ]
then
    Set_Desktop "On" "1440" "900"
elif [ "$APP_ANSWER" = "1600 x 900" ]
then
    Set_Desktop "On" "1600" "900"
elif [ "$APP_ANSWER" = "1920 x 1080" ]
then
    Set_Desktop "On" "1920" "1080"
elif [ "$APP_ANSWER" = "2560 x 1440" ]
then
    Set_Desktop "On" "2560" "1440"
elif [ "$APP_ANSWER" = "3840 x 2160" ]
then
    Set_Desktop "On" "3840" "2160"
elif [ "$APP_ANSWER" = "7680 x 4320" ]
then
    Set_Desktop "On" "7680" "4320"
fi

Errors

In the quest "kill Dominus", the game has lower frame rates (only when you need to kill the boss), I believe that configuration "UseGLSL" "disabled" is responsible for this bug, but "UseGLSL" "enable" decreases all game qualit.

Script



#!/bin/bash
# Date : (2016-05-18)
# Last revision : (2016-05-18)
# Wine version used : 1.9.4-staging
# Distribution used to test : Ubuntu 16.04
# Author : .M.

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

TITLE="Path of Exile Ascendancy"
PREFIX="PoEAscendancy"
EDITOR="Grinding Gear Games"
SITE="https://www.pathofexile.com/"
AUTOR=".M."
WINE="1.9.4-staging"
ARCH="x86"
GAME_VMS="512"
Message1="Enable CSMT - Configuration: https://github.com/wine-compholio/wine-staging/wiki/CSMT"
Message2="http://www.gamersonlinux.com/forum/threads/path-of-exile-guide.236/"

# Start the script.
POL_SetupWindow_Init

# Starting debugging API
POL_Debug_Init

# Display a standard introductory screen for the install script and the software it's about to install.
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$SITE" "$AUTOR" "$PREFIX"

# Set prefix path and download wine if necessary.
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "$ARCH"
POL_Wine_PrefixCreate "$WINE"

# Modifies the Windows version emulated by Wine.
Set_OS "win7"

# How much (dedicated) RAM his videocard has and video settings.
POL_SetupWindow_VMS $GAME_VMS
POL_Wine_SetVideoDriver

# Virtual desktop width enabled to prevent full screen problems.
POL_SetupWindow_menu "Sets the Wine virtual desktop settings" "$TITLE" "800 x 600|1024 x 768|1280 x 720|1366 x 768|1440 x 900|1600 x 900|1920 x 1080|2560 x 1440|3840 x 2160|7680 x 4320|" "|"

if [ "$APP_ANSWER" = "800 x 600" ]
then
    Set_Desktop "On" "800" "600"
elif [ "$APP_ANSWER" = "1024 x 768" ]
then
    Set_Desktop "On" "1024" "768"
elif [ "$APP_ANSWER" = "1280 x 720" ]
then
    Set_Desktop "On" "1280" "720"
elif [ "$APP_ANSWER" = "1366 x 768" ]
then
    Set_Desktop "On" "1366" "768"
elif [ "$APP_ANSWER" = "1440 x 900" ]
then
    Set_Desktop "On" "1440" "900"
elif [ "$APP_ANSWER" = "1600 x 900" ]
then
    Set_Desktop "On" "1600" "900"
elif [ "$APP_ANSWER" = "1920 x 1080" ]
then
    Set_Desktop "On" "1920" "1080"
elif [ "$APP_ANSWER" = "2560 x 1440" ]
then
    Set_Desktop "On" "2560" "1440"
elif [ "$APP_ANSWER" = "3840 x 2160" ]
then
    Set_Desktop "On" "3840" "2160"
elif [ "$APP_ANSWER" = "7680 x 4320" ]
then
    Set_Desktop "On" "7680" "4320"
fi

# Creates and modifies a registry setting below key [HKEY_CURRENT_USER\Software\Wine\Direct3D].
POL_Wine_Direct3D "UseGLSL" "disabled"
POL_Wine_Direct3D "DirectDrawRenderer" "default"
POL_Wine_Direct3D "OffscreenRenderingMode" "pbuffer"
POL_Wine_Direct3D "RenderTargetModeLock" "readdraw"
POL_Wine_Direct3D "DirectDrawRenderer" "default"
POL_Wine_Direct3D "StrictDrawOrdering" "disabled"
POL_Wine_Direct3D "CSMT" "enabled"

# Install dependencies.
POL_Call POL_Install_corefonts
POL_Call POL_Install_d3dx9
POL_Call POL_Install_d3dcompiler_43
POL_Call POL_Install_msvc100
POL_Call POL_Install_RegisterFonts
POL_Call POL_Install_riched20
POL_Call POL_Install_Tahoma
POL_Call POL_Install_vcrun2010
POL_Call POL_Install_usp10

# Set the override mode for one or more dynamic library.
POL_Wine_OverrideDLL "native,builtin" "openal32"

# Ask the user want installation method he wants, LOCAL or DOWNLOAD.
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"

if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    # Select the setup file
    POL_SetupWindow_browse "Please select the setup file to run" "$TITLE"

    # Begin game installation    
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine start /unix "$APP_ANSWER"
    POL_Wine_WaitExit "$TITLE"

elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
    # Creates the temporary directory dedicated to the script.    
    POL_System_TmpCreate "tempPOE"
    cd "$POL_System_TmpDir"
    
    # Download Installer
    POL_Download "https://www.pathofexile.com/downloads/PathOfExileInstaller.exe"
    
    # Begin game installation    
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine start /unix "$POL_System_TmpDir/PathOfExileInstaller.exe"
    POL_Wine_WaitExit "$TITLE"
    
    # Delete the temporary directory dedicated to the script.        
    POL_System_TmpDelete
fi

# Making shortcut
POL_Shortcut "PathOfExile.exe" "$TITLE"

# Exit message
POL_SetupWindow_message "$Message1" "$TITLE"
POL_SetupWindow_message "$Message2" "Acknowledgments"

# End of the script
POL_SetupWindow_Close
exit 0

 

Screenshot

https://drive.google.com/open?id=0B-DFS9HCsdA6OC1EY0hvMzd3ckU

https://drive.google.com/open?id=0B-DFS9HCsdA6VEpQWk9lRThVa00

https://drive.google.com/open?id=0B-DFS9HCsdA6MElvSndQZy12UlE

https://drive.google.com/open?id=0B-DFS9HCsdA6enJFM045SlhYa2c

 

 

Edited by .M.

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com