sonic2kk / steamtinkerlaunch

Linux wrapper tool for use with the Steam client for custom launch options and 3rd party programs
GNU General Public License v3.0
2.03k stars 69 forks source link

Can't open games with STL flatpak #1133

Closed DVN196 closed 2 days ago

DVN196 commented 2 days ago

System Information

Issue Description

I am migrating from native steam to flatpak. I installed steam and add my existing games library. I installed STL flatpak. Opening games with STL, nothing appear (Only the notification for first time launch), Steam indicates that the game is running. Without STL, games run normally

Logs

Tue Jul  2 13:42:32 +07 2024 INFO - setflatpak - seems like flatpak is used, because variable 'FLATPAK_ID' exists and points to 'com.valvesoftware.Steam'
Tue Jul  2 13:42:32 +07 2024 SKIP - CompatTool - Steam Home Dir '' not found!
Tue Jul  2 13:42:32 +07 2024 INFO - initAID - Set AID from STEAM_COMPAT_APP_ID to '885910'
Tue Jul  2 13:42:32 +07 2024 INFO - initAID - Set OSCDP to STEAM_COMPAT_DATA_PATH '/Games/steamapps/compatdata/885910'
Tue Jul  2 13:42:32 +07 2024 INFO - main - Current SteamTinkerLaunch working directory is '/Games/steamapps/common/GingaForce'
Tue Jul  2 13:42:32 +07 2024 INFO - loadLanguage - First load the default language 'english' to make sure all variables are filled
Tue Jul  2 13:42:32 +07 2024 INFO - loadLangFile - Language from command line is 'english'
Tue Jul  2 13:42:32 +07 2024 INFO - loadLangFile - SYSTEMSTLCFGDIR is '/app/utils/steamtinkerlaunch/share/steamtinkerlaunch'
Tue Jul  2 13:42:32 +07 2024 INFO - loadLangFile - Command line language 'english' is no file - trying to find its absolute path
Tue Jul  2 13:42:32 +07 2024 INFO - loadLangFile - Loading found system wide /app/utils/steamtinkerlaunch/share/steamtinkerlaunch/lang//english.txt
Tue Jul  2 13:42:32 +07 2024 WARN - updateEditor - 'xdg-open' selected as editor or configured editor not found - trying to find an installed editor installed
Tue Jul  2 13:42:32 +07 2024 INFO - updateEditor - No valid editor found - will fall back to 'xdg-open'.
Tue Jul  2 13:42:32 +07 2024 INFO - loadLanguage - Loading STLLANG from '/home/dvn/.var/app/com.valvesoftware.Steam/.config/steamtinkerlaunch/global.conf'
Tue Jul  2 13:42:32 +07 2024 INFO - loadLanguage - STLLANG from '/home/dvn/.var/app/com.valvesoftware.Steam/.config/steamtinkerlaunch/global.conf' is 'english'
Tue Jul  2 13:42:33 +07 2024 INFO - steamdedeckt - Not on Steam Deck I guess
Tue Jul  2 13:42:33 +07 2024 INFO - setLocalInstall - Looks like we don't have a local non-root install
Tue Jul  2 13:42:33 +07 2024 INFO - updateConfigEntry - Option 'GLOBALCOLLECTIONDIR' is updated with the new value '/app/utils/steamtinkerlaunch/share/steamtinkerlaunch/collections' in config 'global.conf'
Tue Jul  2 13:42:33 +07 2024 INFO - getCurrentCommandline - No Proton in command line arguments 'waitforexitandrun /Games/steamapps/common/GingaForce/GingaForce_x64_Release.exe'
Tue Jul  2 13:42:33 +07 2024 INFO - saveOrgVars - Storing some original variables to restore them later
Tue Jul  2 01:42:33 PM +07 2024 INFO - emptyVars - Emptied some original variables as they slowdown several system calls when started from steam
Tue Jul  2 01:42:33 PM +07 2024 INFO - emptyVars - Set $PATH to '/app/bin:/app/utils/bin:/usr/bin:/app/utils/bin/'
Tue Jul  2 01:42:33 PM +07 2024 START - ######### Initializing Game Launch 885910 using SteamTinkerLaunch v14.0.20240624-1 #########
Tue Jul  2 01:42:33 PM +07 2024 INFO - main - Starting with a clean log
Tue Jul  2 01:42:33 PM +07 2024 INFO - main - Start creating default configs
Tue Jul  2 01:42:33 PM +07 2024 INFO - createDefaultCfgs - START
Tue Jul  2 01:42:34 PM +07 2024 INFO - loadLanguage - First load the default language 'english' to make sure all variables are filled
Tue Jul  2 01:42:34 PM +07 2024 INFO - loadLangFile - Language from command line is 'english'
Tue Jul  2 01:42:34 PM +07 2024 INFO - loadLangFile - GLOBALSTLLANGDIR is '/app/utils/steamtinkerlaunch/share/steamtinkerlaunch/lang'
Tue Jul  2 01:42:34 PM +07 2024 INFO - loadLangFile - Command line language 'english' is no file - trying to find its absolute path
Tue Jul  2 01:42:34 PM +07 2024 INFO - loadLangFile - Loading found system wide /app/utils/steamtinkerlaunch/share/steamtinkerlaunch/lang/english.txt
Tue Jul  2 01:42:34 PM +07 2024 WARN - updateEditor - 'xdg-open' selected as editor or configured editor not found - trying to find an installed editor installed
Tue Jul  2 01:42:34 PM +07 2024 INFO - updateEditor - No valid editor found - will fall back to 'xdg-open'.
Tue Jul  2 01:42:34 PM +07 2024 INFO - loadLanguage - Loading STLLANG from '/home/dvn/.var/app/com.valvesoftware.Steam/.config/steamtinkerlaunch/global.conf'
Tue Jul  2 01:42:34 PM +07 2024 INFO - loadLanguage - STLLANG from '/home/dvn/.var/app/com.valvesoftware.Steam/.config/steamtinkerlaunch/global.conf' is 'english'
Tue Jul  2 01:42:34 PM +07 2024 INFO - createDefaultCfgs - setSteamPaths:
Tue Jul  2 01:42:34 PM +07 2024 INFO - setSteamPaths - Reading Steam Path variables from '/dev/shm/steamtinkerlaunch/steampaths.txt'
Tue Jul  2 01:42:34 PM +07 2024 WARN - updateEditor - 'xdg-open' selected as editor or configured editor not found - trying to find an installed editor installed
Tue Jul  2 01:42:34 PM +07 2024 INFO - updateEditor - No valid editor found - will fall back to 'xdg-open'.
Tue Jul  2 01:42:34 PM +07 2024 INFO - getGameOS - Starting game OS detection
Tue Jul  2 01:42:34 PM +07 2024 INFO - getGameOS - Making some checks on '/Games/steamapps/common/GingaForce/GingaForce_x64_Release.exe' to determine the OS version of the game
Tue Jul  2 01:42:34 PM +07 2024 INFO - getGameOS - Looks like this is a Windows game!
Tue Jul  2 01:42:34 PM +07 2024 INFO - setWin - 'GingaForce_x64_Release' determined to be a Windows Game
Tue Jul  2 01:42:34 PM +07 2024 INFO - createDefaultCfgs - createProtonList:
Tue Jul  2 01:42:34 PM +07 2024 INFO - createDefaultCfgs - createProtonList end
Tue Jul  2 01:42:34 PM +07 2024 INFO - listAllSettingsEntries - '/dev/shm/steamtinkerlaunch/setentries.txt' already exists - nothing to do
Tue Jul  2 01:42:34 PM +07 2024 INFO - createDefaultCfgs - STOP
Tue Jul  2 01:42:34 PM +07 2024 SKIP - listSteamLibraries - not recreating already available '/dev/shm/steamtinkerlaunch/SteamLibraries.txt'
Tue Jul  2 01:42:35 PM +07 2024 INFO - setSteamLibraryPaths - STEAM_COMPAT_LIBRARY_PATHS set to '/Games/steamapps:/home/dvn/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps'
Tue Jul  2 01:42:35 PM +07 2024 INFO - setSteamLibraryPaths - STEAM_COMPAT_MOUNTS set to '/home/dvn/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Steamworks Shared:/Games/steamapps/common/SteamLinuxRuntime_sniper:/Games/steamapps/common/SteamLinuxRuntime_soldier'
Tue Jul  2 01:42:35 PM +07 2024 INFO - setSteamLibraryPaths - STEAM_COMPAT_TOOL_PATHS set to '/Games/steamapps/common/SteamLinuxRuntime_sniper:/Games/steamapps/common/SteamLinuxRuntime_soldier:/home/dvn/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Steamworks Shared'
Tue Jul  2 01:42:35 PM +07 2024 INFO - main - Checking internal dependencies:
Tue Jul  2 01:42:35 PM +07 2024 INFO - setAwkBin - Found 'gawk' as an 'awk' variant. It should work without any issues, because 'gawk' was tested completely
Tue Jul  2 01:42:35 PM +07 2024 INFO - checkIntDeps - Result of version check for yad binary '/app/utils/bin/yad' is '14.0'
Tue Jul  2 01:42:35 PM +07 2024 INFO - checkIntDeps - Yad is set correctly in the Global Config, nothing to do.
Tue Jul  2 01:42:35 PM +07 2024 INFO - main - Initializing first Proton:
Tue Jul  2 01:42:35 PM +07 2024 INFO - initOldProtonArr - Creating an initial array with available Proton versions using the file '/dev/shm/steamtinkerlaunch/ProtonCSV.txt' which was created during a previous run
Tue Jul  2 01:42:35 PM +07 2024 INFO - initFirstProton - Initializing Proton
Tue Jul  2 01:42:35 PM +07 2024 INFO - initFirstProton - Initial Proton version 'FIRSTUSEPROTON' from '/home/dvn/.var/app/com.valvesoftware.Steam/.config/steamtinkerlaunch/default_template.conf' is 'proton-9.0-2b'
Tue Jul  2 01:42:35 PM +07 2024 INFO - main - Initializing default window resolution
Tue Jul  2 01:42:35 PM +07 2024 INFO - setInitWinXY - Using '1440x810' from config '/dev/shm/steamtinkerlaunch/defres.txt'
Tue Jul  2 01:42:35 PM +07 2024 INFO - main - Welcome to SteamTinkerLaunch
Tue Jul  2 01:42:35 PM +07 2024 INFO - removeEmptyFiles - Removing empty files from '/home/dvn/.var/app/com.valvesoftware.Steam/.config/steamtinkerlaunch/games/appinfo'
Tue Jul  2 01:42:35 PM +07 2024 INFO - removeEmptyFiles - Removing empty files from '/home/dvn/.var/app/com.valvesoftware.Steam/.config/steamtinkerlaunch/games/header'
Tue Jul  1 01:42:35 PM +07 2024 INFO - main - Checking command line: incoming arguments 'waitforexitandrun /Games/steamapps/common/GingaForce/GingaForce_x64_Release.exe'
Tue Jul  2 01:42:35 PM +07 2024 INFO - main - Checking command line: first argument 'waitforexitandrun'
Tue Jul  2 01:42:35 PM +07 2024 SKIP - getGameOS - ISGAME is already set to '2' - nothing to determine
Tue Jul  2 01:42:35 PM +07 2024 INFO - setGameVars - No SLR is in launch option
Tue Jul  2 01:42:35 PM +07 2024 INFO - linkLog - Set symlink from '/home/dvn/.var/app/com.valvesoftware.Steam/.config/steamtinkerlaunch/logs/steamtinkerlaunch/id/885910.log' to '/home/dvn/.var/app/com.valvesoftware.Steam/.config/steamtinkerlaunch/logs/steamtinkerlaunch/title/GingaForce.log'
Tue Jul  2 01:42:35 PM +07 2024 WARN - updateEditor - 'xdg-open' selected as editor or configured editor not found - trying to find an installed editor installed
Tue Jul  2 01:42:35 PM +07 2024 INFO - updateEditor - No valid editor found - will fall back to 'xdg-open'.
Tue Jul  2 01:42:35 PM +07 2024 START - ######### Game Launch: Ginga Force (885910) #########
Tue Jul  2 01:42:35 PM +07 2024 INFO - dlCheck - Downloading picture for game '885910'
Tue Jul  2 01:42:35 PM +07 2024 INFO - notiShow - Message 'Downloading '/home/dvn/.var/app/com.valvesoftware.Steam/.config/steamtinkerlaunch/games/header/885910.jpg'' should go to StatusWindow
Tue Jul  2 01:42:35 PM +07 2024 INFO - dlCheck - 'wget -q https://steamcdn-a.akamaihd.net/steam/apps/885910/header.jpg -O /home/dvn/.var/app/com.valvesoftware.Steam/.config/steamtinkerlaunch/games/header/885910.jpg'
Tue Jul  2 01:42:36 PM +07 2024 INFO - getGameName - Using 'GN' as Game Name: 'GingaForce'
Tue Jul  2 01:42:36 PM +07 2024 INFO - getGameName - Outgoing game name is 'GingaForce'
Tue Jul  2 01:42:36 PM +07 2024 INFO - writeDesktopFile - Creating '/home/dvn/.var/app/com.valvesoftware.Steam/.config/steamtinkerlaunch/games/desktop/885910.desktop' for 'GingaForce' (885910)
Tue Jul  2 01:42:36 PM +07 2024 INFO - prepareLaunch - Game launch args '/Games/steamapps/common/GingaForce/GingaForce_x64_Release.exe'
Tue Jul  2 01:42:36 PM +07 2024 INFO - prepareLaunch - Gamedir '/Games/steamapps/common/GingaForce'
Tue Jul  2 01:42:36 PM +07 2024 INFO - prepareLaunch - Proton wineprefix '/Games/steamapps/compatdata/885910/pfx'
Tue Jul  2 01:42:36 PM +07 2024 INFO - prepareLaunch -------------------
Tue Jul  2 01:42:36 PM +07 2024 INFO - prepareLaunch - CreateGameCfg:
Tue Jul  2 01:42:36 PM +07 2024 INFO - updateConfigEntry - Emptying 'CUSTOMCMD' for '/home/dvn/.var/app/com.valvesoftware.Steam/.config/steamtinkerlaunch/default_template.conf'
Tue Jul  2 01:42:36 PM +07 2024 INFO - getGameName - Using 'GN' as Game Name: 'GingaForce'
Tue Jul  2 01:42:36 PM +07 2024 INFO - getGameName - Outgoing game name is 'GingaForce'
Tue Jul  2 01:42:36 PM +07 2024 INFO - linkGameCfg - Set symlink from '/home/dvn/.var/app/com.valvesoftware.Steam/.config/steamtinkerlaunch/gamecfgs/id/885910.conf' to '/home/dvn/.var/app/com.valvesoftware.Steam/.config/steamtinkerlaunch/gamecfgs/title/GingaForce.conf'
Tue Jul  2 01:42:36 PM +07 2024 INFO - prepareLaunch - First LoadCfg: /home/dvn/.var/app/com.valvesoftware.Steam/.config/steamtinkerlaunch/gamecfgs/id/885910.conf
Tue Jul  2 01:42:36 PM +07 2024 INFO - loadCfg - '/home/dvn/.var/app/com.valvesoftware.Steam/.config/steamtinkerlaunch/gamecfgs/id/885910.conf' START
Tue Jul  2 01:42:36 PM +07 2024 INFO - loadCfg - Loading game config '/home/dvn/.var/app/com.valvesoftware.Steam/.config/steamtinkerlaunch/gamecfgs/id/885910.conf'
Tue Jul  2 01:42:36 PM +07 2024 INFO - migrateCfgOption - File '/home/dvn/.var/app/com.valvesoftware.Steam/.config/steamtinkerlaunch/dxvk/885910.conf' does not exist - nothing to do
Tue Jul  2 01:42:36 PM +07 2024 INFO - loadCfg - '/home/dvn/.var/app/com.valvesoftware.Steam/.config/steamtinkerlaunch/gamecfgs/id/885910.conf' STOP
sonic2kk commented 2 days ago

