Grand Theft Auto : San Andreas

Informations

Creator Message
Tr4sK Anonymous

Warning

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

Informations

Platforms:
Downloads: 241264
Wine: 1.7.35

Feedbacks

Source code

#!/bin/bash
# Date : (2009-05-23 14-30)
# Last revision : (2011-08-31 17:01)
# Wine version used : 1.3.26
# Distribution used to test : Debian Testing x64
# Author : Tr4sK & GNU_Raziel
# Licence : Retail
# Only For : http://www.playonlinux.com

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

TITLE="Grand Theft Auto : San Andreas"
PREFIX="GTASA"
WORKING_WINE_VERSION="1.7.35"
GAME_VMS="256"

# Starting the script
rm "$POL_USER_ROOT/tmp/*.jpg"
POL_SetupWindow_Init

# Starting debugging API
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Rockstar Game" "http://www.rockstargames.com/grandtheftauto/" "Tr4sK & GNU_Raziel" "$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,LOCAL"

# Installing mandatory dependencies
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Call POL_Install_steam
fi

# Mandatory pre-install fix for steam
POL_Call POL_Install_steam_flags "12120"

# Begin game installation 
if [ "$INSTALL_METHOD" == "DVD" ]; then
        # Asking for CDROM and checking if it's correct one
        POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')"
        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
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine start /unix "steam.exe" steam://install/12120
        POL_Wine_WaitExit "$TITLE"
else
        # Asking then installing DDV of the game
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
fi

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS

# Fix for this game
# 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
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/12120"
else
        POL_Shortcut "gta_sa.exe" "$TITLE" "" ""
fi
 
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
gameslayer Tuesday 20 June 2017 at 15:17
gameslayer Anonymous

Message

Game runs on Wine 2.10 but get stuck on sweet & kendl screen 

Replies

EpicSides Saturday 11 June 2016 at 5:12
EpicSides

Message

I have issues launching the game :/
Please check that topic for more info: https://www.playonlinux.com/en/topic-14372.html
Thanks for help!!

Replies

AMEER157 Friday 3 July 2015 at 13:17
AMEER157

Warning

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

Message

Walk-around for uncontrollable character in Ubuntu 14.04 x64:

For some reason the character seems to automatically walk in circles which make it uncontrollable. Many claim that the OS is making a conflict between a joystick and the keyboard. Although I had the same issue and didn't have any joystick/extra controllers attached and turns out I had to rename the files js0 and js1 from /dev/input/. after restarting the game the controllers work as normal.

Differences

@@ -83,6 +83,13 @@
 	rm -rf "$POL_USER_ROOT/tmp/*"
 fi
  
+# Fix control issues
+if [ -e "$POL_USER_ROOT/dev/input/*" ]; then
+    cd "$POL_USER_ROOT/dev/input/"
+	mv "js0 js0_sa"
+	mv "js1 js1_sa"
+fi
+ 
 # Making shortcut
 if [ "$INSTALL_METHOD" == "STEAM" ]; then
 	POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/12120"

New source code

#!/bin/bash
# Date : (2009-05-23 14-30)
# Last revision : (2011-08-31 17:01)
# Wine version used : 1.3.26
# Distribution used to test : Debian Testing x64
# Author : Tr4sK & GNU_Raziel
# Licence : Retail
# Only For : http://www.playonlinux.com

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

TITLE="Grand Theft Auto : San Andreas"
PREFIX="GTASA"
WORKING_WINE_VERSION="1.7.35"
GAME_VMS="256"

# Starting the script
rm "$POL_USER_ROOT/tmp/*.jpg"
POL_SetupWindow_Init

# Starting debugging API
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Rockstar Game" "http://www.rockstargames.com/grandtheftauto/" "Tr4sK & GNU_Raziel" "$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,LOCAL"

# Installing mandatory dependencies
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Call POL_Install_steam
fi

# Mandatory pre-install fix for steam
POL_Call POL_Install_steam_flags "12120"

