WineHQ

Grand Theft Auto IV

Version installed by Steam

Application Details:

Version: Steam
License: Retail
URL: http://www.gta4.com/
Votes: 1
Latest Rating: Gold
Latest Wine Version Tested: 6.6-staging

Maintainers: About Maintainership

Link Steam link

Test Results

Selected Test Results

What works

  • Singleplayer campaign
  • Using dinput8.dll as AsiLoader
  • All features of Simple Native Trainer

What does not

  • Trying to tune Independence FM causes an immediate crash to desktop. Skipping past it before the game decides you have "selected" it works fine.
  • ScriptHookDotNet.asi causes a CTD upon pressing Start at the splash screen. Do not attempt to use any scripts or mods that require it.
  • Using any DLL other than dinput8 as the AsiLoader injector.


Workarounds

  • Launch arguments: -nomemrestrict -norestrictions -maxvidmem [VRAM] -availablevidmem [~90% of VRAM]
    Failing to launch with  -availablevidmem will cause textures to not load, LOD popping and stuttering.
  • Constant microstuttering is experienced in game with Wine's d3dx9. Placing dxvk's d3dx9.dll in the game's root directory
    and setting a native override for it in winecfg eliminates all performance issues. The game runs with near-native performance
    and no visual glitching, apart from the z-fighting which exists in game even on Windows.
  • To use the AsiLoader, one must set a native override in winecfg for dinput8.

What was not tested

  • TLaD and TBoGT Simple Native Trainers and ScriptHooks
  • Multiplayer
  • Clip Editor

Hardware tested

Graphics:

  • GPU: Nvidia
  • Driver: proprietary

Additional Comments

  • 32-bit prefix
  • Keep crud in prefix to a minimum
  • Sometimes, after running for the first time the game will not capture the mouse. I honestly don't know what changed between
    prefixes to make mouse input work all of a sudden. The only thing that changed was changing to DXVK's d3dx9 and enabling
    Esync, neither of which should have any bearing on the mouse.

Native DLL overrides: atl100-120, mscvcp100-140, msvcr100-140, vcomp100-140, vcruntime140, dinput8

selected in Test Results table below
Operating systemTest dateWine versionInstalls?Runs?Used
Workaround?
RatingSubmitter
CurrentGentoo Linux x86_64Apr 18 20216.6-stagingYes Yes YesGoldJames Calligeros 
ShowUbuntu 20.04 "Focal" (+ variants like Kubuntu)Apr 27 20216.4Yes Yes NoSilverLuciano 
ShowArch Linux x86_64May 06 20194.7-stagingYes Yes YesGoldAdam Moore 
ShowUbuntu 18.04 "Bionic" amd64 (+variants like Kubuntu)Dec 26 20183.18-stagingN/A Yes YesGoldRoman 
ShowUbuntu 16.04 "Xenial" amd64 (+ variants like Kubuntu)Feb 17 20183.2N/A No NoGarbageAaron Franke 

Known Bugs

Bug # Description Status Resolution Other apps affected
29559 GTA IV freeze in videos or scripted game events UNCONFIRMED View

Show all bugs

HowTo / Notes

HOWTO remove GFWL from GTAIV

Games for Windows - LIVE does not work under Wine. GFWL components will crash any game that use the service. The only thing to do about it is to cut XLive out using XLiveLess Patch.

INSTRUCTIONS

1) Download the latest XLiveLess patch from here.

2) Unpack xlive.dll into the game folder.

XLive is out and the game launch is unobstructed. Please note that from now on the online play via GFWL is disabled so as to prevent cheating.

Comments

The following comments are owned by whoever posted them. WineHQ is not responsible for what they say.

Works in wine-stable
by Dennis Mayr on Tuesday February 5th 2019, 17:05
GTA IV works perfectly in wine-stable (3.0.4), emulating Windows 7, with following native libraries installed: vcrun2005, dotnet20, dotnet35sp1.

However, it crashes under wine-stable 4.0 past the Niko Bellic menu screen, after clicking "Start", regardless of emulated Windows version.
Back