Discord Rich Text Prescence?
yeah, still working on this. I have been able to get
Game using a custom Discord server. Invite URL:
in the debug log. Then when I check the gmcp log it show: but nothing happens. I have tried to follow https://wiki.mudlet.org/w/Manual:Scripting#Discord_Rich_Presence and https://wiki.mudlet.org/w/Standards:Discord_GMCP#External.Discord.Status, which I think is sending the correct items, but how do I make the client do anything? In the extra notes it says to ensure to enable gmcp Core.Supports.Add ["External.Discord 1"]
this is client side I assume?78 Replies
Anyone willing to help would be appreciated.
@karahd any chance you could help? Have you got rich text presence working?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
hence why i msg'd you 😉 Thanks, I will see wtf I gone done wrong.
😐
seems it's pushing the same as you, least the json looks the same.
what are the game connection details?
I don't have it enabled for all players yet. I just have an admin function that runs the external.discord.status
does discord even work for you and it doesnt say this?
it works. 🙂
but yeah, not sure why it doesn't do anytyhing.
lua display(gmcp)
shows:
but i'm not sure how the bot-id interacts with things. What permissions perhaps?bot id?
Mudlet
File:Mudlet Discord ApplicationID.png
This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.
app id.
hmm, maybe there is where I am going wrong.
nope, that's the ID i'm using. 😦
so... is it a linux thing? Will it not recognize because I'm playing on a linux box?
like.. it's just me personally? 😛
it was developed on linux - works fine
in fact I see it for you now
well, i had to manually add that..
I was looking to make sure it was enabled on settings.. then just selected the mudlet appimage..
so I cheated
does it have something to do with the client-id and OAuth2 permissions?
I have a bot tied to this... does the bot need special permissions?
my bot does mud-discord chat, which still works. so I'm a bit unsure if there is something missing.
I don't think it would be permission related
k.
I'm not sure then. 😦
not sure either - there's only so much we can guess. I suggest giving your client id and a way to connect to the game to test
I will enable it game wide.
and share details for login.
I feel like it could just be me, lol.
All we need to test is, I think, your Discord "Application" ID (it is typically an 18 digit number) which is needed to get the first line in the RP message to say "Playing <Application>" and to access the icons for YOUR game...
mud.dbredemption.com 7000.
I haven't added an image.
i mean I have a cover image in the app.
but I haven't done any image updates through gmcp.
AppID:
779015653599215616
Our/Discords recommendation is a 1024x1024
.PNG
and we recommend you upload/call it server-icon
...It's there.
Ok, gimme a couple of minutes to spin up Qt Creator and build the current
development
code...lol.
Well the Application ID works - not sure about the Application's NAME though...
ok, it needs a specific name?
And the switching between Games (MUDs) still works... 😌
does the name need to be something specific?
Nope - and I noticed you just changed it...!
😀
yeah, simplified.
how is it working for you and not me 😦
It just makes sense to be something that can be put after "Playing " ...
it's like it's not updating my status..
I'm entering the Application ID into the profile on the command line with - in your case -
lua setDiscordApplicationID("779015653599215616")
I get
ture
trueYeah that means the lua command worked...
so my mudlet isn't talking to my discord?
Lets check your settings...
but I can click on all the fancy icons and get to my server and this server.
This I mean.
That's totally separate...
ok.
What OS are you using?
I'm all ready to listen,.
And you are using a Release version of Mudlet you installed?
I think that would be more accurate, the about mudlet.
I'm running from an appimage I downloaded.
lol your statuses make me laugh
Right, the options in the "Chat" tab for your Discord profile are left at the defaults I take it:
yep
I'm going to have to grab my kid from his birthday party. I really appreciate the quick support. I should be back a bit later. sorry to run out.
And the Discord option is set in the profile's options:
Okay...
yes it's set.
🤔
Well, we'll have to dive deeper later on then...
👋
Yes ticked.
Ah, so do you get the (default) "Playing Mudlet" Rich Presence showing on Discord when you start Mudlet...?
I do not. :(
And I think that is my problem. I may try compiling and installing Mudlet to see if that will do anything.
If you can get the AppImage to run from the command line one of the first lines of the debug output that Mudlet emits onto the command line is something about whether the RPC library was loaded - as I highlight here when I am running my recently complied code within Qt Creator:
I will look soon.
I have successfully run it from terminal, but I don't think I've seen that line.
Ah, yeah - you can do that easily enough, once you have untarred the file we make available at: https://www.mudlet.org/download/ you can run it directly from the command line:
coming in and out between kids and dinner. 😛
doesn't look like it.
oh wait, first line.
Oh, poo!
Right, next question...
Are you running more than one Discord application at the same time, I mean are you running more than one of these at the same time!
* "Discord" (the main version, the "Release" one, the oldest of the three)
* "Discord-PTB" (the "Public Test Beta" one, likely has some features/bugs/bugfixes than the main one but is newer)
* "Discord-Canary" (the bleeding edge "Alpha" one, very probable has more features/bugs/bugfixes than the main one but is the bleeding edge one)
Most people do NOT do this, but there have been some exceptional situations where it is useful to run more than one!
Nope.
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
I just have the one instance.
Okay.
I'm not sure what else could be going wrong. Are you in a position to build a copy of Mudlet yourself? If so there is a
#DEFINE
that is normally commented out in the ./src/discord.cpp
file that can be un-commented (line 32 in the file) to generate debug messages that make tracking what is happening easier...
I'll give it a try tomorrow. I really appreciate this help.
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Thanks! I'm still learning Mudlet. Heheh
I don't have time to dig into this today unfortunately, however I did try to login to ThresholdRPG and it did not show up either. However, I opened up Lutris to see if that did anything and it automatically changed my status... but if I have mudlet running it doesn't seem to do anything. 😦
so is it something to do with how mudlet is talking to my pc? I'll have to dig into doing a fresh install of mudlet and discord and go from there.
Happy Sunday.
TBH it sounds like the Mudlet + the Discord RPC library code (archived - so unchanging - at https://github.com/discord/discord-rpc) is not connecting to the Discord application...
Oh, it has been un-archived - and it seems there is a small change to the "Party" details. https://github.com/discord/discord-rpc/commit/963aa9f3e5ce81a4682c6ca3d136cddda614db33 I guess @Vadi we might want to look to pull in that change to our copy of the library?
GitHub
[Maintenance PR for Legacy Gamedevs] Add party privacy enum (#306) ...
* Add party privacy enum
* Add party privacy enum
* Possible unreal working
* Cast to int
Let's see if someone asks for it first
I haven't yet seen anyone implement parties yet..
You haven't been checking my RP - I've been mis-using it for a while now...
I think Mudlet lets you say that you are in a party with 3 of 5 slots taken, but does not have the clickable thing to where you can join in. https://discord.com/rich-presence shows some examples where there are options to join, ask to join, spectate.
Mudlet has some stub functions that print a debug message when someone clicks to Join or Spectate or whatever, but probably nothing for creating them. https://github.com/Mudlet/Mudlet/blob/development/src/discord.cpp#L301
Those stubs were/are purely for debugging - the normal usage of those buttons are to invite the other party to start up their copy of the application (think something like a FPS e.g. Doom™️) and to join in or watch the same game as the originator is playing. Mudlet cannot - I think - do exactly that because not only would the button clicker's copy of Mudlet have to start up, it would also have to connect up to the same MUD as the originator is playing. If that is a MUD that does provide a Discord Application ID to Mudlet - so that Mudlet can cause the RP to show THAT MUD (like the IRE ones do) then it might be possible to fire up a connection, but not otherwise (when the RP just reports "Playing Mudlet")...