CommitteeOfZero / polyversal-coz-linux-patcher

whose OS runs whose games
MIT License
33 stars 5 forks source link

Invalid file magic number when trying to install a patch on Linux #30

Open ngraham20 opened 1 month ago

ngraham20 commented 1 month ago

Invalid file magic number. The appinfo.vdf version might not be supported by the current version of Protontricks - please check for updates.

polyversal-20240930T095554.log polyversal-20240930T103435.log

Steps to reproduce:

  1. Install Steins;Gate
  2. Select Proton 8.0-5
  3. Start Steins;Gate
  4. When the launcher opens, quit
  5. Download and unzip the latest version of Polyversal (v2_1_3)
  6. Double click Polyversal.desktop
  7. Install a patch
  8. STEINS;GATE
  9. Unable to locate STEINS;GATE's game directory. This likely means you have not yet run and quit the game once to generate its Proton prefix.
  10. The logs state: Invalid file magic number. The appinfo.vdf version might not be supported by the current version of Protontricks - please check for updates.

Alternatively:

  1. ./polyversal install sg
  2. polyversal FATAL - Invalid syntax
39sdev commented 1 month ago

this is an issue with protontricks being outdated.

uninstall your current protontricks & then install the beta flatpak version using:

flatpak remote-add --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo

flatpak install flathub-beta com.github.Matoking.protontricks  
ngraham20 commented 1 month ago

this is an issue with protontricks being outdated.

uninstall your current protontricks & then install the beta flatpak version using:

flatpak remote-add --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo

flatpak install flathub-beta com.github.Matoking.protontricks  

The polyversal script prefers the system package to the flatpak one though, and I'm only 1 minor version behind. Why does this break it?

ngraham20 commented 1 month ago

plus, there's this:

# Protontricks versions earlier than this minversion will cause issues that are hard to make sense of.
readonly ptx_flatpak='com.github.Matoking.protontricks'
readonly ptx_minversion=1.11.0
❯ protontricks --version
protontricks (1.11.1)