The forum

[script] [i]Max Payne[/i]

Author Replies
mixikaabin Tuesday 7 June 2016 at 9:06

Hey, I'm a first timer to playonlinux

So I installed playonlinux to play some Max Payne, but I the install script that comes with playonlinux did not work.

First I am using Ubuntu 16.04 and I had some problems with how it mounts the install cd (something about spaces in the mount directory), so remounted it from "Max Payne" to "max".

After that I could see that the script provided with playonlinux also did not follow the documentation, so I wrote a new script that now work on my machine. So feel free to test this script and come with some feedback on the script.

# Date : (2016-06-05 23-06)
# Last revision : (2016-06-05 23-06)
# Wine version used : 1.7.12
# Distribution used to test : Ubuntu 16.04 LTS amd64
# Author : mixikaabin
#First we need to check if we are in playonlinux
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Max Payne"


POL_SetupWindow_presentation "$TITLE" "RockstarGame" "" "mixikaabin" "$PREFIX"
POL_System_SetArch "auto"

POL_SetupWindow_check_cdrom "Install.exe"

if [ "$(POL_Wine_Prefix_Exists "$PREFIX")" = "False" ]
    POL_Wine_PrefixCreate "1.7.12"

POL_Wine_SelectPrefix "$PREFIX"

Set_OS winxp
POL_Call POL_Install_gecko

POL_SetupWindow_message "When the installer starts, it not correcly detect how much memory you have. Please just ignore it by press \"yes\" and \"ok\" to it. You will still be able to play $TITLE" "$TITLE"
POL_Wine $CDROM/Install.exe
POL_SetupWindow_message "Please wait until the installer has finished and you have closed it or else you have to reinstall $TITLE again. Press \"next\" when done" "$TITLE"

POL_Shortcut "MaxPayne.exe" "Max Payne"

POL_SetupWindow_message "$TITLE has been installed successfully" "$TITLE"

Happy testing.

Best regards


Edited by mixikaabin

MaxKraft Friday 24 February 2017 at 22:41

Yeah, that worked for me. Thanks a lot!