Alan Wake

Informations

Creator Message
GNU_Raziel
Admin

Warning

This installer is a beta script. It means that it might not work as expected

Informations

Platforms:
Downloads: 10371
Wine: 1.5.0-raw3

Feedbacks

Description

Testing installer for Alan Wake.

Know Bug :
- Verry laggy in-game with most hardware.

Source code

#!/bin/bash
# Date : (2012-02-22 21:00)
# Last revision : (2012-03-25 21:00)
# Wine version used : 1.4-rc4-raw3, 1.5.0-raw3
# Distribution used to test : Linux Mint 12 x64
# Author : GNU_Raziel
# Licence : Retail
# Only For : http://www.playonlinux.com

## Begin Note ##
# Used RawInput3 patch to fix Bug #20395 - http://bugs.winehq.org/show_bug.cgi?id=20395
## End Note ##

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

TITLE="Alan Wake"
PREFIX="Alan_Wake"
EDITOR="Remedy"
GAME_URL="http://www.alanwake.com/"
AUTHOR="GNU_Raziel"
WORKING_WINE_VERSION="1.5.0-raw3"
GAME_VMS="512"

# Starting the script
#POL_GetSetupImages "http://files.playonlinux.com/resources/setups/alan_wake/top.jpg" "http://files.playonlinux.com/resources/setups/alan_wake/left.jpg" "$TITLE"
POL_SetupWindow_Init

# Starting debugging API
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$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"

# Installing mandatory dependencies
POL_Call POL_Install_vcrun2008
POL_Call POL_Install_steam
POL_Call POL_Install_dxfullsetup

# Mandatory pre-install fix for steam
STEAM_ID="108710"
POL_Call POL_Install_steam_flags "$STEAM_ID"