Were you able to resolve this? I am not seeing anything sticking out from the log, but if you got it resolved a comment on how you did it could help others in future :-)

If you still need help, feel free to re-open. You might also want to open an issue over on the Flathub repo. Flatpak SteamTinkerLaunch's packaging is maintained separately to this repo (dependencies, installation, etc), although the code that checks for and makes adjustments to work around Flatpak limitations is in the codebase here. So the Flatpak isn't a separate SteamTinkerLaunch project but does have so e quirks that may need to be raised over on the Flathub repo sometimes.

VietDungNguyenHolistics commented 7 hours ago

Sorry, after I submitted the issue. Suddenly it work, but now it doesn't work again.

I met these issues:

It seems I cannot re-open the issue

sonic2kk commented 6 hours ago

I cannot launch STL when I enabled Cloudflare Warp (I think it is network issue? Does STL fetch anything on startup?)

STL does try to download some things, but nothing that should prevent startup. Check the log file for more information on a failed run but some people using exotic network configurations have issues accessing GitHub via scripts in general including with SteamTinkerLaunch.

If you want to attach the log, please do so by attaching it as a file and not by pasting text.

Right now I cannot fork custom command (textractor.exe): Yesterday, it works, I just need to enable "Keep STL open".

It sounds like a Wine issue more than anything else. In the vast majority of cases, issues with custom commands are caused by Wine/Proton compatibility issues or configuration issues.

