Matoking / protontricks

A wrapper that does winetricks things for Proton enabled games, requires Winetricks.
GNU General Public License v3.0
1.56k stars 35 forks source link

Protontricks doesn't open without giving me this error #265

Open Guilherme-html opened 7 months ago

Guilherme-html commented 7 months ago

Protontricks was closed due to the following error:

Traceback (most recent call last): File "/app/lib/python3.11/site-packages/protontricks/cli/util.py", line 149, in wrapper return cli_func(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/lib/python3.11/site-packages/protontricks/cli/main.py", line 241, in main steam_apps = get_steam_apps( ^^^^^^^^^^^^^^^ File "/app/lib/python3.11/site-packages/protontricks/steam.py", line 1268, in get_steam_apps steam_apps += get_custom_compat_tool_installations(steam_root=steam_root) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/lib/python3.11/site-packages/protontricks/steam.py", line 1028, in get_custom_compat_tool_installations for tool_app in get_custom_compat_tool_installations_indir(dir): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/lib/python3.11/site-packages/protontricks/steam.py", line 973, in get_custom_compat_tool_installations_in_dir compat_tools = compat_tools["compatibilitytools"]


KeyError: 'compatibilitytools'

The only thing I can think of is that it mentions /app/... that don't exist in my system
I'm running chimeraos unstable
Guilherme-html commented 7 months ago

WINETRICKS environment variable is not available. Searching from $PATH

it also had this, i forgot to include

Matoking commented 7 months ago

Do you have any custom compatibility tools installed besides the stock Proton? If so, what exactly? They should be found as directories inside both ~/.steam/steam/compatibilitytools.d/ and /usr/share/steam/compatibilitytools.d/.

Protontricks is trying to parse the compatibilitytool.vdf file inside each directory and is crashing due to the missing compatibilitytools. That seems weird, since each compatibility tool should declare that field as far as I know.

Guilherme-html commented 7 months ago

Do you have any custom compatibility tools installed besides the stock Proton? If so, what exactly? They should be found as directories inside both ~/.steam/steam/compatibilitytools.d/ and /usr/share/steam/compatibilitytools.d/.

Protontricks is trying to parse the compatibilitytool.vdf file inside each directory and is crashing due to the missing compatibilitytools. That seems weird, since each compatibility tool should declare that field as far as I know.

There are only the proton files in ~/.steam/steam/compatibilitytools.d/ and only a boxtron.vdf in /usr/share/steam/compatibilitytools.d/

Matoking commented 7 months ago

Is there a compatibilitytool.vdf file in ~/.steam/steam/compatibilitytools.d? If so, what are its contents?

Guilherme-html commented 7 months ago

Is there a compatibilitytool.vdf file in ~/.steam/steam/compatibilitytools.d? If so, what are its contents?

There isn't a compatibilitytool.vdf in the main folder But inside the proton folders there are .vdf files

Matoking commented 7 months ago

Can you try uninstalling Protontricks and then installing the following development version of Protontricks:

$ flatpak install --user https://dl.flathub.org/build-repo/68112/com.github.Matoking.protontricks.flatpakref

The development version has a new -vv that implements more comprehensive logging. Once you've installed the development version, try triggering the error again with the following command:

$ flatpak run com.github.Matoking.protontricks -vv --gui

The log message before the exception should then include the path to the compatibilitytool.vdf file causing the error.