# Begin game installation 
if [ "$INSTALL_METHOD" == "DVD" ]; then
        # Asking for CDROM and checking if it's correct one
        POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')"
        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
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine start /unix "steam.exe" steam://install/12120
        POL_Wine_WaitExit "$TITLE"
else
        # Asking then installing DDV of the game
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
fi

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS

# Fix for this game
# 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
 
# Fix control issues
if [ -e "$POL_USER_ROOT/dev/input/*" ]; then
    cd "$POL_USER_ROOT/dev/input/"
        mv "js0 js0_sa"
        mv "js1 js1_sa"
fi
 
# Making shortcut
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/12120"
else
        POL_Shortcut "gta_sa.exe" "$TITLE" "" ""
fi
 
POL_SetupWindow_Close
exit 0

Replies

Saturday 4 July 2015 at 17:35
Update: Changing the wineprefix to x86 is also recommended if you want to install MTA(Multi Theft Auto) on top of GTA SA.
Wednesday 8 July 2015 at 18:05
Did you test this script at all? The default prefix is 32-bit, so it will be an x86 prefix anyway. Also, there is no "$POL_USER_ROOT/dev/input/" directory there, so it would fail when trying to cd to that directory. /dev/input would be where that would be changed, but that needs root access.

To me, this looks like the script was not tested to work at all, though the workaround listed may for work for some.

Please do not submit un-tested scripts (there is no way the control issue fix would work, as those folders do not exist.). Even still, the control fix that you mention would need root/sudo access, which is not allowed in POL scripts. Thanks for the workaround; it should prove useful to some, but the script changes cannot be approved because they wouldn't work.
Ronin DUSETTE Monday 30 March 2015 at 20:31
Ronin DUSETTE
Admin

Information

This update has been approved by the team.

Message

Updating script to use newer WIne version. 

Differences

@@ -12,7 +12,7 @@
 
 TITLE="Grand Theft Auto : San Andreas"
 PREFIX="GTASA"
-WORKING_WINE_VERSION="1.3.26"
+WORKING_WINE_VERSION="1.7.35"
 GAME_VMS="256"
 
 # Starting the script

New source code

#!/bin/bash
# Date : (2009-05-23 14-30)
# Last revision : (2011-08-31 17:01)
# Wine version used : 1.3.26
# Distribution used to test : Debian Testing x64
# Author : Tr4sK & GNU_Raziel
# Licence : Retail
# Only For : http://www.playonlinux.com

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

TITLE="Grand Theft Auto : San Andreas"
PREFIX="GTASA"
WORKING_WINE_VERSION="1.7.35"
GAME_VMS="256"

# Starting the script
rm "$POL_USER_ROOT/tmp/*.jpg"
POL_SetupWindow_Init

# Starting debugging API
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Rockstar Game" "http://www.rockstargames.com/grandtheftauto/" "Tr4sK & GNU_Raziel" "$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,LOCAL"

# Installing mandatory dependencies
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Call POL_Install_steam
fi

# Mandatory pre-install fix for steam
POL_Call POL_Install_steam_flags "12120"

# Begin game installation 
if [ "$INSTALL_METHOD" == "DVD" ]; then
        # Asking for CDROM and checking if it's correct one
        POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')"
        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
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine start /unix "steam.exe" steam://install/12120
        POL_Wine_WaitExit "$TITLE"
else
        # Asking then installing DDV of the game
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
fi

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS

# Fix for this game
# 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
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/12120"
else
        POL_Shortcut "gta_sa.exe" "$TITLE" "" ""
fi
 
POL_SetupWindow_Close
exit 0

Replies

Edited by RoninDusette

marceloavan Tuesday 10 February 2015 at 15:40
marceloavan Anonymous

Message

This program runs well, but I had some problems to install the game. It was necessary to use wine version 1.7.35 instead of 1.3.XX.

Replies

hleskien Friday 17 October 2014 at 17:54
hleskien Anonymous

Message

Cutscenes/Videos don't work.

Replies