Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work on Linux #11

Open
GalecO1987 opened this issue Jan 28, 2025 · 2 comments
Open

Doesn't work on Linux #11

GalecO1987 opened this issue Jan 28, 2025 · 2 comments

Comments

@GalecO1987
Copy link

Hello, as the title says, I'm a Linux user that play Beat Saber with mods. While the game with other mods work perfectly fine, I'm having some trouble getting bsrpc to work. I installed it using BSManager, and the mod seems to install correctly, but it doesn't make my Discord Rich Presence more detailed as it should. It only shows the default Beat Saber presence, without any of the extra info like the song I'm playing or the difficulty. I even tried using wine-discord-ipc-bridge, but it doesn't fix the issue.

I'm not seeing any error logs, so I'm not sure what's going wrong. Is it possible to somehow make it work on Linux, or am I missing something? I tried to search this issue on Beat Saber Modding Group, but I guess I'm the first to report it?

Here are the logs:
_latest.log

@DJDavid98
Copy link
Owner

Frankly I had no idea the mod could even run on Linux, I personally have never tried, nor do I know for certain what the issue might be. The only relevant lines in your log are related to DiscordCore, the mod I took over the maintenance of that bsrpc depends on, and this is all the info I have to work with:

[DEBUG @ 21:02:02 | DiscordCore] DiscordManager Awake
[ERROR @ 21:02:02 | DiscordCore] Error starting DiscordClient: InternalError
[DEBUG @ 21:02:02 | DiscordCore] Discord.ResultException: InternalError
[DEBUG @ 21:02:02 | DiscordCore] at Discord.Discord..ctor (System.Int64 clientId, System.UInt64 flags) [0x00332] in H:\Git\DJDavid98\DiscordCore\DiscordAPI\Core.cs:1075
[DEBUG @ 21:02:02 | DiscordCore] at DiscordCore.DiscordClient.CreateClient (System.Int64 appId) [0x00001] in H:\Git\DJDavid98\DiscordCore\DiscordClient.cs:104
[DEBUG @ 21:02:02 | DiscordCore] at DiscordCore.DiscordClient.Enable () [0x00087] in H:\Git\DJDavid98\DiscordCore\DiscordClient.cs:94
[DEBUG @ 21:02:02 | DiscordCore] at DiscordCore.DiscordManager.OnEnable () [0x00008] in H:\Git\DJDavid98\DiscordCore\DiscordManager.cs:137

I do find it rather unsettling that the game is giving you error messages with my exact hard drive path to my project, but that is besides the point.

The only thing I see is that the error likely originates from the mod not being able to load the Discord Game SDK which is packaged in the release zip of DiscordCore under the Libs/Native folder, and thus it's also extracted there after the mod is installed.

There is something that could be worth a try, but I would not have high hopes. Edit Plugins/DiscordGameSDK.manifest in your install folder, and replace the .dll under "files" with .so, and see if that changes anything. If not, I'm not sure there's much else I can suggest. Most of this stuff was designed to work on Windows, and as much as I hate this OS, I'm not sure how to make any of this modding stuff work under Linux myself.

@GalecO1987
Copy link
Author

Edit Plugins/DiscordGameSDK.manifest in your install folder, and replace the .dll under "files" with .so, and see if that changes anything.

I replaced the .dll with .so like you asked and unfortunately it didn't help... It gives me the same error.

If not, I'm not sure there's much else I can suggest. Most of this stuff was designed to work on Windows, and as much as I hate this OS, I'm not sure how to make any of this modding stuff work under Linux myself.

Sad, because it's the mod that I really wanted to make it work, but I understand if you can't do this. Maybe someone else would be able to make this work?
Anyway thank you for your reply and thank you for this mod.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants