Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working under Batocera/Wine TKG #732

Open
mihaimdinca opened this issue Jan 28, 2025 · 6 comments
Open

Not working under Batocera/Wine TKG #732

mihaimdinca opened this issue Jan 28, 2025 · 6 comments

Comments

@mihaimdinca
Copy link

Unlike the previous release, this build does not work under Wine TKG/ Batocera Linux V41

@mmind
Copy link
Contributor

mmind commented Jan 28, 2025

@mihaimdinca ideally you might want to provide some more information.
A simple "does not work" is not ideal because there are so many things at play.

Interesting information would be built from source or based on a binary build.
What console output is generated when the start fails.

@mihaimdinca
Copy link
Author

You are absolutely right. It was terribly lazy of me. Some more details:

  • Hardware: Hp Elitedesk 705 G4 with AMD Ryzen 5 PRO 2400GE APU with integrated Vega 11 GPU, 16 GB of RAM
  • OS: BATOCERA.LINUX ES V42u-dev-7d71c20242 2025/01/25 (it is a butterfly not a stable)
  • OpenGothic is run with Wine Emulator (Wine TKG 9.21) included in the distribution.
  • working OpenGothic version is gothic-win64-v1.0.2207 - downloaded precompiled form the releases section, ran the .bat file on my PC where Gothic 1 and Gothic 2 are installed and then moved it over to the Batocera machine;
  • non-working version is gothic-win64-v1.0.3010 - just copied over the files from the assets archive from this release. It runs on my laptop just fails to open in batocera.
  • the ssh output looks like this:
    ____ __ ____ _____ ___ ____ ____ __
    ( _ \ /\ (_ )( _ )/ _)( )( _ \ /
    ) _ < /(
    )\ )( )(
    )(( (
    )) ) / /()
    (/()()() (_)_)()(_)_)()()
    R E A D Y T O R E T R O

-- type 'batocera-check-updates' to check for stable branch --
-- add 'butterfly' switch to check for latest arch developments --

Model: HP_EliteDesk_705_G4_DM_35W__TAA_
System: Linux 6.13.0
Architecture: x86_64
CPU Model: AMD Ryzen 5 PRO 2400GE w/ Radeon Vega Graphics
CPU Cores: 4 / CPU Threads: 8
CPU Max Frequency: 3200 MHz
CPU Features: avx2 sse4_1
Ryzen Mobile TDP: 42W
Temperature: 69°C
Available Memory: 13869/14920 MB
Display Resolution: 1920x1080
Display Refresh Rate: 60.00Hz
Data Partition Format: ext4
Data Partition Available Space: 275G
Network IP Address: 192.168.1.105
OS version: 42u-dev-7d71c20242 2025/01/25 21:39

