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

Unable to open game data, "invalid magic number" #271

Open DisciplesOfChaos opened 6 months ago

DisciplesOfChaos commented 6 months ago

Describe the bug I launch the GUI, and then click the game I want to modify (trying to get this to work) https://github.com/DrapNard/InfiniteFusion-Launcher

To Reproduce protontricks --gui click game

Expected behavior let me do things

System (please complete the following information):

Additional context

$ protontricks --gui -v
protontricks (INFO): Found Steam directory at /home/okphin/.steam/steam. You can also define Steam directory manually using $STEAM_DIR
protontricks (INFO): Using default Steam Runtime at /home/okphin/.steam/root/ubuntu12_32/steam-runtime
protontricks (INFO): WINETRICKS environment variable is not available. Searching from $PATH.
protontricks (INFO): Found 2 Steam library folders
protontricks (WARNING): Steam library folder /media/okphin/Steamlib/SteamLibrary not found. Protontricks might not have access to the directory.
protontricks (INFO): Currently logged-in Steam user: wardoc999
protontricks (INFO): Found 2 Steam shortcuts running using Steam compatibility tools
protontricks (INFO): Using 'zenity' as GUI provider
Traceback (most recent call last):
  File "/usr/bin/protontricks", line 33, in <module>
    sys.exit(load_entry_point('protontricks==1.7.0', 'console_scripts', 'protontricks')())
  File "/usr/lib/python3/dist-packages/protontricks/cli/main.py", line 28, in cli
    main(args)
  File "/usr/lib/python3/dist-packages/protontricks/cli/util.py", line 143, in wrapper
    return cli_func(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/protontricks/cli/main.py", line 214, in main
    proton_app = find_proton_app(
  File "/usr/lib/python3/dist-packages/protontricks/steam.py", line 624, in find_proton_app
    tool_app = find_steam_compat_tool_app(
  File "/usr/lib/python3/dist-packages/protontricks/steam.py", line 537, in find_steam_compat_tool_app
    tool_appid = get_tool_appid(compat_tool_name, appinfo_path)
  File "/usr/lib/python3/dist-packages/protontricks/steam.py", line 418, in get_tool_appid
    vdf_sections = get_appinfo_sections(appinfo_path)
  File "/usr/lib/python3/dist-packages/protontricks/steam.py", line 385, in get_appinfo_sections
    raise SyntaxError("Invalid file magic number")
SyntaxError: Invalid file magic number
Matoking commented 6 months ago

Protontricks 1.7.0 is old and doesn't support the newer Steam client. If you've installed Protontricks via APT, try uninstalling it and using another installation method instead (eg. Flatpak).