kirides / GD3D11

D3D11-Renderer for Gothic and Gothic 2
GNU General Public License v3.0
199 stars 18 forks source link

[Wine] G2 NotR freezes when fire spell is used #159

Open cgloeckner opened 1 month ago

cgloeckner commented 1 month ago

Hey there,

my game freezes each time I'm casting fire arrow / Feuerpfeil rune while running the v17.8-dev9 renderer. This also happens if one of the dementors / Suchende cast the spell, which renders the game unplayable in 3rd chapter.

The spell works, the NPC reacts (draws his sword and curses towards the hero). Just at that exact moment the game freezes and requires external process killing to be terminated. Here's a screenshot from the last frame rendered:

Bildschirmfoto_2024-07-24_10-11-09

Additional Info:

Let me know if you need anything else. Gothic 1 runs just fine with the Renderer, btw.

Cheers glocke

kirides commented 1 month ago

Please try out the latest nightly version. => https://github.com/kirides/GD3D11/releases dev-9 is really old, just as the DXVK version you use is really old.

recent DXVK version is 2.4, Wine is 9.x

cgloeckner commented 1 month ago

Hi, thanks for the reply. Using the nightly version causes an error on startup:

GD3D11 Renderer couldn't be loaded. Access Denied(0x13d).

The game starts after that but without the renderer. Using to DXVK 2.4 does not help either.

Switching back to dev-9 starts the game with the renderer, but using DXVK 2.4 causes the Gothic2.exe to get stuck on the NotR-Loading-Splash (right after the GothicStarter) with Gothic2.exe allocating exactly 0 Bytes of memory.

kirides commented 1 month ago

This sounds like DXVK wasn't correctly installed. Did you make sure to install x32 dxvk dlls?

It's hard to debug linux issues as different people have completely different ways to run the games in it.

Some use plain WINE-Prefixes and do all installations manually, others use "magic" scripts like Lutris and installation wizards, others use SteamOS and Proton, etc. Then there is PlayOnLinux, Bottles, ...

All create a different Environment.

The game and thus renderer requires a 32-bit compatible environment (modern WINE supports x86 in x64, i.e. SysWow64) Also all installed packages for the game must be 32-bit, this includes DXVK and other DLLs, as the game is 32-bit only. there are a few wine-overrides neccessery to get the game running properly.

Maybe someday i can set up a "bottles" image (or whatever becomes the default for sharing environments) that contains the base for any Gothic-installation. But before that i need to get back internet at home and enough time to tinker with Linux.

cgloeckner commented 1 month ago

Turns out my graphics cards driver does not support vulkan 1.3.x yet (which is required for newer DXVK)

[Graphics]
Vendor: NVIDIA Corporation
OpenGL Renderer: NVIDIA GeForce GTX 1050/PCIe/SSE2
OpenGL Version: 4.6.0 NVIDIA 550.54.14
OpenGL Core: 4.6.0 NVIDIA 550.54.14
OpenGL ES: OpenGL ES 3.2 NVIDIA 550.54.14
Vulkan Version: 1.2.131
Vulkan Drivers: Intel(R) HD Graphics 630 (KBL GT2) (1.2.182), NVIDIA GeForce GTX 1050 (1.3.277)

Nvidia seems to provide 550.100 or even 560 as a beta driver but I hesitate installing a driver that's not within the repository (for compatibility reasons, because I run an old ubuntu 20.04 LTS because I rely on not upgrading my system too frequently because that machine is critical to job and hobby activity ... wow, lot's of because here :D ).

Hence I'll probably must stick playing without the renderer I guess.

Btw newer wine versions cause the game to crash on startup with an Error-Message

C: failed to initialize sound, MSS reported: Broken waveOut driver - 'buffer done' flag never set

So upgrading wine doesn't help either^^

stefson commented 3 weeks ago

Is there a wine bug yet for the sound regression issue? If not, please be so kind to open one, to get it fixed.

lucifer602288 commented 3 weeks ago

For vulkan 1.2 try https://github.com/doitsujin/dxvk/releases/tag/v1.10.3