AM2R-Community-Developers / AM2RLauncher

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

Arch Linux: "Unsupported URL protocol" when clicking download #54

Open aquova opened 9 months ago

aquova commented 9 months ago

I have been attempting to play the game for the first time via the launcher, but I've been running into a number of issues. I first was hitting issue #40 , but after installing openssh-1.1, I've begun seeing a new error.

image

This happens upon clicking the Download button, even without doing anything else. I have tried both the am2rlauncher and am2rlauncher-git packages, and both have the same issue. I also cleaned out ~/.local/share/AM2RLaucher just in case, still seeing the issue.

OS: Arch Linux CPU: Ryzen 5 5600X GPU: AMD Radeon 6650 XT DE: KDE Plasma Wayland

Logs: AM2RLauncher.log

Miepee commented 9 months ago

Taking a wild guess, but can you try to switch up the mirror in the settings tab?

aquova commented 9 months ago

Ah, that seems to have done it. I switched from GitHub to GitLab (mirror) and the download proceeded fine.

Miepee commented 9 months ago

Huh, that's really strange. Unless GitHub has issues right now, the git URL protocol should be the same for both of them https://github.com/AM2R-Community-Developers/AM2RLauncher/blob/main/AM2RLauncher/AM2RLauncherLib/CrossPlatformOperations.cs#L66-L67

Unless there are issues with the casing, but I somehow doubt that.

Pointing8422 commented 7 months ago

Same problem here, but with git package it even doesn't start, and with normal package I had this problem. Change to Gitlab didn't solve anything to me. Same logs than the one OP upload until clone repository.

2023-11-14 19:31:44,746 [1] ERROR AM2RLauncher.MainForm - The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception. Stack Trace at LibGit2Sharp.Core.NativeMethods.git_clone(git_repository*& repo, String origin_url, FilePath workdir_path, GitCloneOptions& opts) at LibGit2Sharp.Core.Proxy.git_clone(String url, String workdir, GitCloneOptions& opts) at LibGit2Sharp.Repository.Clone(String sourceUrl, String workdirPath, CloneOptions options) at AM2RLauncher.MainForm.<>c__DisplayClass7_0.b__0() in /home/runner/work/AM2RLauncher/AM2RLauncher/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Events.cs:line 255 at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at AM2RLauncher.MainForm.PlayButtonClickEvent(Object sender, EventArgs e) in /home/runner/work/AM2RLauncher/AM2RLauncher/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Events.cs:line 255

EDIT: About the git package, I send the error in a comment on AUR repo, to avoid offtopic

Miepee commented 7 months ago

Any issues you get with the -git package? May be that the git package is out of date, i haven't been keeping a great job lately at keeping it up to date

Pointing8422 commented 7 months ago

After install openssl-1.1 like OP said and select Gitlab my problem was solved too.