Tracking in Racing Sims (ACC / PC2)
Wine Bridge Issue Description
I have two games with a Steam Proton prefix which needs to get connected via winebridge. Building and AppImage works both to install the bridge as documented but even though the camera is active, there is no tracking ingame. On the other hand tracking via winetricks in the same prefix works.
Lets pretend I am just using the build.
Steps to Reproduce
- Build linuxtrackx
- Start ltr_gui
- Install winebridge for Steam Games "Assetto Corsa Competitione" (ACC) and Project Cars 2"
- Close ltr_gui
- Start one of the games via Steam in "Steam VR Mode"
Expected Behavior
Tracking should happen in the cockpit-helmet view (like under Windows)
Actual Behavior
- Both: Light of the camera goes active when loading the track (not when entering the game, which would be expected)
- ACC: No tracking; But:
- Alt+Tab back
- open ltr_gui
- start tracking via the button
- Tracking works in the cockpit (non-helmet) and external views. It feels more like a cooliehat than a headtracking (it is smooth but the supported views are normally for cooliehats or mouse and not for heads)
- Project Cars 2: No tracking at all
System Information
Click to expand
=== LinuxTrack System Information ===
=== System ===
OS: Ubuntu 24.04.3 LTS
Arch: x86_64
Kernel: 6.14.0-36-generic
LinuxTrack Version: 0.99.27
Desktop: Budgie:GNOME
Display Server: x11
=== CPU ===
Vendor: AuthenticAMD
Model: AMD Ryzen 7 1700X Eight-Core Processor
Physical cores: 1
Logical cores: 16
=== Memory ===
RAM: 31.3 GB
Swap: 8.0 GB
=== Graphics ===
Graphics Card: 09:00.0 VGA compatible controller: NVIDIA Corporation GM204 [GeForce GTX 970] (rev a1) (prog-if 00 [VGA controller])
OpenGL Vendor: NVIDIA Corporation
OpenGL Renderer: NVIDIA GeForce GTX 970/PCIe/SSE2
OpenGL Version: 4.6.0 NVIDIA 570.195.03
=== LinuxTrack Components ===
Webcam support: NO
Wiimote support: NO
TrackIR support: YES
Facetracker support: NO
XPlane plugin: NO
Mickey: YES
Wine plugin: NO
OSC support: NO
PIE support for native builds: enabled (security feature)
Wine Configuration
- Wine Architecture: Both
-
Wine Prefix Location: Steam custom prefix
WINEPREFIX=/media/user/Games/Steam/steamapps/compatdata/805550/pfx - Wine Runner: Steam Proton with SteamTinkerLaunch before
- Wine Dependencies: Installed
Error Messages
There is no error messages (at least I haven't found one.
Game Information (if applicable)
- Game Name: ACC / Project Cars 2
- Game Version: Proton 9.0f (changes to 10.5 had no effect)
- Game Platform: Steam
- Game Architecture: 64-bit
Checklist
-
I have Wine installed and working -
I have tested with a supported game -
I have included Wine version information -
I have tried different Wine configurations -
I have checked Wine prefix permissions
Fixing approaches
I tried to start tracking in the Steam prefixes (e.g. WINEPREFIX=/media/user/Games/Steam/steamapps/compatdata/805550/pfx winetricks) with executing the Controller.exe and Tester/64.exe manually. They all work as expected.
I use SteamTinkerLaunch to execute the Controller.exe as a forked process before gamestart as describerd here.
I used different Steam Proton Versions (9 - 10.5).
It is not clear to me, what has to happen in the prefix before gamestart (is the Controller.exe necessary?).
I checked ls /usr/local/lib/linuxtrack/wine_bridge/ which was not found (is this up to date?).
I checked:
$ WINEPREFIX=${my_steam_pfx} wine reg query "HKLM\\Software\\Classes\\CLSID\\{98BF1CE3-0x0000-0000-0000-000000000000}"
0090:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\winebth": c0000135
reg: Key not found
Same goes for wine NPClient64.dll # Should not crash (crashes with "not found" but wine "C:\Program Files (x86)\Linuxtrack\NPClient64.dll" works.
Unfortunately, I have no official supported game on this machine to test. If this will give the important knowledge of the problem I will try to get one for testing...
Edit: Sorting wine information