an-anime-team / an-anime-game-launcher

An Anime Game launcher for Linux with telemetry disabling
https://discord.gg/ck37X6UWBp
GNU General Public License v3.0
1.57k stars 66 forks source link

Unable to complete installation via Flatpak #141

Closed atomicptr closed 1 year ago

atomicptr commented 1 year ago

When trying to install the Flatpak version of the launcher I get greeted by this lovely message at the "Download components" section

image image

Here is the log output:

  2023-04-24T05:47:08.793822Z  INFO anime_game_launcher: Starting application (3.5.2)
    at src/main.rs:123

  2023-04-24T05:47:08.855714Z DEBUG anime_launcher_sdk::config: Reading config data from file
    at /run/build/aagl/cargo/vendor/anime-launcher-sdk/src/config/mod.rs:41

  2023-04-24T05:47:08.855831Z  INFO anime_game_launcher: Set UI language to en-US
    at src/main.rs:173

  2023-04-24T05:47:08.858283Z  INFO anime_game_launcher::ui::first_run::main: Initializing first run window
    at src/ui/first_run/main.rs:129

  2023-04-24T05:47:08.861879Z  INFO anime_game_launcher::ui::first_run::main: First run window initialized. App is ready
    at src/ui/first_run/main.rs:181

  2023-04-24T05:47:10.408475Z DEBUG anime_game_launcher::ui::first_run::main: Called first run window event: ScrollToTosWarning
    at src/ui/first_run/main.rs:187
    in relm4::component::sync::builder::update_with_view with input: ScrollToTosWarning, component: "anime_game_launcher::ui::first_run::main::FirstRunApp", id: "0x7fffaf83be18"

  2023-04-24T05:47:10.943010Z TRACE anime_launcher_sdk: Checking package availability
    at /run/build/aagl/cargo/vendor/anime-launcher-sdk/src/lib.rs:31
    in anime_launcher_sdk::is_available with binary: "git"
    in relm4::component::r#async::builder::update_with_view with input: Continue, component: "anime_game_launcher::ui::first_run::tos_warning::TosWarningApp", id: "0x7fffaf83c730"

  2023-04-24T05:47:10.943437Z TRACE anime_launcher_sdk: return: true
    at /run/build/aagl/cargo/vendor/anime-launcher-sdk/src/lib.rs:29
    in anime_launcher_sdk::is_available with binary: "git"
    in relm4::component::r#async::builder::update_with_view with input: Continue, component: "anime_game_launcher::ui::first_run::tos_warning::TosWarningApp", id: "0x7fffaf83c730"

  2023-04-24T05:47:10.943466Z TRACE anime_launcher_sdk: Checking package availability
    at /run/build/aagl/cargo/vendor/anime-launcher-sdk/src/lib.rs:31
    in anime_launcher_sdk::is_available with binary: "xdelta3"
    in relm4::component::r#async::builder::update_with_view with input: Continue, component: "anime_game_launcher::ui::first_run::tos_warning::TosWarningApp", id: "0x7fffaf83c730"

  2023-04-24T05:47:10.943768Z TRACE anime_launcher_sdk: return: true
    at /run/build/aagl/cargo/vendor/anime-launcher-sdk/src/lib.rs:29
    in anime_launcher_sdk::is_available with binary: "xdelta3"
    in relm4::component::r#async::builder::update_with_view with input: Continue, component: "anime_game_launcher::ui::first_run::tos_warning::TosWarningApp", id: "0x7fffaf83c730"

  2023-04-24T05:47:10.943840Z DEBUG anime_game_launcher::ui::first_run::main: Called first run window event: ScrollToDefaultPaths
    at src/ui/first_run/main.rs:187
    in relm4::component::sync::builder::update_with_view with input: ScrollToDefaultPaths, component: "anime_game_launcher::ui::first_run::main::FirstRunApp", id: "0x7fffaf83be18"

  2023-04-24T05:47:11.791825Z DEBUG anime_launcher_sdk::config: Updating config data
    at /run/build/aagl/cargo/vendor/anime-launcher-sdk/src/config/mod.rs:66
    in relm4::component::r#async::builder::update_with_view with input: Continue, component: "anime_game_launcher::ui::first_run::default_paths::DefaultPathsApp", id: "0x7fffaf83c5a0"

  2023-04-24T05:47:11.792097Z DEBUG anime_game_launcher::ui::first_run::main: Called first run window event: ScrollToSelectVoiceovers
    at src/ui/first_run/main.rs:187
    in relm4::component::sync::builder::update_with_view with input: ScrollToSelectVoiceovers, component: "anime_game_launcher::ui::first_run::main::FirstRunApp", id: "0x7fffaf83be18"

  2023-04-24T05:47:12.553725Z DEBUG anime_launcher_sdk::config: Updating config data
    at /run/build/aagl/cargo/vendor/anime-launcher-sdk/src/config/mod.rs:66
    in relm4::component::r#async::builder::update_with_view with input: Continue, component: "anime_game_launcher::ui::first_run::select_voiceovers::SelectVoiceoversApp", id: "0x7fffaf83c730"

  2023-04-24T05:47:12.553941Z DEBUG anime_game_launcher::ui::first_run::main: Called first run window event: ScrollToDownloadComponents
    at src/ui/first_run/main.rs:187
    in relm4::component::sync::builder::update_with_view with input: ScrollToDownloadComponents, component: "anime_game_launcher::ui::first_run::main::FirstRunApp", id: "0x7fffaf83be18"

  2023-04-24T05:47:12.554166Z TRACE anime_game_core::traits::git_sync: Checking local repository sync state: "/home/christopher/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/components"
    at /run/build/aagl/cargo/vendor/anime-game-core/src/traits/git_sync.rs:21

  2023-04-24T05:47:12.554224Z TRACE anime_game_core::traits::git_sync: Checking local repository sync state. Folder: "/home/christopher/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/components". Remote: https://github.com/an-anime-team/components
    at /run/build/aagl/cargo/vendor/anime-game-core/src/traits/git_sync.rs:40

  2023-04-24T05:47:12.554283Z DEBUG anime_game_launcher::ui::first_run::main: Called first run window event: SetLoadingStatus(Some(Some("Updating components index")))
    at src/ui/first_run/main.rs:187
    in relm4::component::sync::builder::update_with_view with input: SetLoadingStatus(Some(Some("Updating components index"))), component: "anime_game_launcher::ui::first_run::main::FirstRunApp", id: "0x7fffaf83be18"

  2023-04-24T05:47:13.213301Z DEBUG anime_launcher_sdk::components::loader: Getting wine versions
    at /run/build/aagl/cargo/vendor/anime-launcher-sdk/src/components/loader.rs:12
    in anime_launcher_sdk::components::loader::get_wine_versions with index: "/home/christopher/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/components"
    in anime_launcher_sdk::components::loader::get_wine_versions with self: ComponentsLoader { folder: "/home/christopher/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/components" }
    in relm4::component::r#async::builder::update_with_view with input: UpdateVersionsLists, component: "anime_game_launcher::ui::first_run::download_components::DownloadComponentsApp", id: "0x7fffaf83c468"

  2023-04-24T05:47:13.213577Z DEBUG anime_launcher_sdk::components::loader: Getting dxvk versions
    at /run/build/aagl/cargo/vendor/anime-launcher-sdk/src/components/loader.rs:82
    in anime_launcher_sdk::components::loader::get_dxvk_versions with index: "/home/christopher/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/components"
    in anime_launcher_sdk::components::loader::get_dxvk_versions with self: ComponentsLoader { folder: "/home/christopher/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/components" }
    in relm4::component::r#async::builder::update_with_view with input: UpdateVersionsLists, component: "anime_game_launcher::ui::first_run::download_components::DownloadComponentsApp", id: "0x7fffaf83c468"

  2023-04-24T05:47:13.214766Z DEBUG anime_game_launcher::ui::first_run::main: Called first run window event: SetLoadingStatus(None)
    at src/ui/first_run/main.rs:187
    in relm4::component::sync::builder::update_with_view with input: SetLoadingStatus(None), component: "anime_game_launcher::ui::first_run::main::FirstRunApp", id: "0x7fffaf83be18"

  2023-04-24T05:47:26.360833Z  INFO anime_game_launcher::ui::first_run::download_components: Installing wine: lutris-GE-Proton7-43-x86_64
    at src/ui/first_run/download_components.rs:375

  2023-04-24T05:47:26.360979Z TRACE minreq::connection: Setting up TLS parameters for github.com.
    at /run/build/aagl/cargo/vendor/minreq-2.7.0/src/connection.rs:167

  2023-04-24T05:47:26.361741Z TRACE minreq::connection: Establishing TCP connection to github.com.
    at /run/build/aagl/cargo/vendor/minreq-2.7.0/src/connection.rs:175

  2023-04-24T05:47:26.362624Z TRACE minreq::connection: Timeout requested, it is currently: Ok(Some(3.998241835s))
    at /run/build/aagl/cargo/vendor/minreq-2.7.0/src/connection.rs:154

  2023-04-24T05:47:26.469885Z TRACE minreq::connection: Establishing TLS session to github.com.
    at /run/build/aagl/cargo/vendor/minreq-2.7.0/src/connection.rs:179

  2023-04-24T05:47:26.469912Z TRACE minreq::connection: Writing HTTPS request to github.com.
    at /run/build/aagl/cargo/vendor/minreq-2.7.0/src/connection.rs:181

  2023-04-24T05:47:26.469945Z TRACE minreq::connection: Timeout requested, it is currently: Ok(Some(3.890918874s))
    at /run/build/aagl/cargo/vendor/minreq-2.7.0/src/connection.rs:154

  2023-04-24T05:47:26.522996Z TRACE minreq::connection: Reading HTTPS response from github.com.
    at /run/build/aagl/cargo/vendor/minreq-2.7.0/src/connection.rs:186

  2023-04-24T05:47:26.865860Z DEBUG minreq::connection: Redirecting (302) to: https://objects.githubusercontent.com/github-production-release-asset-2e65be/223100333/e321595e-229b-44aa-b2dd-d52eac6248f0?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230424%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230424T054726Z&X-Amz-Expires=300&X-Amz-Signature=8acce0fd592811d560acf79d470beedc9e971a9f2a4688f1552c8f30d91e7050&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=223100333&response-content-disposition=attachment%3B%20filename%3Dwine-lutris-GE-Proton7-43-x86_64.tar.xz&response-content-type=application%2Foctet-stream
    at /run/build/aagl/cargo/vendor/minreq-2.7.0/src/connection.rs:353

  2023-04-24T05:47:26.866154Z TRACE minreq::connection: Setting up TLS parameters for objects.githubusercontent.com.
    at /run/build/aagl/cargo/vendor/minreq-2.7.0/src/connection.rs:167

  2023-04-24T05:47:26.866278Z TRACE minreq::connection: Establishing TCP connection to objects.githubusercontent.com.
    at /run/build/aagl/cargo/vendor/minreq-2.7.0/src/connection.rs:175

  2023-04-24T05:47:26.867067Z TRACE minreq::connection: Timeout requested, it is currently: Ok(Some(3.493799458s))
    at /run/build/aagl/cargo/vendor/minreq-2.7.0/src/connection.rs:154

  2023-04-24T05:47:26.897242Z TRACE minreq::connection: Establishing TLS session to objects.githubusercontent.com.
    at /run/build/aagl/cargo/vendor/minreq-2.7.0/src/connection.rs:179

  2023-04-24T05:47:26.897284Z TRACE minreq::connection: Writing HTTPS request to objects.githubusercontent.com.
    at /run/build/aagl/cargo/vendor/minreq-2.7.0/src/connection.rs:181

  2023-04-24T05:47:26.897294Z TRACE minreq::connection: Timeout requested, it is currently: Ok(Some(3.463570807s))
    at /run/build/aagl/cargo/vendor/minreq-2.7.0/src/connection.rs:154

  2023-04-24T05:47:26.930986Z TRACE minreq::connection: Reading HTTPS response from objects.githubusercontent.com.
    at /run/build/aagl/cargo/vendor/minreq-2.7.0/src/connection.rs:186

  2023-04-24T05:47:27.199019Z TRACE anime_game_core::installer::installer: Checking free space availability
    at /run/build/aagl/cargo/vendor/anime-game-core/src/installer/installer.rs:84
    in anime_game_core::installer::installer::install with self: Installer { downloader: Downloader { uri: "https://github.com/GloriousEggroll/wine-ge-custom/releases/download/GE-Proton7-43/wine-lutris-GE-Proton7-43-x86_64.tar.xz", length: Some(90982276), chunk_size: 131072, continue_downloading: true }, temp_folder: "/home/christopher/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher" }, unpack_to: "/home/christopher/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/runners"

  2023-04-24T05:47:27.200613Z ERROR anime_game_launcher::ui::first_run::download_components: Failed to download wine: Path is not mounted: "/home/christopher/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/wine-lutris-GE-Proton7-43-x86_64.tar.xz"
    at src/ui/first_run/download_components.rs:389
    in anime_game_core::installer::installer::install with self: Installer { downloader: Downloader { uri: "https://github.com/GloriousEggroll/wine-ge-custom/releases/download/GE-Proton7-43/wine-lutris-GE-Proton7-43-x86_64.tar.xz", length: Some(90982276), chunk_size: 131072, continue_downloading: true }, temp_folder: "/home/christopher/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher" }, unpack_to: "/home/christopher/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/runners"

  2023-04-24T05:47:27.202219Z ERROR anime_game_launcher::ui::components::progress_bar: Downloading error: PathNotMounted("/home/christopher/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/wine-lutris-GE-Proton7-43-x86_64.tar.xz")
    at src/ui/components/progress_bar.rs:168
    in relm4::component::r#async::builder::update_with_view with input: UpdateFromState(InstallerUpdate(DownloadingError(PathNotMounted("/home/christopher/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/wine-lutris-GE-Proton7-43-x86_64.tar.xz")))), component: "anime_game_launcher::ui::components::progress_bar::ProgressBar", id: "0x7fffaf83c760"

  2023-04-24T05:47:27.202273Z DEBUG anime_game_launcher::ui::first_run::main: Called first run window event: Toast { title: "Failed to download wine", description: Some("Path is not mounted: \"/home/christopher/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/wine-lutris-GE-Proton7-43-x86_64.tar.xz\"") }
    at src/ui/first_run/main.rs:187
    in relm4::component::sync::builder::update_with_view with input: Toast { title: "Failed to download wine", description: Some("Path is not mounted: \"/home/christopher/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/wine-lutris-GE-Proton7-43-x86_64.tar.xz\"") }, component: "anime_game_launcher::ui::first_run::main::FirstRunApp", id: "0x7fffaf83be18"

