Hidden & Dangerous Deluxe crashes with Gallium Nine
System information
System:
Host: manjaro-arm Kernel: 6.3.9-1-MANJARO-ARM arch: aarch64 bits: 64
compiler: gcc v: 12.1.0 Desktop: KDE Plasma v: 5.27.6 tk: Qt v: 5.15.10
wm: kwin_wayland dm: SDDM Distro: Manjaro ARM base: Arch Linux
CPU:
Info: quad core (2-mt/2-st) model: N/A variant-1: cortex-a53
variant-2: cortex-a72 bits: 64 type: MST AMCP arch: ARMv8 rev: 4
Speed (MHz): avg: 744 high: 1416 min/max: 408/1416:1800 cores: 1: 408
2: 408 3: 408 4: 408 5: 1416 6: 1416 bogomips: N/A
Features: Use -f option to see features
Graphics:
Device-1: display-subsystem driver: rockchip_drm v: N/A bus-ID: N/A
chip-ID: rockchip:display-subsystem
Device-2: rk3399-mali driver: panfrost v: kernel bus-ID: N/A
chip-ID: rockchip:ff9a0000
Display: wayland server: X.org v: 1.21.1.8 with: Xwayland v: 23.1.2
compositor: kwin_wayland driver: X: loaded: modesetting alternate: fbdev
dri: rockchip gpu: rockchip_drm,panfrost display-ID: 0
Monitor-1: eDP-1 res: 1920x1080 size: N/A
API: OpenGL v: 3.1 Mesa 23.0.4 renderer: Mali-T860 (Panfrost)
direct-render: Yes
- 32-bit Mesa version:
23.3~git2308020600.4de7e0~oibaf~m
- Gallium Nine Standalone version: 0.9
- d3d8to9 version: 1.12.0
- Wine version: 8.0.2
Describe the issue
Game crashes after ESRB notice. It's almost playable with WineD3D, but lags when enemies are around.
How to reproduce
- Download and install the (freeware) game from https://www.bestoldgames.net/download/games/hidden-dangerous-deluxe/hidden-dangerous-deluxe.zip
- Download d3d8.dll from https://github.com/crosire/d3d8to9/releases/latest, d3dx9_43.dll and D3DCompiler_43.dll from https://www.microsoft.com/en-US/download/details.aspx?id=8109 (extract with
7z
orunar
), and place it all to~/.wine/drive_c/Program Files/Take2/Hidden and Dangerous Deluxe/bin
- Make sure Gallium Nine Standalone is installed and properly working (
wine ninewinecfg
), that is, d3d9-nine.dll and ninewinecfg.exe present in~/.wine/drive_c/windows/system32
with d3d9.dll symlinked to d3d9-nine.dll, and/lib/arm-linux-gnueabihf/d3d/d3dadapter9.so.1
- Run hde.exe with
WINEDLLOVERRIDES=d3d8=n
(MESA_EXTENSION_OVERRIDE=-GL_ARB_buffer_storage
is also needed at least on Mali-T860 with Panfrost since Mesa 22.3)
Log files as attachment
- Apitrace: hde.trace
Screenshot
Terminal
[pbpro@manjaro-arm ~]$ MESA_EXTENSION_OVERRIDE=-GL_ARB_buffer_storage WINEDLLOVERRIDES=d3d8=n wine ~/'Software/Hidden and Dangerous Deluxe/bin/hde.exe'
Box86 with Dynarec v0.3.1 e8d4ffc built on Jul 31 2023 13:43:04
Box86 with Dynarec v0.3.1 e8d4ffc built on Jul 31 2023 13:43:04
Box86 with Dynarec v0.3.1 e8d4ffc built on Jul 31 2023 13:43:04
002c:err:winediag:getaddrinfo Failed to resolve your host name IP
wine: failed to open L"C:\\windows\\system32\\winemenubuilder.exe": c0000135
002c:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (126).
0074:err:wineusb:DriverEntry Failed to initialize Unix library, status 0xc0000135.
0074:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\wineusb": c0000135
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"wineusb" failed to start: 126
0094:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\winebus": c0000135
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"winebus" failed to start: 126
Box86 with Dynarec v0.3.1 e8d4ffc built on Jul 31 2023 13:43:04
00dc:fixme:imm:ImeSetActiveContext (00010026, 0): stub
00dc:fixme:imm:ImmReleaseContext (00010020, 00010026): stub
0024:fixme:imm:ImeSetActiveContext (00010064, 1): stub
0024:fixme:imm:ImmReleaseContext (0002005C, 00010064): stub
nine:adapter9:ctor: Your card is at the limit of Gallium Nine requirements. Some games may run into issues because requirements are too tight
Native Direct3D 9 v0.9.0.396-release is active.
For more information visit https://github.com/iXit/wine-nine-standalone
fixme:d3d9nine:DRIPresentGroup_GetMultiheadCount (0x534b08), stub!
fixme:d3d9nine:DRIPresentGroup_GetMultiheadCount (0x534b08), stub!
0024:fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
[pbpro@manjaro-arm ~]$
Edit: d3dx9_43
and d3dcompiler_43
is needed