AM2R-Community-Developers / AM2RLauncher

Host respository for the AM2RLauncher.
GNU General Public License v3.0
343 stars 19 forks source link

AM2R does not launch or install via Flatpak #33

Closed ghost closed 1 year ago

ghost commented 1 year ago

Describe the bug AM2R does not launch on arch linux using the flatpak, the launcher itself works fine.

Expected behavior well, it should open.

Screenshots image

Platform

AM2RLauncher.log

Miepee commented 1 year ago

Few things: A) Can you upload a log for the game itself? (~/.config/AM2R/logs) B) Can you launch the AppImage normally, without it erroring? (In the launcher, go to Mod settings, and click on "open data directory" or similar)

ghost commented 1 year ago

Community Updates (Latest).txt

here is the log, pretty empty. and i cannot lunch the appimage normally

Miepee commented 1 year ago

Pretty empty indeed. What happens if you launch the AppImage in a terminal, do you see any errors?

ghost commented 1 year ago

image

sorry its in italian, but well, it says that on line 27: /tmp/.mount_AM2R.AqI85Wd/AppRun-game: file or directory does not exist

Miepee commented 1 year ago

(Hint for future: you can use the LANG=C environment variable to enforce english locale) Can you check if you have fuse installed? sudo pacman -Qs fuse

ghost commented 1 year ago

i do have fuse installed , yep

also thanks for the tip.

Miepee commented 1 year ago

Fuse2 or fuse3? Also, check please if you have multilib enabled: https://wiki.archlinux.org/title/Official_repositories#multilib

ghost commented 1 year ago

i do have multilib enabled, and i do have both fuse2 and 3

Miepee commented 1 year ago

Hmm, that's strange. Usually the file not found error only appears either if fuse does not exist, or if multilib / the 32-bit packages aren't locally installed.

ghost commented 1 year ago

ok so, i reinstalled the 32bit packages out of curiosity, and the appimage launches, though, the flatpak version does not work anyways.

Miepee commented 1 year ago

Well, that's slight improvement at least. Does KDE show any error when trying to click "play" in the flatpak launcher? Also, this may sound really dumb, but have you tried restarting your machine yet?

ghost commented 1 year ago

does not show any error, it just closes the launcher, and opens it again. and no i did not try that, ill try now though

ghost commented 1 year ago

i did try rebooting my pc, still wont work

Miepee commented 1 year ago

Unfortunately, launching AppImages within Flatpaks is a bit of a hack. I have an idea to solve it, but it'd need to wait until 2.3.0.

Miepee commented 1 year ago

@SingleSlice in case you're interested in testing, there's a current WIP in master to fix that issue. You can install a flatpak test build with the instructions on this pull request at the very bottom. https://github.com/flathub/io.github.am2r_community_developers.AM2RLauncher/pull/1

dylan10182000 commented 1 year ago

Yeah I'm having the same issue. Also on Arch using KDE Plasma. The linked PR isn't installing either. Just gives a 404 error.

Miepee commented 1 year ago

I need testing on that PR since that'll likely be the solution we'll use going forwards. What exactly gives a 404 error, following the instructions from here? https://github.com/flathub/io.github.am2r_community_developers.AM2RLauncher/pull/1#issuecomment-1247090260

EDIT: I just reprod, gimme a sec to see if I can resolve it.

Miepee commented 1 year ago

New build commissioned, available here for now https://github.com/flathub/io.github.am2r_community_developers.AM2RLauncher/pull/1#issuecomment-1260485080

I forgot that these are only available for 5 days, before they get revoked. If someone wants to test those builds again and they're not available / 404, just ping me here or in the Pull Request there.