[root@BATOCERA /userdata/system]# export DISPLAY=:0.0
[root@BATOCERA /userdata/system]# batocera-wine windows play "/userdata/roms/windows/OpenGothic 2.pc"
*** Chosen WINE runner is wine-tkg ***
*** Directory checks complete, WINE runner is wine-tkg ***
play_pc
Remove Symblink
Creating links using /usr/wine/wine-tkg, Linux File System required !!!
SHELL=/bin/bash
WINE_HIDE_NVIDIA_GPU=0
__GL_SHADER_DISK_CACHE_PATH=/userdata/system/cache/nvidia
NTFS_MODE=0
PIPEWIRE_MODULE_DIR=/usr/lib/pipewire-0.3:/lib32/pipewire-0.3
USE_BUILTIN_VKD3D=0
WINEDLLPATH=/usr/wine/wine-tkg/lib/wine/i386-windows:/usr/wine/wine-tkg/lib/wine/x86_64-windows
EDITOR=/bin/vi
NVAPI=0
GST_PLUGIN_SYSTEM_PATH_1_0=/usr/lib/gstreamer-1.0:/lib32/gstreamer-1.0
PWD=/userdata/system
LOGNAME=root
WINE_HEAP_DELAY_FREE=0
DXVK_STATE_CACHE=1
SPA_PLUGIN_DIR=/usr/lib/spa-0.2:/lib32/spa-0.2
WINEESYNC=1
WINE_MONO_OVERRIDES=Microsoft.Xna.Framework.*,Gac=n
HOME=/userdata/system
LANG=en_US.UTF-8
SSH_CONNECTION=192.168.1.107 52335 192.168.1.105 22
DXVK_ENABLE_NVAPI=0
__GL_SHADER_DISK_CACHE_SKIP_CLEANUP=1
XDG_CACHE_HOME=/userdata/system/cache
WINE_ALLOW_XIM=0
WINEDLLOVERRIDES=winemenubuilder.exe=;dxgi,d3d8,d3d9,d3d10core,d3d11,d3d12,d3d12core=b;nvapi64,nvapi=
TERM=xterm
VKD3D_SHADER_CACHE_PATH=/userdata/system/cache
DXVK_FRAME_RATE=0
USER=root
WINE_LARGE_ADDRESS_AWARE=0
DISPLAY=:0.0
SHLVL=2
GST_REGISTRY_1_0=/userdata/system/.cache/gstreamer-1.0/registry.x86_64.bin:/userdata/system/.cache/gstreamer-1.0/registry..bin
PBA_ENABLE=0
LIBGL_DRIVERS_PATH=/lib32/dri:/usr/lib/dri
WINEDEBUG=err+all,fixme+all
STAGING_SHARED_MEMORY=1
LD_LIBRARY_PATH=/lib32:/usr/wine/wine-tkg/lib/wine/i386-unix:/lib:/usr/lib:/usr/wine/wine-tkg/lib/wine/x86_64-unix
XDG_RUNTIME_DIR=/var/run
__GL_SHADER_DISK_CACHE_SIZE=2147483648
WINE_DISABLE_WRITE_WATCH=0
SSH_CLIENT=192.168.1.107 52335 22
DXVK_ASYNC=0
XDG_DATA_DIRS=/userdata/system/.local/share/flatpak/exports/share:/userdata/saves/flatpak/binaries/exports/share:/usr/local/share:/usr/share
PATH=/bin:/sbin:/usr/bin:/usr/sbin:PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/wine/wine-tkg/bin
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket
SSH_TTY=/dev/pts/0
WINEFSYNC=1
WINE_FULLSCREEN_FSR=0
ULIMIT_SIZE=1048576
_=/usr/bin/env
fsync: up and running.
002c:fixme:winediag:loader_init Wine TkG (staging) 9.21 is a testing version containing experimental patches.
002c:fixme:winediag:loader_init Please don't report bugs about it on winehq.org and use https://github.com/Frogging-Family/wine-tkg-git/issues instead.
002c:err:wineboot:process_run_key Error running cmd L"C:\windows\system32\winemenubuilder.exe -a -r" (126).
008c:fixme:wineusb:add_usb_device Interface 1 has 6 alternate settings; using the first one.
0088:fixme:wineusb:query_id Unhandled ID query type 0x5.
0088:fixme:wineusb:query_id Unhandled ID query type 0x5.
0088:fixme:wineusb:query_id Unhandled ID query type 0x5.
0088:fixme:wineusb:query_id Unhandled ID query type 0x5.
0088:fixme:wineusb:query_id Unhandled ID query type 0x5.
0088:fixme:wineusb:query_id Unhandled ID query type 0x5.
0088:fixme:wineusb:query_id Unhandled ID query type 0x5.
0088:fixme:wineusb:query_id Unhandled ID query type 0x5.
0088:fixme:wineusb:query_id Unhandled ID query type 0x5.
0088:fixme:wineusb:query_id Unhandled ID query type 0x5.
0088:fixme:wineusb:query_id Unhandled ID query type 0x5.
0088:fixme:wineusb:query_id Unhandled ID query type 0x5.
0088:fixme:wineusb:query_id Unhandled ID query type 0x5.
0088:fixme:wineusb:query_id Unhandled ID query type 0x5.
0088:fixme:wineusb:query_id Unhandled ID query type 0x5.
0088:fixme:wineusb:query_id Unhandled ID query type 0x5.
0088:fixme:wineusb:query_id Unhandled ID query type 0x5.
0088:fixme:wineusb:query_id Unhandled ID query type 0x5.
009c:err:hid:udev_bus_init UDEV monitor creation failed
0024:fixme:file:parse_samba_dos_attrib_data Unhandled user.DOSATTRIB extended attribute value.
0124:fixme:file:parse_samba_dos_attrib_data Unhandled user.DOSATTRIB extended attribute value.

Z:\userdata\roms\windows\OpenGothic 2.pc>Gothic2Notr.exe -g "Z:\userdata\roms\wi
ndows\OpenGothic 2.pc"
wine: Call from 00007F06698A5EF7 to unimplemented function msvcp140_2.dll.__std_smf_cyl_bessel_i, aborting
012c:err:module:loader_init "Tempest.dll" failed to initialize, aborting
012c:err:module:loader_init Initializing dlls for L"Z:\userdata\roms\windows\OpenGothic 2.pc\Gothic2Notr.exe" failed, status 80000100
6329
waiting wineserver
6329
waiting wineserver
6329
waiting wineserver
6329
waiting wineserver

@mihaimdinca
Copy link
Author

At some point maybe I will try to give the linux build a try. So far I never tried running a native linux program/ game on batocera (I'm still sort of a noob). The most logical thing though would be for OpenGothic to be integrated into Batocera the same way some many other emulators are (I'm thinking of Dhewm for Doom3, iortcw for Return to Castle Wolfenstein and so on).

@Try
Copy link
Owner

Try commented Jan 29, 2025

Hi, @mihaimdinca !

Based on log you provided:

wine: Call from 00007F06698A5EF7 to unimplemented function msvcp140_2.dll.__std_smf_cyl_bessel_i

It seems wine doesn't quite have support for C++ standard runtime functions. Specifically std::cyl_bessel_i, introduced in C++17, 8 years ago.

I don't see any good reason to workaround emulator bugs, when there is a native client for Linux. Just go native :)

@mihaimdinca
Copy link
Author

Installed all the vcredist packs possible. That still did not fix the issue. I managed to get the linux version working though. Currently I see no performance difference between current release under Linux and previous release (the last that was working for me) under Wine. In G2Notr with no mods with most settings to max the performance is not great but at least the fact that the linux version is working gives me hope for improvements in future releases. Thank you for the fine work you are doing. Gothic deserves to outlive JoWood and even Piranha Bytes.

@Nindaleth
Copy link
Contributor

I don't see any good reason to workaround emulator bugs, when there is a native client for Linux. Just go native :)

Fortunately, Wine literally means "not an emulator", it doesn't need to reimplement all the Microsoft stuff and instead can just load their vcredist-provided DLLs directly :)

However, I agree that going native is much easier in OpenGothic case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants