#[1.0.2] Discord Rich Presence broken on Linux
44 messages · Page 1 of 1 (latest)
Thank you for reporting this bug! Our team will review your report soon.
Feel free to add more details in follow-up messages — we're also scanning for duplicate reports automatically now.
📨 There are currently 22 reports awaiting team review. Due to the high volume, it may take a little longer for us to get to yours.
📋 Log files help us investigate issues. You can find yours here:
• Linux: ~/.config/unity3d/tobspr Games/shapez 2/Player.log
💾 Savegame files (.spz2) are very helpful if relevant to the issue!
Export via Main Menu → Play → click the download icon on the relevant savegame.
You can also find them here:
• Linux: $XDG_CONFIG_HOME/unity3d/tobspr Games/shapez 2/
I was not able to find any duplicates. Either this is a new bug or there might be more info required. Mods can run /check-duplicates at any time to find out more.
As far as I know, there is no Rich Presence / game status support for any platform. This is just what Discord does for all Linux games
E.g. here's an example of autodetected osu! with Rich Presence turned off:
Hmm since other people's game show up like this I assumed there was a minimal implementation
This is also auto-detection, but on Windows. Discord can provide more information for Steam games on Windows via IGDB, but how they do it is unknown to me (this type is was exclusive to Steam games)
Discord is also in the middle of a big change regarding handling of game detection and social features. There are now game profiles, so expect things to break on both Windows and Linux 🙃
And for other Linux native games with no rich presence, it shows up with a minimal implementation for me, see Factorio for instance
And for games running via proton with no rich presence at all (like VRChat) it also shows a minimal implementation like that
I suspect these are based on crowdsourced information on both Windows and Linux. Factorio is a popular game so they likely know the binary name. It's also factorio instead of something more complicated like shapez 2.x86_64 - easier to detect in a platform-agnostic way. For Proton I'm pretty sure they just use the .exe name (I guess Proton sets it as argv[0] or thread name IIRC, it is visible in htop at least)
I think I've seen shapez (1) autodetected correctly on Linux, but it's really hit or miss
Hmmm, as in Discord is responsible for the detection and not tobspr games?
Yes, that one works fine
Got it. Here I have a custom build of shapez (non-Steam) which is stored at ~/Games/shapez/shapezio. But if I launch another build of shapez CE at ~/repos/shapez/ce/build_output/standalone/shapez-linux-x64/shapezio, it does not get detected as a game at all
at least the official steam version, when I package and run the CE it doesn't get detected
oh lol what I just said
i made a mod that adds rich presence
but it needs some manual setup because of native libraries
I have no idea, but developers don't have 100% control over the detection at least. All they can do is "claim game profile" but I doubt that affects detection
Pretty sure the detection is up to Discord and IGDB
unless they add a custom rich presence themselves, I'm guessing
Yes, custom RPC is the way to go (but good luck with Flatpak Steam, lmao)
I have only ever dived into Discord bot development, never incorporating it into an application
So I can't be sure
maybe i should try
It's all private APIs and closed source SDKs. They have been reverse engineered though and libraries are now provided for various programming language
https://github.com/Raphdf201/shapez2-richPresence/blob/256e79ccef2a022e1b9fd9f9d40abd411010c528/Main.cs#L38
its pretty easy to do
looks like this
#⚙️mod-creation message
i wonder if i can run this on the Linux version since it's just C# which compiles to a dll anyways regardless of platform
is it on the workshop?
no
since i had issues with the discord api
i can show you how to set it up
download this https://uploads.raphdf201.net/pub/spz2/discordsdk/x64/discord_game_sdk.so
and put it in the game's shapez 2_Data/Plugins/x86_64/
then build the mod and it should work
if not, tell me and i'll fix it
It's okay, I'll just wait and see if the devs say anything, thank you though!
Hi Rikai! Checking the portal, it looks like we can't update that either. You can report the incorrect name on discord in the settings > activity settings > registered games.
Hey, Joshua! Thanks for your reply.
Sadly, since it is not recognized as a game, it doesn't show a report wrong detection button.
Hmm, I'll forward over this screenshot. It's weird to me it isn't even in recognized list.
Hmm wait, it doesn't seem to be the reason, I have some recognized games that also don't have the report feature
I wonder what's causing the report button to be missing
Thank you
I'm marking this as not a bug for the game. Thank you for the report, but it appears we can't control this at the moment.