GTA San Andreas Issue

Questions about Wine on Linux
Locked
User avatar
BrotherAlameen
Newbie
Newbie
Posts: 2
Joined: Sat Jan 07, 2023 6:10 pm

GTA San Andreas Issue

Post by BrotherAlameen »

Hi

I recently installed GTA San Andreas on Linux Mint 21.1 Vera and I'm trying to run it using Wine. My Version is

Code: Select all

root@neptun-kod:/home/brotheralameen# wine --version
wine-6.0.3 (Ubuntu 6.0.3~repack-1)
root@neptun-kod:/home/brotheralameen# 
which I originally downloaded from the Software Manager through a Flatpak. Nonetheless, whenever I run the game, I keep getting this error.

Code: Select all

Cannot find 800x600x32 Video Mode
and when I run xrandr on command line, it returns this

Code: Select all

root@neptun-kod:/home/brotheralameen# xrandr
Screen 0: minimum 320 x 200, current 1280 x 800, maximum 8192 x 8192
LVDS-1 connected primary 1280x800+0+0 (normal left inverted right x axis y axis) 286mm x 179mm
   1280x800      60.22*+  60.22  
   1280x720      60.22  
   1024x768      60.22    59.95  
   960x720       60.22  
   928x696       60.22  
   896x672       60.22  
   1024x576      60.22  
   960x600       60.22  
   960x540       60.22  
   800x600       60.22    59.96  
   840x525       60.22  
   864x486       60.22  
   700x525       60.22  
   800x450       60.22  
   640x512       60.22  
   700x450       60.22  
   640x480       60.22    59.94  
   720x405       60.22  
   720x400       59.97  
   684x384       60.22  
   640x400       59.96  
   640x360       60.22  
   640x350       59.84  
   512x384       60.22  
   512x288       60.22  
   480x270       60.22  
   400x300       60.22  
   432x243       60.22  
   320x240       60.22  
   360x202       60.22  
   320x180       60.22  
DP-1 disconnected (normal left inverted right x axis y axis)
and unfortunately, I thought this is because of the DynamicTwinView but when I try find the xorg.conf file in the /etc/X11 directory, it isn't there.

Code: Select all

root@neptun-kod:/etc/X11# ls
app-defaults             xinit        Xresources        XvMCConfig
cursors                  xkb          Xsession          Xwrapper.config
default-display-manager  xorg.conf.d  Xsession.d
fonts                    Xreset       Xsession.options
rgb.txt                  Xreset.d     xsm
Is there any other way to fix this issue?

Also, not to forget, when running the game, it crashes too and this is the traceback it gives

Code: Select all

Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0x00746929).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:006b GS:0063
 EIP:00746929 ESP:0188fd80 EBP:0188ff30 EFLAGS:00010246(  R- --  I  Z- -P- )
 EAX:00000000 EBX:00000000 ECX:0188fd78 EDX:003e2000
 ESI:00000000 EDI:10016f00
Stack dump:
0x0188fd80:  00748732 003fe000 015c15f0 0188fd98
0x0188fd90:  10028838 015c15f0 0188fdc8 10015ba1
0x0188fda0:  015c15f0 00000018 19102cd6 00400330
0x0188fdb0:  00000001 003fe000 015c15f0 0188ff20
0x0188fdc0:  1004ed00 00000000 0188fdfc 1001dda7
0x0188fdd0:  10016f00 00000000 015c15f0 00000000
Backtrace:
=>0 0x00746929 EntryPoint+0xffffffff() in gta_sa (0x0188ff30)
  1 0x7b62d990 EntryPoint+0xffffffff() in kernel32 (0x0188ff48)
  2 0x7bc567f7 EntryPoint+0xffffffff() in ntdll (0x0188ff5c)
  3 0x7bc56a50 EntryPoint+0xffffffff() in ntdll (0x0188ffec)
0x00746929 EntryPoint+0xffffffff in gta_sa: movl	0x0(%eax),%ecx
Modules:
Module	Address			Debug info	Name (40 modules)
PE	  110000-  140000	Deferred        eax
PE	  400000- 1577000	Export          gta_sa
PE	 1890000- 1add000	Deferred        msvcrt
PE	 1ae0000- 1f46000	Deferred        ole32
PE	 26f0000- 27f8000	Deferred        vorbis
PE	 2800000- 2809000	Deferred        ogg
PE	 2c30000- 2c3d000	Deferred        api-ms-win-crt-heap-l1-1-0
PE	 2c40000- 2c64000	Deferred        wshps.asi
PE	 2c70000- 2cc4000	Deferred        gtasa.widescreenfix.asi
PE	10000000-1029a000	Deferred        vorbisfile
PE	61740000-61832000	Deferred        advapi32
PE	61f80000-61f90000	Deferred        api-ms-win-crt-math-l1-1-0
PE	62b80000-62b8d000	Deferred        api-ms-win-core-localization-l1-2-1
PE	62fc0000-631d3000	Deferred        rpcrt4
PE	63480000-6349b000	Deferred        version
PE	63740000-6374e000	Deferred        api-ms-win-crt-runtime-l1-1-0
PE	63bc0000-63c04000	Deferred        shcore
PE	64a40000-64b29000	Deferred        shlwapi
PE	67c80000-67ddb000	Deferred        d3d9
PE	68500000-68640000	Deferred        combase
PE	6a040000-6a0a2000	Deferred        msacm32
PE	6a400000-6a566000	Deferred        winmm
PE	6ac80000-6ac8c000	Deferred        api-ms-win-core-fibers-l1-1-1
PE	6b7c0000-6b7ce000	Deferred        api-ms-win-crt-stdio-l1-1-0
PE	6bc00000-6bc99000	Deferred        sechost
PE	6bcc0000-6be60000	Deferred        setupapi
PE	6c9c0000-6cf59000	Deferred        gdi32
PE	6de80000-6de8d000	Deferred        api-ms-win-core-synch-l1-2-0
PE	6ed00000-6f389000	Deferred        user32
PE	70240000-70256000	Deferred        vcruntime140
PE	70b40000-70df9000	Deferred        ucrtbase
PE	71200000-71251000	Deferred        imm32
PE	7a820000-7a824000	Deferred        opengl32
PE	7b000000-7b348000	Deferred        kernelbase
PE	7b600000-7b929000	Dwarf           kernel32
PE	7bc00000-7bea9000	Dwarf           ntdll
PE	7eaa0000-7eaa4000	Deferred        winex11
PE	7edd0000-7edd6000	Deferred        ws2_32
PE	7ee10000-7ee14000	Deferred        wined3d
PE	7efb0000-7f882000	Deferred        shell32
Threads:
process  tid      prio (all id:s are in hex)
00000038 services.exe
	0000003c    0
	00000040    0
	0000004c    0
	0000005c    0
	00000074    0
	00000090    0
	0000009c    0
	000000c8    0
	000000dc    0
00000044 winedevice.exe
	00000048    0
	00000054    0
	00000058    0
	00000060    0
00000064 explorer.exe
	00000068    0
	0000008c    0
	000000b4    0
	00000604    0
	00000610    0
	00000618    0
	0000061c    0
0000006c plugplay.exe
	00000070    0
	00000078    0
	0000007c    0
	00000080    0
	000000a4    0
00000084 winedevice.exe
	00000088    0
	00000094    0
	00000098    0
	000000a0    0
	000000b0    0
000000c0 svchost.exe
	000000c4    0
	000000cc    0
	000000d0    0
000000d4 rpcss.exe
	000000d8    0
	000000e0    0
	000000e4    0
	000000e8    0
	000000ec    0
	000000f0    0
	000005fc    0
000005d8 taskmgr.exe
	000005dc    0
	000005e0    0
	000005e4    0
	000005e8    0
000005f4 explorer.exe
	000005f8    0
	00000620    0
00000808 gta_sa.exe
	0000080c    0
	00000810    0
	00000818    0
	00000050    0
	000000f4   15
	0000011c    0
0000081c (D) C:\Program Files (x86)\Games\GTA San Andreas\gta_sa.exe
	000000b8    0 <==
	00000034    0
	000000a8    0
System information:
    Wine build: wine-6.0.3 (Ubuntu 6.0.3~repack-1)
    Platform: i386 (WOW64)
    Version: Windows 8
    Host system: Linux
    Host version: 5.15.0-57-generic
The game was only able to create a Gallery and User Tracks Folder as well as a GTA San Andreas User Files Folder in the Documents Directory of my main profile, which is where I'm guessing the User is configured from Winecfg. This means the game ran before it crashed though it still couldn't start.
NovHak
Newbie
Newbie
Posts: 2
Joined: Fri Dec 30, 2022 9:16 pm

Re: GTA San Andreas Issue

Post by NovHak »

I’m interested in this, as I consider going back to GTA : SA sooner or later, using Wine too (on Ubuntu). (if only I find my old DVD, and get my hands on a DVD drive)

First of all, if you install it from a DVD, chances are big there’s some old DRM here, and I’m pretty sure it won’t go well with Wine, but I think replacement exes shouldn’t be too difficult to find. Additionally, you could try some community patches that address bugs, e.g. missing road reflections when it rains, on post-AGP GPUs (i.e. all modern GPUs).

Concerning the missing 800x600 mode, did you try adding one with xrandr --newmode ? Then you would have to use --addmode to add the newly created mode to your output. To get required timings for your mode, you can try the gtf command to calculate VESA GTF timings. I don’t know why it isn’t in your mode list in the first place…

If you ever get it to work, I’m interested to know how well it will work ! When I ran it on a modern Windows system some time ago, I remember it used to freeze completely sometimes, not very frequently, but still very annoying, especially when it had not been saved for some time. IIRC, installing Direct Play and having a joystick plugged in (be it virtual or real) would reduce the frequency of those freezes. Also, I limited the FPS to 30, to avoid strange physics issues.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: GTA San Andreas Issue

Post by jkfloris »

As a test, could you try the game in a 32-bit Wineprefix, set to Windows XP and enable a 800x600 virtual desktop in winecfg?
User avatar
BrotherAlameen
Newbie
Newbie
Posts: 2
Joined: Sat Jan 07, 2023 6:10 pm

Re: GTA San Andreas Issue

Post by BrotherAlameen »

NovHak wrote: Sun Jan 08, 2023 11:04 pm I’m interested in this, as I consider going back to GTA : SA sooner or later, using Wine too (on Ubuntu). (if only I find my old DVD, and get my hands on a DVD drive)

First of all, if you install it from a DVD, chances are big there’s some old DRM here, and I’m pretty sure it won’t go well with Wine, but I think replacement exes shouldn’t be too difficult to find. Additionally, you could try some community patches that address bugs, e.g. missing road reflections when it rains, on post-AGP GPUs (i.e. all modern GPUs).

Concerning the missing 800x600 mode, did you try adding one with xrandr --newmode ? Then you would have to use --addmode to add the newly created mode to your output. To get required timings for your mode, you can try the gtf command to calculate VESA GTF timings. I don’t know why it isn’t in your mode list in the first place…

If you ever get it to work, I’m interested to know how well it will work ! When I ran it on a modern Windows system some time ago, I remember it used to freeze completely sometimes, not very frequently, but still very annoying, especially when it had not been saved for some time. IIRC, installing Direct Play and having a joystick plugged in (be it virtual or real) would reduce the frequency of those freezes. Also, I limited the FPS to 30, to avoid strange physics issues.
I actually never installed it from a DVD, but rather used a cracked ISO Torrent File containing the games setup in order to install [MODERATOR: removed direct mention of source of crack] (The installer also comes with the crack as well). Nonetheless, I used the same setup earlier on Windows PC and it requested for DirectX and Microsoft.Net Frameworks 3.5, which I managed to install and the game ran perfectly. The only issue comes with running it over wine on this MacBook which is currently running Linux Mint 21.1 Vera. I'll give your troubleshooting tips a try when I get some data soon.
Last edited by BrotherAlameen on Mon Jan 09, 2023 3:17 pm, edited 1 time in total.
User avatar
BrotherAlameen
Newbie
Newbie
Posts: 2
Joined: Sat Jan 07, 2023 6:10 pm

Re: GTA San Andreas Issue

Post by BrotherAlameen »

jkfloris wrote: Mon Jan 09, 2023 10:30 am As a test, could you try the game in a 32-bit Wineprefix, set to Windows XP and enable a 800x600 virtual desktop in winecfg?
I tried this but I get presented with the same error

Code: Select all

Cannot find 800x600x32 Video Mode
This is the output log from the crash report from wine:

Code: Select all

Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0x00746929).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:006b GS:0063
 EIP:00746929 ESP:0188fd80 EBP:0188ff30 EFLAGS:00010246(  R- --  I  Z- -P- )
 EAX:00000000 EBX:00000000 ECX:0188fd78 EDX:003e2000
 ESI:00000000 EDI:10016f00
Stack dump:
0x0188fd80:  00748732 003fe000 015c7568 0188fd98
0x0188fd90:  10028838 015c7568 0188fdc8 10015ba1
0x0188fda0:  015c7568 00000018 2e84b232 00400330
0x0188fdb0:  00000001 003fe000 015c7568 0188ff20
0x0188fdc0:  1004ed00 00000000 0188fdfc 1001dda7
0x0188fdd0:  10016f00 00000000 015c7568 00000000
Backtrace:
=>0 0x00746929 EntryPoint+0xffffffff() in gta_sa (0x0188ff30)
  1 0x7b62d990 EntryPoint+0xffffffff() in kernel32 (0x0188ff48)
  2 0x7bc567f7 EntryPoint+0xffffffff() in ntdll (0x0188ff5c)
  3 0x7bc56a50 EntryPoint+0xffffffff() in ntdll (0x0188ffec)
0x00746929 EntryPoint+0xffffffff in gta_sa: movl	0x0(%eax),%ecx
Modules:
Module	Address			Debug info	Name (40 modules)
PE	  110000-  140000	Deferred        eax
PE	  400000- 1577000	Export          gta_sa
PE	 1890000- 1add000	Deferred        msvcrt
PE	 1ae0000- 1f46000	Deferred        ole32
PE	 26f0000- 27f8000	Deferred        vorbis
PE	 2800000- 2809000	Deferred        ogg
PE	 2c30000- 2c3d000	Deferred        api-ms-win-crt-heap-l1-1-0
PE	 2c40000- 2c64000	Deferred        wshps.asi
PE	 2c70000- 2cc4000	Deferred        gtasa.widescreenfix.asi
PE	10000000-1029a000	Deferred        vorbisfile
PE	61740000-61832000	Deferred        advapi32
PE	61f80000-61f90000	Deferred        api-ms-win-crt-math-l1-1-0
PE	62b80000-62b8d000	Deferred        api-ms-win-core-localization-l1-2-1
PE	62fc0000-631d3000	Deferred        rpcrt4
PE	63480000-6349b000	Deferred        version
PE	63740000-6374e000	Deferred        api-ms-win-crt-runtime-l1-1-0
PE	63bc0000-63c04000	Deferred        shcore
PE	64a40000-64b29000	Deferred        shlwapi
PE	67c80000-67ddb000	Deferred        d3d9
PE	68500000-68640000	Deferred        combase
PE	6a040000-6a0a2000	Deferred        msacm32
PE	6a400000-6a566000	Deferred        winmm
PE	6ac80000-6ac8c000	Deferred        api-ms-win-core-fibers-l1-1-1
PE	6b7c0000-6b7ce000	Deferred        api-ms-win-crt-stdio-l1-1-0
PE	6bc00000-6bc99000	Deferred        sechost
PE	6bcc0000-6be60000	Deferred        setupapi
PE	6c9c0000-6cf59000	Deferred        gdi32
PE	6de80000-6de8d000	Deferred        api-ms-win-core-synch-l1-2-0
PE	6ed00000-6f389000	Deferred        user32
PE	70240000-70256000	Deferred        vcruntime140
PE	70b40000-70df9000	Deferred        ucrtbase
PE	71200000-71251000	Deferred        imm32
PE	7a820000-7a824000	Deferred        opengl32
PE	7b000000-7b348000	Deferred        kernelbase
PE	7b600000-7b929000	Dwarf           kernel32
PE	7bc00000-7bea9000	Dwarf           ntdll
PE	7eac0000-7eac4000	Deferred        winex11
PE	7edd0000-7edd6000	Deferred        ws2_32
PE	7ee10000-7ee14000	Deferred        wined3d
PE	7efb0000-7f882000	Deferred        shell32
Threads:
process  tid      prio (all id:s are in hex)
00000020 explorer.exe
	00000024    0
	00000114    0
00000038 services.exe
	0000003c    0
	00000040    0
	0000004c    0
	0000005c    0
	00000074    0
	0000008c    0
	00000098    0
	000000c4    0
	000000dc    0
00000044 winedevice.exe
	00000048    0
	00000054    0
	00000058    0
	00000060    0
00000064 plugplay.exe
	00000068    0
	00000078    0
	0000007c    0
	00000080    0
	000000a0    0
0000006c explorer.exe
	00000070    0
	000000b0    0
	000000bc    0
	000000fc    0
	00000108    0
	0000010c    0
	00000110    0
00000084 winedevice.exe
	00000088    0
	00000090    0
	00000094    0
	0000009c    0
	000000ac    0
000000b4 svchost.exe
	000000b8    0
	000000cc    0
	000000d0    0
000000d4 rpcss.exe
	000000d8    0
	000000e0    0
	000000e4    0
	000000e8    0
	000000ec    0
	000000f0    0
	000000f8    0
0000013c (D) Z:\home\brotheralameen\.wine\drive_c\Program Files (x86)\Games\GTA San Andreas\gta_sa.exe
	00000140    0 <==
	00000144    0
	00000154    0
System information:
    Wine build: wine-6.0.3 (Ubuntu 6.0.3~repack-1)
    Platform: i386
    Version: Windows XP
    Host system: Linux
    Host version: 5.15.0-57-generic
I tried to turn off the Virtual Desktop Emulation for 800x600 from the winecfg afterwards, thinking it would solve the issue because whenever I play it on Windows, it usually just runs with a bigger screen and adjusts the resolution by itself, but still no hope with this issue. At the moment, the Windows Machine is very slow and CPU as well as Memory is messed up on it, so it can barely run any game.
Last edited by BrotherAlameen on Mon Jan 09, 2023 3:21 pm, edited 2 times in total.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: GTA San Andreas Issue

Post by dimesio »

BrotherAlameen wrote: Mon Jan 09, 2023 2:55 pm I actually never installed it from a DVD, but rather used a cracked ISO Torrent File containing the games setup in order to install
Pirated software is not supported and discussion is against forum rules. I am locking this topic. Do not ask about illegal items again.
Locked