markx86 / opentrack-launcher

GNU General Public License v3.0
17 stars 1 forks source link

OpenTrack doesn't launch after game #1

Open Posiris opened 8 months ago

Posiris commented 8 months ago

I have followed the steps in the readme and launched ATS. After launching the game, OpenTrack will not launch. I double checked and the install, script, and version.txt are inside the opentrack-launcher folder in .local/share. I am running ATS as DirectX 11 and using Proton Experimental. I did reinstall python and p7zip packages as well using pacman -S. Is there something in the python script that is may not be initializing? I am trying to set this up on Steam Deck, and readonly is disabled.

markx86 commented 8 months ago

Hi, I pushed an update that should fix ATS and other games. You'll need to remove the opentrack-launcher/scripts folder first, before launching any game with the new version. However, I would suggest removing the entire opentrack-launcher folder with the command:

$ rm -rI ~/.local/share/opentrack-launcher

Hopefully that fixes it!

Posiris commented 8 months ago

This is awesome! I just removed the script from .local/bin and also removed the folder from .local/share and started fresh. Everything is working just fine. I decided to use the aruco marker instead of neuralnet to hopefully cut down on CPU usage while running ATS at the same time on the little Steam Deck. I just did a 5 hour stream on Twitch last night and it went smoothly all things considered.

Thank you very much for fixing the script you made, and I encourage you to do some self-promotion in the various subreddits involving Linux, Steam Deck, and Sim Racing. If it wasn't for your reply to a Reddit post I managed to happen upon, I never would have found it. I will be writing up a post over on the Steam Deck subreddit soon about this, I think.

I also have a possible query... Would it be possible to also do a similar script, but for something like SimHub or DashPanel? I don't know if my Steam Deck could handle much more, but not everyone is power constrained like I am, and getting these tools to work are also very difficult on Linux due to the containerization.

markx86 commented 8 months ago

Thank you for the kind words, I'm glad you found it useful!

I encourage you to do some self-promotion

Honestly, the reason I don't really promote my stuff is that I'm still a student (and not a great one at that) so I don't really find that much time to dedicate to maintaining my projects. I also have quite a few in the works, so keeping up with all of them can be a challenge... But feel free to share it if you found it useful, that's the whole reason I try to keep everything I do open-source :^)

I also have a possible query... Would it be possible to also do a similar script, but for something like SimHub or DashPanel?

I dunno, probably... All this script does is get the game's executable, put it in a Windows' batch script along with the opentrack executable, and then launches that script instead of the game. Not an elegant solution, but it works. You can find all the scripts it generates in the ~/.local/share/opentrack-launcher/scripts.
For example, for the Windows version of ETS2 it would generate the file ~/.local/share/opentrack-launcher/scripts/227302.bat with the contents:

start "" "Z:\path\to\steam\library\steamapps\common\Euro Truck Simulator 2\bin\win_x64\eurotrucks2.exe"
start "" "Z:\home\user\.local\share\opentrack-launcher\install\opentrack.exe"

So I think it could be doable, but I don't know how the software you mentioned works as I don't really have an advanced sim setup (I'm still rocking that G27 I got when I was 15 lol). I could probably generalize the script a little bit to allow it to add other programs to the script... I'll think about it.

Posiris commented 8 months ago

I'm on a G29 so don't feel bad. When I was still using my Windows gaming PC, I was using SimHub to generate a dashboard or virtual button box to display on my phone. If you do play around with it and get it working (I'm by no means good at this stuff), I'd love to know. Thanks again for your help.

Simrealism commented 1 month ago

Hi, I'm having this problem too, I think. I also did as the OP, except I'm doing the non root install not using flatpak: I have followed the steps in the readme and launched ATS. After launching the game, OpenTrack will not launch. I see two terminal windows open and close quickly I double checked and the install, script, and version.txt are inside the opentrack-launcher folder in .local/share. I am running ATS as DirectX 11 and using Proton Experimental. I did reinstall python and p7zip packages as well using pacman -S.

I don't know how to diagnose further

Edit: Solved - I needed to run one of the nvidia xorg settings programs because the config file was borked for whatever reason.