shinyquagsire23 / OpenJKDF2

A cross-platform reimplementation of JKDF2 in C
Other
487 stars 38 forks source link

Linux Flatpak version not detecting installation #322

Open TheCypher1 opened 2 months ago

TheCypher1 commented 2 months ago

I am having two issues with the Linux Flatpak version. The Flatpak is installed, however when it doesn't detect the installation files, it asks if I want to install, then asks me to point to existing installation, however it crashes when I press the "install" button. It does provide the path where it expects the installation, so I placed it there manually and it still doesn't detect the installation.

For reference, I'm on Linux Mint 20.3 and I'm using the GOG version of the game.

AsureDawn commented 1 month ago

The flatpak on flathub doesn't have any filesystem access (according to the flathub website), so it probably crashes because it attempted to access a directory which it wasn't allowed.

I was able to get it to work by manually copying the files to the resource and episode subdirectories in ~/.var/app/org.openjkdf2.OpenJKDF2/data/OpenJKDF2/openjkdf2. You can also create a MUSIC directory in there and copy the music if you like. I had to rename some of the files because the expected names had different lettercase, mostly the extensions were wrong iirc.

Or you can try addeding filesystem access to the directory containing the game resources, kde has a flatpak kmod which can do that, or there's also a program on flathub (forget the name). But it's probably easier to copy the files.

TheCypher1 commented 1 month ago

The flatpak on flathub doesn't have any filesystem access (according to the flathub website), so it probably crashes because it attempted to access a directory which it wasn't allowed.

I was able to get it to work by manually copying the files to the resource and episode subdirectories in ~/.var/app/org.openjkdf2.OpenJKDF2/data/OpenJKDF2/openjkdf2. You can also create a MUSIC directory in there and copy the music if you like. I had to rename some of the files because the expected names had different lettercase, mostly the extensions were wrong iirc.

Or you can try addeding filesystem access to the directory containing the game resources, kde has a flatpak kmod which can do that, or there's also a program on flathub (forget the name). But it's probably easier to copy the files.

As a temporary thing, I ended up just downloading the Windows version of OpenJKDF2 and running it under Wine which worked perfectly but it would be nice to get the Linux version working ON Linux. I saw a YouTube video of a guy running the Linux version in a different distro, and I think on KDE and it allowed him to select the file path so maybe it's just a Mint/MATE thing? Idk, I'm gonna go back and try the manual filepath thing as there may be an issue with the case sensitive or extension stuff.

Thanks