[code language=playonlinux]
#!/bin/bash
# Date : (2010-03-09 10-00)
# Last revision : (2011-02-08 21-00)
# Wine version used : 1.5.3-xliveless2-rawinput3
# Distribution used to test : Mac OS X
# Author : NSWL & GNU_Raziel
# Licence : Retail
# Only For : http://www.playonlinux.com
[ '$PLAYONLINUX' = ' ] && exit 0
source '$PLAYONLINUX/lib/sources'
TITLE='Grand Theft Auto IV'
PREFIX='GTAIV'
EDITOR='Rockstar Games'
GAME_URL='www.rockstargames.com/IV/'
AUTHOR='NSLW & GNU_Raziel'
WORKING_WINE_VERSION='1.3.26-xliveless2'
GAME_VMS='256'
if [ '$POL_LANG' 'fr' ]; then
LNG_CHOOSE_MEDIA='Quelle version possédez-vous?'
LNG_DVD='Version DVD'
LNG_STEAM='Version Steam Store'
LNG_DDV='Version Digital Download'
LNG_INSTALL_NOTE='Annulez la vérification de la date à la fin denl'installation, elle ne fonctionnera pas correctement.'
LNG_CHOOSE_DDV='Veuillez selectionner votre executable Digital Download de $TITLE'
LNG_INSERT_MEDIA='Veuillez insérer le disque $TITLE dans votre lecteurnsi ce n'est pas déja fait.'
LNG_WAIT_END='Appuyez sur 'Suivant' UNIQUEMENT quand l'installation dunjeu sera terminée sous peine de devoir recommencer l'installation.'
LNG_WAIT_STEAM_END='Appuyez sur 'Suivant' UNIQUEMENT quand l'installation du jeu Steamnsera terminée sous peine de devoir recommencer l'installation.'
LNG_INSTALL_ON='Installation en cours...'
LNG_DL_XLIVELESS='Téléchargement de xliveless 1.0a4...'
LNG_INSTALL_XLIVELESS='Installation de xliveless 1.0a4...'
LNG_GAME_VMS='Quelle est la quantité de mémoire (Mo) de votre carte graphique ?'
LNG_VMS_ERROR='Ce jeu ne fonctionnera correctement qu'avec une carte graphique ayant plus de 256Mo de mémoire.'
LNG_SUCCES='$TITLE a été installé avec succès.'
else
LNG_CHOOSE_MEDIA='Which version do you have?'
LNG_DVD='DVD Version'
LNG_STEAM='Steam Store Version'
LNG_DDV='Digital Download Version'
LNG_INSTALL_NOTE='Cancel online release date check at the end of installationnit will not work properlly.'
LNG_CHOOSE_DDV='Please select your $TITLE Digital Download executable'
LNG_INSERT_MEDIA='Please insert $TITLE media into your disk drivenif not already done.'
LNG_WAIT_END='Click on 'Forward' ONLY when the game installation is finishednor you will have to redo the installation.'
LNG_WAIT_STEAM_END='Click on 'Forward' ONLY when Steam game installationnwill be finished or you will have to redo the installation.'
LNG_INSTALL_ON='Installation in progress...'
LNG_DL_XLIVELESS='Downloading xliveless 1.0a4...'
LNG_INSTALL_XLIVELESS='Installing xliveless 1.0a4...'
LNG_GAME_VMS='How much memory does your graphics board have?'
LNG_VMS_ERROR='This game will work correctly only with a graphic card with more than 256MB of memory.'
LNG_SUCCES='$TITLE has been installed successfully.'
fi
# Starting the script
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 'x86'
# For dotnet/mono
POL_Wine_PrefixCreate '$WORKING_WINE_VERSION'
# Fix for dvd
Set_OS 'win7'
# Choose between DVD and Digital Download version
POL_SetupWindow_InstallMethod 'DVD,STEAM,LOCAL'
#
# Choose between DVD and Digital Download version
# POL_SetupWindow_menu '$LNG_CHOOSE_MEDIA' '$TITLE' '$LNG_DVD~$LNG_STEAM~$LNG_DDV' '~'
# if [ '$APP_ANSWER' '$LNG_DVD' ]; then
# GAME_MEDIAVERSION='DVD'
# elif [ '$APP_ANSWER' '$LNG_STEAM' ]; then
# GAME_MEDIAVERSION='STEAM'
# else
# GAME_MEDIAVERSION='DD'
# fi
# Installing mandatory components
if [ '$INSTALL_METHOD' 'STEAM' ]; then
POL_Call POL_Install_steam
else
POL_Call POL_Install_vcrun2005
fi
POL_Call POL_Install_msxml3
POL_Call POL_Install_dxfullsetup
POL_Call POL_Install_dotnet35
# POL_Call POL_Install_gfwl
POL_Call POL_Install_wmp9
POL_Call POL_Install_wmpcodecs
# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver
# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
## Fix for this game
# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver
POL_SetupWindow_message '$LNG_INSTALL_NOTE'
# Pre-install fix - Need to backup dll because game setup install xlive and override it
# cd '$WINEPREFIX/drive_c/windows/system32/'
# cp xlive.dll xlive2.dll
if [ '$INSTALL_METHOD' 'DVD' ]; then
# Asking for CDROM and checking if it's correct one
POL_SetupWindow_message '$LNG_INSERT_MEDIA'
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom 'GTAIV/setup.exe'
wine start /unix '$CDROM/Autorun.exe'
POL_Wine_WaitExit '$TITLE'
elif [ '$INSTALL_METHOD' 'STEAM' ]; then
cd '$WINEPREFIX/drive_c/$PROGRAMFILES/Steam'
wine 'Steam.exe' -applaunch 12210
POL_Wine_WaitExit '$TITLE'
else
# Asking then installing DDV of the game
cd '$HOME'
POL_SetupWindow_browse '$LNG_CHOOSE_DDV' '$TITLE'
SETUP_EXE='$APP_ANSWER'
POL_SetupWindow_wait_next_signal '$LNG_INSTALL_ON' '$TITLE'
wine start /unix '$SETUP_EXE'
wineserver -w
POL_SetupWindow_detect_exit
fi
# Mandatory to make the game work with wine
POL_Call POL_Remove_gfwl
# cd '$WINEPREFIX/drive_c/windows/system32/'
# cp xlive2.dll xlive.dll
## Fix for this game
GAME_PATH=`find $WINEPREFIX -name 'LaunchGTAIV.exe' | sed s/LaunchGTAIV.exe//g
# POL_Call POL_Function_OverrideDLL ' 'mmdevapi'
# Sound problem fix - pulseaudio related
[ '$POL_OS' = 'Linux' ] && Set_SoundDriver 'alsa'
[ '$POL_OS' = 'Linux' ] && Set_SoundEmulDriver 'Y'
## End Fix
## PlayOnMac Section
[ '$POL_OS' = 'Mac' ] && Set_Managed 'Off'
## End Section
#
# Cleaning temp
# if [ -e '$WINEPREFIX/drive_c/windows/temp/' ]; then
# rm -rf '$WINEPREFIX/drive_c/windows/temp/*'
# chmod -R 777 '$POL_USER_ROOT/tmp/'
# rm -rf '$POL_USER_ROOT/tmp/*'
# fi
# Making shortcut
POL_SetupWindow_auto_shortcut '$PREFIX' 'LaunchGTAIV.exe' '$TITLE' ' '
Set_WineVersion_Assign '$WORKING_WINE_VERSION' '$TITLE'
POL_SetupWindow_message '$LNG_SUCCES' '$TITLE'
POL_SetupWindow_Close
exit 0[/code]
#!/bin/bash
# Date : (2010-03-09 10-00)
# Last revision : (2011-02-08 21-00)
# Wine version used : 1.5.3-xliveless2-rawinput3
# Distribution used to test : Mac OS X
# Author : NSWL & GNU_Raziel
# Licence : Retail
# Only For : http://www.playonlinux.com
[ '$PLAYONLINUX' = ' ] && exit 0
source '$PLAYONLINUX/lib/sources'
TITLE='Grand Theft Auto IV'
PREFIX='GTAIV'
EDITOR='Rockstar Games'
GAME_URL='www.rockstargames.com/IV/'
AUTHOR='NSLW & GNU_Raziel'
WORKING_WINE_VERSION='1.3.26-xliveless2'
GAME_VMS='256'
if [ '$POL_LANG' 'fr' ]; then
LNG_CHOOSE_MEDIA='Quelle version possédez-vous?'
LNG_DVD='Version DVD'
LNG_STEAM='Version Steam Store'
LNG_DDV='Version Digital Download'
LNG_INSTALL_NOTE='Annulez la vérification de la date à la fin denl'installation, elle ne fonctionnera pas correctement.'
LNG_CHOOSE_DDV='Veuillez selectionner votre executable Digital Download de $TITLE'
LNG_INSERT_MEDIA='Veuillez insérer le disque $TITLE dans votre lecteurnsi ce n'est pas déja fait.'
LNG_WAIT_END='Appuyez sur 'Suivant' UNIQUEMENT quand l'installation dunjeu sera terminée sous peine de devoir recommencer l'installation.'
LNG_WAIT_STEAM_END='Appuyez sur 'Suivant' UNIQUEMENT quand l'installation du jeu Steamnsera terminée sous peine de devoir recommencer l'installation.'
LNG_INSTALL_ON='Installation en cours...'
LNG_DL_XLIVELESS='Téléchargement de xliveless 1.0a4...'
LNG_INSTALL_XLIVELESS='Installation de xliveless 1.0a4...'
LNG_GAME_VMS='Quelle est la quantité de mémoire (Mo) de votre carte graphique ?'
LNG_VMS_ERROR='Ce jeu ne fonctionnera correctement qu'avec une carte graphique ayant plus de 256Mo de mémoire.'
LNG_SUCCES='$TITLE a été installé avec succès.'
else
LNG_CHOOSE_MEDIA='Which version do you have?'
LNG_DVD='DVD Version'
LNG_STEAM='Steam Store Version'
LNG_DDV='Digital Download Version'
LNG_INSTALL_NOTE='Cancel online release date check at the end of installationnit will not work properlly.'
LNG_CHOOSE_DDV='Please select your $TITLE Digital Download executable'
LNG_INSERT_MEDIA='Please insert $TITLE media into your disk drivenif not already done.'
LNG_WAIT_END='Click on 'Forward' ONLY when the game installation is finishednor you will have to redo the installation.'
LNG_WAIT_STEAM_END='Click on 'Forward' ONLY when Steam game installationnwill be finished or you will have to redo the installation.'
LNG_INSTALL_ON='Installation in progress...'
LNG_DL_XLIVELESS='Downloading xliveless 1.0a4...'
LNG_INSTALL_XLIVELESS='Installing xliveless 1.0a4...'
LNG_GAME_VMS='How much memory does your graphics board have?'
LNG_VMS_ERROR='This game will work correctly only with a graphic card with more than 256MB of memory.'
LNG_SUCCES='$TITLE has been installed successfully.'
fi
# Starting the script
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 'x86'
# For dotnet/mono
POL_Wine_PrefixCreate '$WORKING_WINE_VERSION'
# Fix for dvd
Set_OS 'win7'
# Choose between DVD and Digital Download version
POL_SetupWindow_InstallMethod 'DVD,STEAM,LOCAL'
#
# Choose between DVD and Digital Download version
# POL_SetupWindow_menu '$LNG_CHOOSE_MEDIA' '$TITLE' '$LNG_DVD~$LNG_STEAM~$LNG_DDV' '~'
# if [ '$APP_ANSWER' '$LNG_DVD' ]; then
# GAME_MEDIAVERSION='DVD'
# elif [ '$APP_ANSWER' '$LNG_STEAM' ]; then
# GAME_MEDIAVERSION='STEAM'
# else
# GAME_MEDIAVERSION='DD'
# fi
# Installing mandatory components
if [ '$INSTALL_METHOD' 'STEAM' ]; then
POL_Call POL_Install_steam
else
POL_Call POL_Install_vcrun2005
fi
POL_Call POL_Install_msxml3
POL_Call POL_Install_dxfullsetup
POL_Call POL_Install_dotnet35
# POL_Call POL_Install_gfwl
POL_Call POL_Install_wmp9
POL_Call POL_Install_wmpcodecs
# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver
# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
## Fix for this game
# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver
POL_SetupWindow_message '$LNG_INSTALL_NOTE'
# Pre-install fix - Need to backup dll because game setup install xlive and override it
# cd '$WINEPREFIX/drive_c/windows/system32/'
# cp xlive.dll xlive2.dll
if [ '$INSTALL_METHOD' 'DVD' ]; then
# Asking for CDROM and checking if it's correct one
POL_SetupWindow_message '$LNG_INSERT_MEDIA'
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom 'GTAIV/setup.exe'
wine start /unix '$CDROM/Autorun.exe'
POL_Wine_WaitExit '$TITLE'
elif [ '$INSTALL_METHOD' 'STEAM' ]; then
cd '$WINEPREFIX/drive_c/$PROGRAMFILES/Steam'
wine 'Steam.exe' -applaunch 12210
POL_Wine_WaitExit '$TITLE'
else
# Asking then installing DDV of the game
cd '$HOME'
POL_SetupWindow_browse '$LNG_CHOOSE_DDV' '$TITLE'
SETUP_EXE='$APP_ANSWER'
POL_SetupWindow_wait_next_signal '$LNG_INSTALL_ON' '$TITLE'
wine start /unix '$SETUP_EXE'
wineserver -w
POL_SetupWindow_detect_exit
fi
# Mandatory to make the game work with wine
POL_Call POL_Remove_gfwl
# cd '$WINEPREFIX/drive_c/windows/system32/'
# cp xlive2.dll xlive.dll
## Fix for this game
GAME_PATH=`find $WINEPREFIX -name 'LaunchGTAIV.exe' | sed s/LaunchGTAIV.exe//g
# POL_Call POL_Function_OverrideDLL ' 'mmdevapi'
# Sound problem fix - pulseaudio related
[ '$POL_OS' = 'Linux' ] && Set_SoundDriver 'alsa'
[ '$POL_OS' = 'Linux' ] && Set_SoundEmulDriver 'Y'
## End Fix
## PlayOnMac Section
[ '$POL_OS' = 'Mac' ] && Set_Managed 'Off'
## End Section
#
# Cleaning temp
# if [ -e '$WINEPREFIX/drive_c/windows/temp/' ]; then
# rm -rf '$WINEPREFIX/drive_c/windows/temp/*'
# chmod -R 777 '$POL_USER_ROOT/tmp/'
# rm -rf '$POL_USER_ROOT/tmp/*'
# fi
# Making shortcut
POL_SetupWindow_auto_shortcut '$PREFIX' 'LaunchGTAIV.exe' '$TITLE' ' '
Set_WineVersion_Assign '$WORKING_WINE_VERSION' '$TITLE'
POL_SetupWindow_message '$LNG_SUCCES' '$TITLE'
POL_SetupWindow_Close
exit 0[/code]
I've encountered a strange problem. LaunchGTAIV.exe will not go anywhere. When I open it, you can see LaunchGTAIV.exe in the processes list in the Task Manager, but it disappears after a few seconds. I never see the Rockstar Games Social Club window. The last time the game worked was right after updating when it somehow managed to get the Social Club log in screen to show up.
I've already tried to remove SecuROM, revoke my licence (I was never able to do this as it requires LaunchGTAIV.exe to work in the first place), install the new GFWL update and re-install GTA IV.
My system specs are:
Then, after checking that none of the files were blocked by Windows, I launched the game by running LaunchGTAIV.exe as administrator, not launching the game via steam. I click 'Play' in the window that appears. Then, my mouse cursor shows the 'Working' icon for a few seconds, then it stops. The game never launches, nothing happens. Dec 19, 2017 - For those of you trying to launch GTA IV on Windows 10 without anything happening when pressing 'play', I finally found the fix here:.
Operating System: Windows 7 Home Premium 64-bit (6.1, Build 7601) Service Pack 1
Processor: Intel® Core i5 CPU 750 @ 2.67GHz (4 CPUs), ~2.7GHz
Memory: 8192MB RAM
DirectX Version: DirectX 11
NVIDIA GeForce GTX 260Display Memory: 4067 MB