Mugen Tournament 3 no DirectX - PinePhone

Questions about Wine on Linux
Locked
scorpion
Level 2
Level 2
Posts: 46
Joined: Sun Dec 02, 2018 12:18 pm

Mugen Tournament 3 no DirectX - PinePhone

Post by scorpion »

I have a PinePhone with Mobian and Sxmo (x version).

This game doesn't required steam and works well with wine, download link https://mugen-tournament.en.softonic.com/.

Note that you need to edit data/system.def change:
font5 = qoh_sm~1.fnt
to
font5 = qoh_small.fnt

When I try to launch it it opens a black window.
It works if I set `DXmode = None` but the colors are strange and no sound.

Code: Select all

Initializing sound... no wave device found
I have it on an arm32 chroot as explained here https://github.com/Raezroth/Linux-ARM-Gaming-Chroot.
It is an arm64 device so I am using box86 and box64 to run this i386 app.
I can play sound from the chroot with `aplay` for example.

I set in `data/mugen.cfg `:

Code: Select all

[Video Win]
Width  = 720
Height = 540
Depth = 24 # as the PP screen depth
Stretch = 0
It seems that there is some problem with the drivers:

Code: Select all

0024:fixme:d3d:wined3d_guess_card_vendor Received unrecognized GL_VENDOR "lima". Returning HW_VENDOR_NVIDIA.
Output with DX:

Code: Select all

Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL PageSize:4096
Box64 with Dynarec v0.1.9 0cc04e5 built on Oct 10 2022 07:08:12
BOX64: Wine preloader detected, loading "/user1/wine/bin/wine64" directly
BOX64: Wine64 detected, WINEPRELOADRESERVE="000400000-000488000"
Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/
Using default BOX64_PATH: ./:bin/
Counted 81 Env var
Looking for /user1/wine/bin/wine64
argv[1]="C:\windows\system32\conhost.exe"
argv[2]="--unix"
argv[3]="--width"
argv[4]="39"
argv[5]="--height"
argv[6]="19"
argv[7]="--server"
argv[8]="0x2c"
Rename process to "wine64"
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
Using emulated /user1/wine/bin/../lib64/wine/ntdll.so
Using native(wrapped) libm.so.6
Using emulated /lib/x86_64-linux-gnu/libgcc_s.so.1
Using emulated /user1/wine/lib64/wine/../libwine.so.1
Using emulated /user1/wine/lib64/wine/ucrtbase.so
Using emulated /user1/wine/lib64/wine/gdi32.so
Using emulated /user1/wine/lib64/wine/user32.so
Using native(wrapped) libfreetype.so.6
Using native(wrapped) libfontconfig.so.1
0068:err:ole:start_rpcss Failed to open RpcSs service
0024:fixme:d3d:wined3d_guess_card_vendor Received unrecognized GL_VENDOR "lima". Returning HW_VENDOR_NVIDIA.
0024:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0024:err:d3d:wined3d_adapter_find_polyoffset_scale PolygonOffset scale factor detection failed, using fallback value 2^23.
0024:err:d3d:wined3d_adapter_find_polyoffset_scale PolygonOffset scale factor detection failed, using fallback value 2^23.
0024:err:d3d:wined3d_adapter_find_polyoffset_scale PolygonOffset scale factor detection failed, using fallback value 2^23.
0024:err:d3d:wined3d_adapter_find_polyoffset_scale PolygonOffset scale factor detection failed, using fallback value 2^23.
0024:err:d3d:wined3d_adapter_find_polyoffset_scale PolygonOffset scale factor detection failed, using fallback value 2^23.
0024:fixme:d3d:wined3d_guess_card_vendor Received unrecognized GL_VENDOR "lima". Returning HW_VENDOR_NVIDIA.
0024:err:d3d:wined3d_adapter_find_polyoffset_scale PolygonOffset scale factor detection failed, using fallback value 2^23.
0024:err:d3d:wined3d_adapter_find_polyoffset_scale PolygonOffset scale factor detection failed, using fallback value 2^23.
0024:err:d3d:wined3d_adapter_find_polyoffset_scale PolygonOffset scale factor detection failed, using fallback value 2^23.
0024:err:d3d:wined3d_adapter_find_polyoffset_scale PolygonOffset scale factor detection failed, using fallback value 2^23.
0024:err:d3d:wined3d_adapter_find_polyoffset_scale PolygonOffset scale factor detection failed, using fallback value 2^23.
0024:err:mmdevapi:DllGetClassObject Driver initialization failed
0024:err:ole:apartment_getclassobject DllGetClassObject returned error 0x80004005 for dll L"C:\\windows\\system32\\mmdevapi.dll"
0024:err:ole:com_get_class_object no class object {bcde0395-e52f-467c-8e3d-c4579291692e} could be created for context 0x1
0024:err:dsound:get_mmdevenum CoCreateInstance failed: 80004005
0024:err:mmdevapi:DllGetClassObject Driver initialization failed
0024:err:ole:apartment_getclassobject DllGetClassObject returned error 0x80004005 for dll L"C:\\windows\\system32\\mmdevapi.dll"
0024:err:ole:com_get_class_object no class object {bcde0395-e52f-467c-8e3d-c4579291692e} could be created for context 0x1
0024:err:winmm:MMDRV_Init CoCreateInstance failed: 80004005
0098:err:mmdevapi:DllGetClassObject Driver initialization failed
0098:err:ole:apartment_getclassobject DllGetClassObject returned error 0x80004005 for dll L"C:\\windows\\system32\\mmdevapi.dll"
0098:err:ole:com_get_class_object no class object {bcde0395-e52f-467c-8e3d-c4579291692e} could be created for context 0x1
00a0:err:mmdevapi:DllGetClassObject Driver initialization failed
00a0:err:ole:apartment_getclassobject DllGetClassObject returned error 0x80004005 for dll L"C:\\windows\\system32\\mmdevapi.dll"
00a0:err:ole:com_get_class_object no class object {bcde0395-e52f-467c-8e3d-c4579291692e} could be created for context 0x1
0024:fixme:d3d:wined3d_guess_card_vendor Received unrecognized GL_VENDOR "lima". Returning HW_VENDOR_NVIDIA.
0024:err:d3d:wined3d_adapter_find_polyoffset_scale PolygonOffset scale factor detection failed, using fallback value 2^23.
0024:err:d3d:wined3d_adapter_find_polyoffset_scale PolygonOffset scale factor detection failed, using fallback value 2^23.
0024:err:d3d:wined3d_adapter_find_polyoffset_scale PolygonOffset scale factor detection failed, using fallback value 2^23.
0024:err:d3d:wined3d_adapter_find_polyoffset_scale PolygonOffset scale factor detection failed, using fallback value 2^23.
0024:err:d3d:wined3d_adapter_find_polyoffset_scale PolygonOffset scale factor detection failed, using fallback value 2^23.
^C (sent CTRL+C to close it)
wine client error:60: partial wakeup read 0
00ac:fixme:console:default_ctrl_handler Terminating process 20 on event 0
Is there a problem with the drivers?

