Skip to content

Instantly share code, notes, and snippets.

@BeauBouchard
Last active August 20, 2024 13:33
Show Gist options
  • Save BeauBouchard/c496fcd231c3d06fced5 to your computer and use it in GitHub Desktop.
Save BeauBouchard/c496fcd231c3d06fced5 to your computer and use it in GitHub Desktop.
How to install Grand Theft Auto V on Linux (Ubuntu x64 14.04) using wine.

How to install Grand Theft Auto V on Linux (Ubuntu x64 14.04) using wine.

Date Completed: Not done yet ~~ April 23rd 2015

My Test System

  • Video Card: Nvidia GTX 465 (lol right? Game runs shitty)
  • Driver: tested on 331.38, works on 331.38+
  • OS: Ubuntu x64 14.04
  • POL: I used Play on linux 4, I assume most of the capabilities are in winetricks
  • Wine: wine-staging Sun, 19 Apr 2015 version 1.7.41 x64 bit

Prerequisites / Wine

Do not play this game on a Wine prefix in 32 bit mode. You need 64 bit in order to play it correctly. In order to run GTAV you need to change the Windows version to be Windows 7 +, XP will not allow the game to launch.

Install Wine

In wine-staging Sun, 19 Apr 2015 version 1.7.41 x64 bit using Winetricks/PlayonLinux install the following components to have it exactly like my Installation:

  • d3dx10 <--- Manual Jun 2010 version worked for me as well
  • d3dx9_26
  • d3dx9_28
  • d3dx9_31
  • d3dx9_35
  • d3dx9_36
  • d3dx9_39
  • d3dx9_42
  • d3dx9_43
  • d3dx9
  • directx9
  • dotnet20sp1
  • dotnet20
  • dotnet30sp1
  • dotnet35 <-- may not work in x64, download from here
  • dotnet40
  • gfw
  • mfc40
  • mfc42
  • msxml3
  • msxml4
  • msxml6
  • physx
  • quartz
  • vb6run
  • vcrun2003
  • vcrun2005
  • vcrun2008
  • vcrun2010
  • vcrun6sp6
  • vcrun6
  • wmp10
  • wsh56vb
  • wsh57
  • xact_jun2010
  • xact
  • xinput
  • xna40

MORE

So the Dotnet35 and 40 that is shipped with Playonlinux and winetricks probably won't install on a winex64, I recommend installing the full package / stand-alone installer package that contains all required components to deploy different platforms from microsoft.com here [~231MB]

Also the VC redist / DX10 which is shipped with the game probably will try to install and fail. I think it may have something to do with Bug 17273. I downloaded the latest versions BEFORE I installed steam or GTAV, to reproduce my results I recommend downloading all three of these full packages from microsoft.com.

Install Steam

After setting those prerequisites, install steam.

Install GTAV

