You are here    Forums    Your creations.    [script] [i]Max Payne[/i] nl sv ru pl es de fr

The forum

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

Author Replies
mixikaabin Tuesday 7 June 2016 at 9:06
mixikaabin Anonymous

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.

#!/bin/bash
# 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"
PREFIX="MaxPayne"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "RockstarGame" "http://www.rockstargames.com/maxpayne/" "mixikaabin" "$PREFIX"
POL_System_SetArch "auto"

POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Install.exe"

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

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"
POL_SetupWindow_Close
exit

Happy testing.

Best regards

 Mixikaabin

Edited by mixikaabin

MaxKraft Friday 24 February 2017 at 22:41
MaxKraft Anonymous

Yeah, that worked for me. Thanks a lot!