Can this help https://wiki.archlinux.org/title/OpenGL#Mesa?
How do I find the driver for this device? I don't have /lib/dri/.
scorpion
Level 2
Level 2
Posts: 46
Joined: Sun Dec 02, 2018 12:18 pm

Re: Mugen Tournament 3 no DirectX - PinePhone

Post by scorpion »

What opengl version wined3d requires?
scorpion
Level 2
Level 2
Posts: 46
Joined: Sun Dec 02, 2018 12:18 pm

Re: Mugen Tournament 3 no DirectX - PinePhone

Post by scorpion »

I enabled WINEDEBUG=+d3d:

Code: Select all

0024:trace:d3d:wined3d_adapter_init_gl_caps adapter 0x143330.
0024:trace:d3d:wined3d_adapter_init_gl_caps GL_RENDERER: "Mali400".
0024:trace:d3d:wined3d_adapter_init_gl_caps GL_VENDOR: "lima".
0024:trace:d3d:wined3d_adapter_init_gl_caps GL_VERSION: "2.1 Mesa 22.2.0".
0024:trace:d3d:wined3d_parse_gl_version Found OpenGL version 2.1.

0024:trace:d3d:wined3d_adapter_init_gl_caps GL CORE: GL_NV_point_sprite support.
0024:trace:d3d:wined3d_adapter_init_gl_caps  IMPLIED: NVIDIA (NV) Texture Gen Reflection support.
0024:trace:d3d:wined3d_adapter_init_gl_caps Occlusion query counter has 0 bits.
0024:trace:d3d:wined3d_adapter_init_gl_caps Disabling ARB_clip_control because ARB_viewport_array is not supported.

0024:trace:d3d:wined3d_adapter_init_gl_caps GLSL version string: "1.20".
0024:trace:d3d:wined3d_adapter_init_gl_caps Guessed GL vendor 0x3.
0024:trace:d3d:query_gpu_description Card reports vendor PCI ID 0x13b5, device PCI ID 0xffffffff, 0x0 bytes of video memory.
0024:fixme:d3d:wined3d_guess_card_vendor Received unrecognized GL_VENDOR "lima". Returning HW_VENDOR_NVIDIA.
0024:trace:d3d:wined3d_adapter_init_gl_caps Guessed vendor PCI ID 0x10de.
0024:trace:d3d:wined3d_guess_card Applying card selector "NVIDIA".
0024:trace:d3d:select_card_handler Applying card selector "Mesa Nouveau driver".
0024:trace:d3d:wined3d_guess_card Unrecognized renderer "Mali400", falling back to default.
Locked