Payday 2

Informations

Creator Message
Massawi33

Warning

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

Informations

Platforms:
Downloads: 20383
Wine: 2.22

Feedbacks

Description

Source code

#!/bin/bash
# Date : (2013-10-01 ??-??)
# Last revision : (2013-10-09 19-14)
# Wine version used : 1.6
# Distribution used to test : Ubuntu-Gnome 13.04
# Author : Massawi33

# CHANGELOG
# [Massawi33] (2013-10-01)
#   First script.
# [Dadu042] (2019-10-28)
#   Wine 1.6 -> 2.22

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

TITLE="Payday 2"
PREFIX="Payday2"
STEAM_ID="218620"
WORKING_WINE_VERSION="2.22"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Crimenet" "http://www.crimenet.info/" "Massawi33" "$PREFIX"

POL_RequiredVersion "4.2.12" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_SetupWindow_InstallMethod "LOCAL,STEAM"

if [ "$INSTALL_METHOD" = "STEAM" ]; then

POL_Call POL_Install_steam
POL_Call POL_Install_steam_flags "$STEAM_ID"
POL_Shortcut "steam.exe" "$TITLE" "steam://rungameid/$STEAM_ID"
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"

elif [ "$INSTALL_METHOD" = "LOCAL" ]; then

cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
POL_SetupWindow_message "$(eval_gettext 'Please do not run $TITLE after installation has finished.')" "$TITLE"
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$APP_ANSWER"
POL_Wine_WaitExit "$TITLE"
fi

POL_Wine_SetVideoDriver
POL_SetupWindow_VMS "256"

if [ "$INSTALL_METHOD" = "LOCAL" ]; then
POL_Shortcut "payday2_win32_release.exe" "$TITLE"
fi

POL_SetupWindow_Close

exit

Contributions

Filters:

Contribute
Member Message
Dadu042 Wednesday 30 October 2019 at 18:38
Dadu042
Moderator

Information

This update has been approved by the team.

Differences

@@ -5,19 +5,27 @@
 # Distribution used to test : Ubuntu-Gnome 13.04
 # Author : Massawi33
 
+# CHANGELOG
+# [Massawi33] (2013-10-01)
+#   First script.
+# [Dadu042] (2019-10-28)
+#   Wine 1.6 -> 2.22
+
 [ "$PLAYONLINUX" = "" ] && exit
 source "$PLAYONLINUX/lib/sources"
 
 TITLE="Payday 2"
 PREFIX="Payday2"
 STEAM_ID="218620"
-WORKING_WINE_VERSION="1.6"
+WORKING_WINE_VERSION="2.22"
 
 POL_SetupWindow_Init
 POL_Debug_Init
 
 POL_SetupWindow_presentation "$TITLE" "Crimenet" "http://www.crimenet.info/" "Massawi33" "$PREFIX"
 
+POL_RequiredVersion "4.2.12" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
+
 POL_Wine_SelectPrefix "$PREFIX"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 

New source code

#!/bin/bash
# Date : (2013-10-01 ??-??)
# Last revision : (2013-10-09 19-14)
# Wine version used : 1.6
# Distribution used to test : Ubuntu-Gnome 13.04
# Author : Massawi33

# CHANGELOG
# [Massawi33] (2013-10-01)
#   First script.
# [Dadu042] (2019-10-28)
#   Wine 1.6 -> 2.22

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

TITLE="Payday 2"
PREFIX="Payday2"
STEAM_ID="218620"
WORKING_WINE_VERSION="2.22"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Crimenet" "http://www.crimenet.info/" "Massawi33" "$PREFIX"

POL_RequiredVersion "4.2.12" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_SetupWindow_InstallMethod "LOCAL,STEAM"

if [ "$INSTALL_METHOD" = "STEAM" ]; then

POL_Call POL_Install_steam
POL_Call POL_Install_steam_flags "$STEAM_ID"
POL_Shortcut "steam.exe" "$TITLE" "steam://rungameid/$STEAM_ID"
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"

elif [ "$INSTALL_METHOD" = "LOCAL" ]; then

cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
POL_SetupWindow_message "$(eval_gettext 'Please do not run $TITLE after installation has finished.')" "$TITLE"
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$APP_ANSWER"
POL_Wine_WaitExit "$TITLE"
fi

POL_Wine_SetVideoDriver
POL_SetupWindow_VMS "256"

if [ "$INSTALL_METHOD" = "LOCAL" ]; then
POL_Shortcut "payday2_win32_release.exe" "$TITLE"
fi

POL_SetupWindow_Close

exit

Replies

Sabbasth Wednesday 1 October 2014 at 14:52
Sabbasth Anonymous

Message

Payday crashes when I hit a key on my keyboard.

How can I help troubleshooting this issue ?

Replies

Wednesday 1 October 2014 at 21:11
Try upgrading Wine version to at least 1.7.8, maybe also disabling Steam overlay
(thinking about http://www.playonlinux.com/en/comments-1186.html, among things)
Anonymous
Thursday 2 October 2014 at 17:08
Thx petch !
Anonymous
Thursday 2 October 2014 at 17:09
Sorry for double posting. I installed 1.7.22 => game still crashed. I deactivated steam overlay => all working well.
xge59310 Tuesday 22 July 2014 at 6:06
xge59310 Anonymous

Message

OS Ubuntu 14.04

GFX Nvidia 770GTX

Runs well minus a random crash here or there.

Replies