You can optionally try disabling using the Steam Linux Runtime with your Custom Command, or alternatively if you do not have the Steam Linux Runtime required by the Proton version you are using, you can install it. There is a button on the Main Menu that will send the download request for the relevant Steam Linux Runtime AppID. Due to Steam limitations this cannot be done silently, so after clicking the button on the Main Menu you will have to follow the prompt inside of Steam to install it.

Today, it is not very stable. When I open the game, sometimes it only shows the custom program and STL menu, sometimes it only shows STL menu and the game

It should never show SteamTinkerLaunch and the Custom Command or SteamTinkerLaunch and the game together. There is never a case where this should happen.

If you are having issues getting your game and the custom command to run together, you can try using Fork OR Inject, and adjusting the delay for each - You cannot use both together, but the delay will control when the game/custom command starts, as sometimes you need one to start before the other.

On SteamOS Valve are very restrictive about multiple processes running in the same prefix, but historically this has not applied to the Linux Desktop, and doesn't apply to the native Steam Client on Arch Linux as of a couple days ago (I have ran custom commands and games together with the fork option).

It seems I cannot re-open the issue

This is because the account you replied with is different from the account you opened the issue with. :slightly_smiling_face:


Given that things are playing up for you, this seems like a system issue. Some users have had bad installs of the Steam Flatpak (given that it is not maintained or supported by Valve) that have resulted in various issues with and without SteamTinkerLaunch.

I am more inclined to say this is a system issue / Wine issue more than a SteamTinkerLaunch issue because I don't see why things would be this flaky...