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

Add Opentrack in Lutris wiki page (I have no perms) #1792

Open
raven-intheclouds opened this issue Jan 21, 2024 · 0 comments
Open

Add Opentrack in Lutris wiki page (I have no perms) #1792

raven-intheclouds opened this issue Jan 21, 2024 · 0 comments

Comments

@raven-intheclouds
Copy link

raven-intheclouds commented Jan 21, 2024

Hello, I would like to add the following to a new "Opentrack in Lutris" wiki page (for wich I don't have perms)

Opentrack in Lutris

One can successfully run Opentrack win32 portable version with Linux games through Lutris and Proton.

For that:

  1. Download Opentrack win32 portable from the GH releases, and put it somewhere where Lutris can access it.
    For example: /home/deck/Games/IL2/gamefiles/opentrack/opentrack.exe
  2. Automatically start Opentrack before the game, and close it afterwards, by creating and selecting Lutris pre-launch and post-exit scripts.
  3. Create a home/deck/Games/pre-launch.sh and give it executable perms:
#!/bin/sh

# Optional:
# create a reverse tunnel to the android device running HeadMob app (or similar) to reduce latency
# this needs gnirehtet in the path and working with the android device already.
# see: https://github.com/Genymobile/gnirehtet
#
# Deps: adb, gnirehtet, enable adb usb debugging in android phone
#
# Note: if using Lutris Flatpak, you need to use Flatseal to expose PATH to Lutris so it can
# find gnirehtet, adb.
# GNIREHTET_APK=/$HOME/.local/share/gnirehtet/gnirehtet.apk gnirehtet run -p 4242 &

# Start Opentrack for Windows on the same WINEPREFIX. This allows Opentrack to communicate
# with the game.
# Note: one must have configured Opentrack already to start when the game executable starts
# (if not, alt-tab and click start).
${WINE} /home/deck/Games/opentrack/opentrack.exe
  1. Create a home/deck/Games/post-exit.sh and give it executable perms:
#!/bin/sh
pkill gnirehtet
pkill opentrack.exe
  1. Open Lutris, game -> configure -> system options -> game execution -> set Pre-launch script & Post-launch script to the created files (don't check "wait for pre-launch script completion"). save.
  2. Play. Voila!

Notes

Since the Opentrack portable version is not installed in the specific WINEPREFIX, it can be shared between games. Effectively reusing all profiles, listening to executables to start, etc. All works.

Examples

This is known to work at least for IL-2 1946, IL-2 Battle of Stalingrad (BoX).

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

No branches or pull requests

1 participant