I tried removing the folder in .var/app/moe.launcher.an-anime-game-launcher, creating some directories for fun etc. which obviously didn't help. I checked if the .first-run file is present (which it is). Several different wine/dxvk versions etc. I found some somewhat similar issues (Path is not mounted) which are usually related to problems using multiple storage devices which I don't have either.

I found some other people in the Discord having a similar issue and some recommendations to "Enable System File Access" which sadly didn't work either (although this sounds like again a problem related to having multiple storage devices).

System information in case that is of interest:

Distro: Fedora Silverblue 38 Kernel 6.2.11 CPU: Ryzen 9 6900HS GPU Radeon 680M / Radeon RX 6650 XT RAM 32GB

Next I tried to get past the wine installation phase by doing that step via the binary (which I have to run through distrobox...), this got me to the "Download" (game) step which sadly also doesn't work due to not being able to mount the path. Doing this step via the binary seems to work though? I'm using a ton of Flatpaks (since its Silverblue) and haven't encountered this problem in any other one yet, funnily enough I had a similar issue before when the GTK launcher was still new-ish and resolved this by using the neutralino launcher (which supposedly performs very similar operations? Yet it works?). This seems like a really weird issue :sweat_smile:.

Mar0xy commented 1 year ago

I agree this seems really bizarre considering the fact that the path it provides is the default flatpak path which should work ootb.

Sadly I don't know the extend of what's going on as the other people in the discord have this issue only when they actually use a different path cause they didn't give perms to the flatpak as you hinted with "Enable system file access"

Krypton is also using sliverblue and has no issues so I think there might just generally be something really fucky going on in the background here.

Mar0xy commented 1 year ago

We just had someone who also had an issue with flatpak perms. did you provide the --user flag during install of the flatpak and the flatpak repo? if so try without or if you did you might have forgotten to provide it in one of the two steps which would cause perm issues.

atomicptr commented 1 year ago

I just tried re-installing it with --user flag and once without although this did not change anything. I have tried to reproduce this in a VM but without success so far, I did have this issue with two installations on this system so far so I don't think reinstalling would fix this either :)... The thing that baffles me however is that this project (well technically the honkers starrail launcher has the same problem but its the same program mostly) is seemingly the only program that doesn't work in this setup.

Mar0xy commented 1 year ago

They are actually the same all launchers use anime-game-(sdk,core) the only differences is the UI and ofc different paths and urls and ways the patch gets applied. Like you said already it is not at all reproducable for neither krypton nor me when I try it in a VM so this seems to really at the end be related to this setup which is straight up bizzare. One solution I have in mind is installing Arch through distrobox, install the launcher from aur and then try to run the launcher/game through that as distrobox can run games which I think toolbox could aswell but I am not sure as I never used toolbox

quazar-omega commented 1 year ago

One solution I have in mind is installing Arch through distrobox

What a coincidence, was trying exactly that now! The launcher installs fine, but now I've been three days trying to download the game due to my slow internet (and the huge ~50GB, but can't complain about that tbh), the download sometimes just hangs with the following error:

minreq error: Connection reset by peer (os error 104)

So then I close the app and start the download again, it seems to work fine and it picks up from where it left off, now I got to 7GB/10GB in the last download, hanged again, did the same usual restart now and I'll see if it finishes and I can finally start it up this afternoon so I can report back.

I hate my internet so much (╥ ⌓ ╥)

quazar-omega commented 1 year ago

Update: clicking on "Apply patch" fails with

ERROR anime_game_launcher::ui::main::apply_patch: Failed to patch the game
    at src/ui/main/apply_patch.rs:23

And this dialog window Screenshot_20230503_143213

Any suggestions?

Mar0xy commented 1 year ago

Any suggestions?

@quazar-omega that error appears if it couldn't find/access the game directory or patch directory

PS: the minreq issue during download happens due to it using rusttls and rusttls does not accept weak ciphers so if it sents a weak ssl cipher eventually it just dies this is only really noticeable on slow connections

quazar-omega commented 1 year ago

the minreq issue during download [...]

I see, that makes sense, it's not a big issue luckily since it continues after restarting

that error appears if it couldn't find/access the game directory or patch directory

Ok, so I looked in the wiki and I read this to apply it manually:

cd "$HOME/.local/share/anime-game-launcher/game/drive_c/Program Files/anime game" && sh "$HOME/.local/share/anime-game-launcher/patch/350/patch.sh"

I noticed that this path:

$HOME/.local/share/anime-game-launcher/game/drive_c/Program Files/anime game

does not exist, rather I found a directory with the same name at

$HOME/.local/share/anime-game-launcher/anime game

and looking at the current 360 patch's readme I think that might be the one I'm looking for, but it isn't placed into "Program Files", tell me if I'm wrong as maybe you changed how things work in the current launcher version, if I guessed correctly I should run that script there and then move the directory like so?

cd "$HOME/.local/share/anime-game-launcher/anime game"
sh "$HOME/.local/share/anime-game-launcher/patch/360/patch.sh"
mv "$HOME/.local/share/anime-game-launcher/anime game" "$HOME/.local/share/anime-game-launcher/game/drive_c/Program Files/anime game"
Mar0xy commented 1 year ago

do not move it just ignore the program files part as it is out of date and simply run the first 2 commands you mentioned

cd "$HOME/.local/share/anime-game-launcher/anime game"
sh "$HOME/.local/share/anime-game-launcher/patch/360/patch.sh"
quazar-omega commented 1 year ago

Ok done, but it says that it has failed:

$ sh "$HOME/.local/share/anime-game-launcher/patch/360/patch.sh"
--- Applying for: International version

[WARNING] Hereby you are violating the game's Terms of Service!
          Do you accept the risk and possible consequences?
          Use Ctrl+C to abort this script if you are not sure.
Accept? [y/N] y

--- Setting up blocked servers
[Optional] Block analytics domains via /etc/hosts
           The game collects uniquely identifiable information about your system.
           For details, refer to the official privacy page or the file
           '../static/analytics_data.txt' contained in this repository.
# anime game logging servers (do not remove!)
0.0.0.0 sg-public-data-api.hoyoverse.com
0.0.0.0 log-upload-os.hoyoverse.com
0.0.0.0 overseauspider.yuanshen.com
Would you like to block the analytics servers above? [Y/n]: y
-- Adding analytics servers
tee: /etc/hosts: Permission denied
# anime game logging servers (do not remove!)
0.0.0.0 sg-public-data-api.hoyoverse.com
0.0.0.0 log-upload-os.hoyoverse.com
0.0.0.0 overseauspider.yuanshen.com
--- Failed. Please edit /etc/hosts manually. Enter to continue.

--- Renaming the crash reporter(s)
--- Workaround for Wine bug 45277
--- Adding launcher script
--- Patching UnityPlayer
==> Patch applied! Enjoy the game.

[NOTICE]  Please refrain from sharing this project in public so
          that there can be Linux patches in the future. Thank you.

Randomly tried with sudo too, but no difference, after that if I open the launcher it still sees it as unpatched, the button fails as before too

Mar0xy commented 1 year ago

just follow what it says it literally tells you to edit /etc/hosts manually and put the stuff in that it lists above (the logging servers and analytics)

quazar-omega commented 1 year ago

Well I can't do that, it is a readonly filesystem it says, I was just about to add that 😅

Mar0xy commented 1 year ago

you said you are using distrobox which should let you edit the /etc/hosts file as it should be located inside the distrobox container since they just entire distro images meaning it has it's own /etc/hosts

quazar-omega commented 1 year ago

I thought so too, but by editing /etc/hosts in my host os (Fedora Kinoite) it reflects on the file I can see from the container, I'm wondering if certain paths get actually mounted to the container but by simply looking around the system I am not sure, I should read more documentation on Distrobox to understand better, then I'll come back to this. By the way, even though I edited the hosts file that now looks like this:

# Loopback entries; do not change.
# For historical reasons, localhost precedes localhost.localdomain:
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
# See hosts(5) for proper format and other examples:
# 192.168.1.10 foo.mydomain.org foo
# 192.168.1.13 bar.mydomain.org bar
# anime-game logging servers (do not remove!)
0.0.0.0 sg-public-data-api.hoyoverse.com
0.0.0.0 log-upload-os.hoyoverse.com
0.0.0.0 overseauspider.yuanshen.com#105 

The patch is still not detected by the launcher

Mar0xy commented 1 year ago

check if the button for opening the game directory works in the launcher (most likely won't work though cause it prob has no file manager it can open)

quazar-omega commented 1 year ago

Yes as you expected it doesn't work without a file manager installed:

ERROR anime_game_launcher::ui::main: Failed to open game folder: Launcher "gio" "open" "/home/amusing-dove/Documenti/Boxes/Arch/.local/share/anime-game-launcher/Genshin Impact" failed with ExitStatus(unix_wait_status(512))
    at src/ui/main/mod.rs:577

After installing thunar: Screenshot_20230503_205704 Was there something in particular you wanted to check here?

Mar0xy commented 1 year ago

I wanted to check if the launcher can pick up the game folder and according to the screenshot it does so it should be able to see that the game is patched which is odd that it still shows apply patch as that depends on if the checksums of unityplayer.dll match with the info it is pulling from the patch folder I assume the /patch folder is also accesible right?

quazar-omega commented 1 year ago

https://user-images.githubusercontent.com/56311398/236054724-fce1d811-f932-4a4c-a322-eaa609b45810.mp4

Indeed, it is as you have guessed

Mar0xy commented 1 year ago

Could you send the debug.log after opening the launcher and clicking apply patch

quazar-omega commented 1 year ago

Yes, here it is (note: I upgraded the launcher to the latest version): debug.log
The errors with xdg-open are probably just dumb me not knowing how to set the default app for the mime type correctly.

Anyway regarding the /etc/hosts I researched this and, if I didn't misunderstand things, these are the points:

  1. Podman by default used to bind the host system's /etc/hosts until relatively recently podman #11835 unlike docker
  2. Distrobox by default still has the same behviour, but it seems like the option has been added and I guess it could land in the next release, this is part of the whole sandboxing issue
  3. According to the main branch manual entry we'll be able to add
    --unshare-netns:        do not share the net namespace with host

    to separate the container from the system's namespace which I think involves having separate /etc/hosts

Mar0xy commented 1 year ago

According to the debug.log it fails at the xlua patch as it indicates line 425 which is the execution of the xlua patch try turning off the additional patch in the launcher settings (though this could also indicate a broken install of the game but i am not sure it could just be the shell file being funky)

quazar-omega commented 1 year ago

I saw going into the settings that actually both switches were turned off, but had a blue background as if they were on, like this one, is this a known problem? toggle-styling-weird

So after turning on and off it actually looked right: new-settings The "Apply patch" button immediately changed to "Launch", so...

https://user-images.githubusercontent.com/56311398/236889509-d80f68b6-0d04-41e7-a328-6eddeca6c226.mp4

It's ALIVE! Thank you a lot for the help, I hope this thread can help others too now. If it's useful to you, I can post the latest debug.log.

Mar0xy commented 1 year ago

is this a known problem?

Yes it is but we don't know what exactly causes it as it happens to basically everyone.

It's ALIVE! Thank you a lot for the help,

No Problem, I don't need the latest debug.log since it works now and there is nothing more it will log after launching

Janybanny commented 1 year ago

This thread seems to have derailed a bit, but I had the exact same issue as @atomicptr. The problem is that silverblue (or in my case kinoite) has the home directory at /var/home instead of just /home. So if you select /var/home/janybanny(put your username here)/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/ as a game directory instead of the default one it works. Same for the other launchers.

Its an easy fix, but I don't know how to implement it into the code.

quazar-omega commented 1 year ago

You're right, my bad, @Mar0xy you may want to hide my off-topic comments, it's probably better to put that content in the wiki now.

If you want to add this wiki action I can do that myself with a pull request

Mar0xy commented 1 year ago

If you want to add this wiki action I can do that myself with a pull request

Just email me the content (email is on gh profile) and I will add it as there are future plans to change how the wiki functions

atomicptr commented 1 year ago

I can confirm that with @Janybanny's workaround this works for me as well now, don't quite understand why though? There are other Silverblue users without this issue and on a clean VM I also could not reproduce this, quite strange :thinking:

Edit: Although downloading background images still doesn't work (presumably because that path isn't configurable?)

Mar0xy commented 1 year ago

Edit: Although downloading background images still doesn't work (presumably because that path isn't configurable?)

The background just gets downloaded into the launcher folder normally you can also manually set it by downloading a background naming it background (no extension) and then making a file called .keep-background

Mar0xy commented 1 year ago

Since this issue was basically solved I will close it now.

quazar-omega commented 1 year ago

Is it in the next release?
Bar the workaround, I'm still facing the issue, if there isn't a fix, will a notice to try changing path during installation be put there?

atomicptr commented 10 months ago

I installed the game again and this is still a problem although the workaround does still work

onurccn commented 4 months ago

This thread seems to have derailed a bit, but I had the exact same issue as @atomicptr. The problem is that silverblue (or in my case kinoite) has the home directory at /var/home instead of just /home. So if you select /var/home/janybanny(put your username here)/.var/app/moe.launcher.an-anime-game-launcher/data/anime-game-launcher/ as a game directory instead of the default one it works. Same for the other launchers.

Its an easy fix, but I don't know how to implement it into the code.

In my case I had a link to /var/home/ from /home/ directory but I still got this error, Maybe following links might help?

Janybanny commented 4 months ago

The problem back then was that it should follow links, but it doesn't and we don't know why