# 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
# Sound problem fix - pulseaudio related
[ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
[ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
## End Fix

## Begin Common PlayOnMac Section ##
[ "$POL_OS" = "Mac" ] && Set_Managed "Off"
## End Section ##

# Making shortcut
POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID"

# Begin game installation
if [ "$INSTALL_METHOD" == "DVD" ]; then
        # Asking for CDROM and checking if it's correct one
        POL_SetupWindow_message "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "setup.exe"
        POL_Wine start /unix "$CDROM/setup.exe"
        POL_Wine_WaitExit "$TITLE"
elif [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
        POL_Wine_WaitExit "$TITLE"
fi

POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
deri82 Sunday 5 July 2015 at 8:44
deri82 Anonymous

Warning

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

Differences

@@ -1,6 +1,6 @@
 #!/bin/bash
 # Date : (2012-02-22 21:00)
-# Last revision : (2012-03-25 21:00)
+# Last revision : (2015-07-5 (year, month, day)
 # Wine version used : 1.4-rc4-raw3, 1.5.0-raw3
 # Distribution used to test : Linux Mint 12 x64
 # Author : GNU_Raziel
@@ -9,6 +9,7 @@
 
 ## Begin Note ##
 # Used RawInput3 patch to fix Bug #20395 - http://bugs.winehq.org/show_bug.cgi?id=20395
+# bug id #20395 marked fixed in 1.5.13.
 ## End Note ##
 
 [ "$PLAYONLINUX" = "" ] && exit 0
@@ -19,7 +20,7 @@
 EDITOR="Remedy"
 GAME_URL="http://www.alanwake.com/"
 AUTHOR="GNU_Raziel"
-WORKING_WINE_VERSION="1.5.0-raw3"
+WORKING_WINE_VERSION="1.7.46-staging"
 GAME_VMS="512"
 
 # Starting the script

New source code

#!/bin/bash
# Date : (2012-02-22 21:00)
# Last revision : (2015-07-5 (year, month, day)
# Wine version used : 1.4-rc4-raw3, 1.5.0-raw3
# Distribution used to test : Linux Mint 12 x64
# Author : GNU_Raziel
# Licence : Retail
# Only For : http://www.playonlinux.com

## Begin Note ##
# Used RawInput3 patch to fix Bug #20395 - http://bugs.winehq.org/show_bug.cgi?id=20395
# bug id #20395 marked fixed in 1.5.13.
## End Note ##

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

TITLE="Alan Wake"
PREFIX="Alan_Wake"
EDITOR="Remedy"
GAME_URL="http://www.alanwake.com/"
AUTHOR="GNU_Raziel"
WORKING_WINE_VERSION="1.7.46-staging"
GAME_VMS="512"

# Starting the script
#POL_GetSetupImages "http://files.playonlinux.com/resources/setups/alan_wake/top.jpg" "http://files.playonlinux.com/resources/setups/alan_wake/left.jpg" "$TITLE"
POL_SetupWindow_Init

# Starting debugging API
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$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"

# Installing mandatory dependencies
POL_Call POL_Install_vcrun2008
POL_Call POL_Install_steam
POL_Call POL_Install_dxfullsetup

# Mandatory pre-install fix for steam
STEAM_ID="108710"
POL_Call POL_Install_steam_flags "$STEAM_ID"

# 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
# Sound problem fix - pulseaudio related
[ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
[ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
## End Fix

## Begin Common PlayOnMac Section ##
[ "$POL_OS" = "Mac" ] && Set_Managed "Off"
## End Section ##

# Making shortcut
POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID"

# Begin game installation
if [ "$INSTALL_METHOD" == "DVD" ]; then
        # Asking for CDROM and checking if it's correct one
        POL_SetupWindow_message "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "setup.exe"
        POL_Wine start /unix "$CDROM/setup.exe"
        POL_Wine_WaitExit "$TITLE"
elif [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
        POL_Wine_WaitExit "$TITLE"
fi

POL_SetupWindow_Close
exit 0

Replies

cecoates Sunday 7 June 2015 at 22:48
cecoates Anonymous

Message

I managed to get the GoG version working with sound (even in the cinematics).

I'm running Wine 1.7.43. I installed with Playonlinux as a "non-listed program".

I installed on a new virtual drive, and chose the defaults for everything.

After the install finished, I repeated the process to apply the 2.0.1.19 patch to the virtual drive I just created.

As-in, Alan Wake wouldn't run. So in PlayOnLinux I selected "configure".

I set the Wine version to "System" (the version I'm running above, 1.7.43).

The I chose "Configure Wine" and set the Windows version as "Windows 7".

Next I chose "Install components" and chose "dxfullsetup".

Once that finished I went back to the Wine tab and clicked "Windows reboot" and "Kill processes".

Now once I clicked "Run" for Alan Wake, boom! Full functionality. Use WSAD instead of the arrow keys but otherwise it's all good.

From WineHQ and other threads I initially tried various other steps, installed d3dx9, dsound, xact, etc. Through various trial and error I got the game running but with no cinematic sound. Doing the above process was the only way that I ended up with full functionality.

I have a ThinkPad T430 with a NVIDIA Geforce NVS 5400m and Core i7 processor. With the Intel graphics the game is playable but choppy. Using Bumblebee to run PlayOnLinux with Primus, the game is very smooth.

Replies

Monday 8 June 2015 at 6:56
Such info belongs to manual installations (https://www.playonlinux.com/en/forum-24-Manual_installations.html) since you didn't use this script
Ph4nt0m Monday 29 December 2014 at 1:42
Ph4nt0m Anonymous

Message

The link for downloading vcredist_x64.exe and vcredist_x86.exe seems to be broken, therefore that part of the installation always fail

Replies

Monday 29 December 2014 at 11:06
I cleared my resources cache, and had no problem redownloading/installing vcrun* components in either 32 or 64bits virtual drives...
ayami Monday 25 August 2014 at 23:51
ayami Anonymous

Message

I've installed Alan Wake on my Ubuntu desktop using POL and it runs fine, except that there is no in-game sound. The cinematics have sound, as does the opening splash page until the "press any key..." message. After pressing a key and going to the main menu all sound stops. If I start a new game the sound for the opening movie plays, but then once the first chapter starts all the sound is gone again.

I am using Alan Wake off a DVD, installed with the POL script, running in Wine through Steam, installed off the DVD rather than downloaded.

I'm using POL V. 4.2.2, downloaded from the repository. Ubuntu 14.04, with a NVIDIA graphics card (if that matters). Per the POL script for installing, it is using wine 1.5.0-raw3.

Everything runs fine, good framerate, keyboard and mouse work, but no audio in-game (but it is there in cinematics).

Thanks for any help.

Replies