Using steam, install the game as you normally would, but do not do the first run until later. This is sort of important as the VC redist / DX2010 which comes with the game may not install (they didn't on first run for me) so i downloaded DX 10 June 2010 x64 version off of microsoft.com, and the VC redist

Install Social Club

Latest version ONLY Very important, all other older versions will crash. Download the latest version 1.1.5.8+ Last updated on April 19th, 2015. This also is a fix for Max Payne 3, L.A. Noire, and Red Dead Redemption. DO NOT INSTALL THE SOCIAL CLUB WHICH COMES WITH THE GAME or you may need to start over.

Download Link: Social Club patch 1.1.5.8 dev April 19th, 2015

Also something important to note. DO NOT INSTALL the social club which ships with winetricks/playonlinux, they will install C:\Program Files (x86)\Rockstar Games\Social Club, and the new social club which I tested installs in C:\Program Files\Rockstar Games\Social Club.

Also I would make sure if you do install social club in the wrong version by accident you just start over with a fresh installation steam/new wine, as the registry data does not clean up when you try to un-install social club. See:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\Rockstar Games Social Club
HKEY_LOCAL_MACHINE\Software\Rockstar Games\Rockstar Games Social Club
HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\Shell\MuiCache\C:\Program Files (x86)\Rockstar Games\Social Club\subprocess.exe
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\Rockstar Games Social Club\DisplayName

The files below are left behind on your disk by Rockstar Games Social Club when you uninstall it:

C:\Program Files (x86)\Rockstar Games\Social Club\cef.pak
C:\Program Files (x86)\Rockstar Games\Social Club\cef_100_percent.pak
C:\Program Files (x86)\Rockstar Games\Social Club\cef_200_percent.pak
C:\Program Files (x86)\Rockstar Games\Social Club\d3dcompiler_43.dll

Patches

Patched the game with xlive.dll fix mentioned here Copy and pasted all dll files in GTA folder to system32 including xlive.dll and xlive.lib from the xlib patch to patch the Xlive DLL in order to avoid the Games for Windows - Live.

Open Registry editor and change HKEY_CURRENT_USER/Software/Wine/Direct3D/CSMT = "enabled"

I also added commands in running "-noprecache -norestrictions -nomemrestrict"

If you follow the correct order of installation, and you are using the latest version of social club with patched DX10 files, you should have no problem getting to the splash screen.

@xsellier
Copy link

xsellier commented May 3, 2015

Ubuntu x64: 15.04
PlayOnLinux: Latest
Wine: 1.7.41

Simulated windows version Windows 7

Can't install:

  • d3dx9_26: Does not exist
  • dotnet20sp1: Not compatible with x64 version
  • dotnet20: Not compatible with x64 version
  • dotnet30sp1: Not compatible with x64 version
  • dotnet40: Not compatible with x64 version
  • msxml6: Not compatible with x64 version
  • quartz: wine just hangs
  • wmp10: Ask for wmp7 before (so weird)

What does not work:

  • Can't launch the game (stuck on Social Club launcher)

Reason of crash:

  • Wine cannot load 'libgnutls' (but all version available are installed)

@CHJ85
Copy link

CHJ85 commented Jun 9, 2015

Not working.
Tried a bunch of times.
Spent hours.
Crashed on Social Club. And yes, I did install your version of Social Club.
And I also can't' find that patch you were talking about.
That link you posted seem to just be a bunch of bug reports or something.
And most of the packages you installed are not available in the winetricks repo for 64 bit, so I had to find them online myself.
And I also couldn't' find Direct3D inside the registry.
If you ask me, this is a very incomplete and confusing tutorial.
If it really does work, I suggest you redo the tutorial with the proper download links and everything.

@byronmansfield
Copy link

Yeah I was curious if this actually works. Seems like it could be a huge time sink if it doesnt. Are there any updates on this? Have you guys found any other alternate ways to get GTA5 working on linux?

@xsellier
Copy link

Nope, dual boot with Windows 10.

@ManuGithubSteam
Copy link

Hi

i don't own GTA 5 yet (for this reason) but, i got some things to share:

d3dx9_26: Does not exist (Maybe not needed?) If needed download the DDL from the web for x64.

As far as i know these install an old Version of NET. 20. but the games needs 4.0 so i would not worry about those.....
dotnet20sp1: Not compatible with x64 version
dotnet20: Not compatible with x64 version
dotnet30sp1: Not compatible with x64 version

Install net.40 in 64 bit directly from Microsoft not with winetrickts, it is the same.
dotnet40: Not compatible with x64 version

Same here got to ms and download the 64 bit version!
msxml6: Not compatible with x64 version

Worked here for me for GTA 4.
quartz: wine just hangs

should not be an issue.
wmp10: Ask for wmp7 before (so weird)

What does not work:

Can't launch the game (stuck on Social Club launcher)

Reason of crash:

check with ldd what is missing in wine.
Wine cannot load 'libgnutls' (but all version available are installed)

Hope this helps someone to report success soon so i can buy it. :-)

Also one could try this: http://www.sereby.org/site/AiO it is recommended in GTA V forums to install the necessary decencies. BTW GTA V seems to have lots of problems in Windows too....

Also if it works. please comment on how you did it!

@neoklimekkelimek
Copy link

yes yes

Copy link

ghost commented Apr 30, 2017

Wait, what? GTA V was released AFTER GFWL was shut down. Why does it need xliveless?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment