doitsujin / dxvk

Vulkan-based implementation of D3D8, 9, 10 and 11 for Linux / Wine
zlib License
12.77k stars 823 forks source link

[d3d9] GTA: Vice City 1.0 crashes after intro video #4188

Open Omarock92 opened 1 month ago

Omarock92 commented 1 month ago

Please describe your issue as accurately as possible.

Game crashes right after intro video, works fine without DXVK. I've tested GTA 3 (classic) and it's working with DXVK on my system

If you use Windows, please check the following page: https://github.com/doitsujin/dxvk/wiki/Windows

Software information

Name of the game, settings used etc.

GTA: Vice City (classic) 1.0, default settings

System information

Apitrace file(s)

For instructions on how to use apitrace, see: https://github.com/doitsujin/dxvk/wiki/Using-Apitrace

Log files

Please attach Proton or Wine logs as a text file: gta-vc_d3d9.log

niresh1234 commented 1 month ago

Check if this v2.3.1 work or not? https://github.com/doitsujin/dxvk/releases/tag/v2.3.1

Blisto91 commented 1 month ago

@Omarock92 Hi there. What are you using to make the game d3d9? The original is using d3d8 out of the box.

Edit: Also mention if you use any mods or addons

Omarock92 commented 1 month ago

Check if this v2.3.1 work or not? https://github.com/doitsujin/dxvk/releases/tag/v2.3.1

So far I've tried from v2.0 upwards and none of them worked.

@Omarock92 Hi there. What are you using to make the game d3d9? The original is using d3d8 out of the box.

Edit: Also mention if you use any mods or addons

Good call, forgot I'm using "Ultimate ASI loader" by ThirteenAG to load the widescreen fix .ASI mod (which contains a d3d8tod3d9 wrapper) by the same author. I'm using the same setup on GTA 3 and DXVK works when using d3d9.dll.

niresh1234 commented 1 month ago

Show screenshot of your gta-vice_city directory and scripts/plugins Folder and modloader also (if exists)

also use Use UAL dinput8.dll & d3d8to9-wrapper by clicking these

Omarock92 commented 1 month ago

Show screenshot of your gta-vice_city directory and scripts/plugins Folder and modloader also (if exists)

also use Use UAL dinput8.dll & d3d8to9-wrapper by clicking these

Finally figured out what was triggering the crash! I have a wndmode.ini file in the game folder (part of widescreen fix, used to run the game at borderless window because fullscreen is capped at 60hz max refresh rate). Fixed by setting UseWindowMode=1 to 0 (strangely enough the game still ran at borderless window).

It's interesting that GTA 3 didn't have this issue with DXVK and UseWindowMode set to 1.

Grand Theft Auto Vice City Screenshot 2024 08 05 - 22 17 39 98

Blisto91 commented 1 month ago

We are still interested in the crash if it doesn't happen without dxvk so no need to close

Omarock92 commented 1 month ago

We are still interested in to crash if it doesn't happen without dxvk so no need to close

I've reopened. Let me know if you need anything, and yup it doesn't happen on dx9 and dx8 with that flag set to 1.

WinterSnowfall commented 1 month ago

Does d3d9.enableDialogMode = True in conjunction with UseWindowMode=1 fix it?

(strangely enough the game still ran at borderless window).

Something, something, Vulkan has no exclusive fullscreen, something, something :P.

Omarock92 commented 1 month ago

Does d3d9.enableDialogMode = True in conjunction with UseWindowMode=1 fix it?

(strangely enough the game still ran at borderless window).

Something, something, Vulkan has no exclusive fullscreen, something, something :P.

I've just tried putting d3d9.enableDialogMode = True in dxvk.conf. It's crashing with UseWindowMode=1

boludoz commented 1 month ago

Grand Theft Auto: Vice City uses Direct3D 8 (d3d8), not Direct3D 9 (d3d9). The title is incorrect.

WinterSnowfall commented 1 month ago

So I got Vice City, the Ultimate ASI loader and the Widescreen Fix mod - everything seems to work properly in terms of "widescreening", but I don't have any wndmode.ini file to edit (and hence the game just works, no crashes to speak of). @Omarock92 Care to elaborate on what I need to install to get that added in the mix?

Grand Theft Auto: Vice City uses Direct3D 8 (d3d8), not Direct3D 9 (d3d9). The title is incorrect.

The mod causing the crash (allegedly) comes with d3d8to9 by default, so it will bump you to d3d9 when it's installed (by default). But you are technically correct about the base game, the best kind of correct.

Omarock92 commented 1 month ago

So I got Vice City, the Ultimate ASI loader and the Widescreen Fix mod - everything seems to work properly in terms of "widescreening", but I don't have any wndmode.ini file to edit (and hence the game just works, no crashes to speak of). @Omarock92 Care to elaborate on what I need to install to get that added in the mix?

Grand Theft Auto: Vice City uses Direct3D 8 (d3d8), not Direct3D 9 (d3d9). The title is incorrect.

The mod causing the crash (allegedly) comes with d3d8to9 by default, so it will bump you to d3d9 when it's installed (by default). But you are technically correct about the base game, the best kind of correct.

It's a part of the Widescreen Fix mod by ThirteenAG. You just have to create a wndmode.ini file in the root folder of the game and leave it blank. Once you execute the game, the .asi will automatically fill it out.

WinterSnowfall commented 1 month ago

It's a part of the Widescreen Fix mod by ThirteenAG. You just have to create a wndmode.ini file in the root folder of the game and leave it blank. Once you execute the game, the .asi will automatically fill it out.

Thanks. That did it, however I still don't get a crash. dxvk and WineD3D behave exactly the same here and the game is indeed windowed now. So not sure what the problem is, but the likelihood of it being a d3d issue is very slim.

P.S.: I'm using Wine Staging, so if you're seeing this on Windows it's more likely something that's outside of our control. Simply disabling the option is a fair workaround. Or, you could use dxvk's own frame limiter and keep the mod defaults anyway.

Omarock92 commented 4 weeks ago

It's a part of the Widescreen Fix mod by ThirteenAG. You just have to create a wndmode.ini file in the root folder of the game and leave it blank. Once you execute the game, the .asi will automatically fill it out.

Thanks. That did it, however I still don't get a crash. dxvk and WineD3D behave exactly the same here and the game is indeed windowed now. So not sure what the problem is, but the likelihood of it being a d3d issue is very slim.

P.S.: I'm using Wine Staging, so if you're seeing this on Windows it's more likely something that's outside of our control. Simply disabling the option is a fair workaround. Or, you could use dxvk's own frame limiter and keep the mod defaults anyway.

Hmm, I'm on Windows. The only other possibility I can think of is Steam vs retail executables. Do you have the steam version?

WinterSnowfall commented 4 weeks ago

The only other possibility I can think of is Steam vs retail executables. Do you have the steam version?

I doubt it matters, but I'm using a retail copy, not the Steam version.

Blisto91 commented 5 days ago

Tested this on Windows 11 and i have also been unable to reproduce.

The game starts fine for me with the windowed mode with dxvk using both Steam exe and 1.0.

Tested on a RX 7900xtx with 24.8.1

niresh1234 commented 4 days ago

@Blisto91 hare the package to reproduce this issue (need clean 1.0 game)

GTA-ViceCity-DXVK-Testing.zip

package contents: