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?B
Braska/Xinefus•678d ago
Anyone willing to help would be appreciated.
@karahd any chance you could help? Have you got rich text presence working?
UU
Unknown User•678d ago
B
Braska/Xinefus•678d ago
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.
V
Vadi•678d ago
what are the game connection details?
B
Braska/Xinefus•678d ago
I don't have it enabled for all players yet. I just have an admin function that runs the external.discord.status
V
Vadi•678d ago
does discord even work for you and it doesnt say this?
B
Braska/Xinefus•678d ago
it works. 🙂
but yeah, not sure why it doesn't do anytyhing.
B
Braska/Xinefus•678d ago
B
Braska/Xinefus•678d ago
lua display(gmcp)
shows:
but i'm not sure how the bot-id interacts with things. What permissions perhaps?V
Vadi•678d ago
bot id?
V
Vadi•678d ago
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.
B
Braska/Xinefus•678d ago
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? 😛
V
Vadi•678d ago
it was developed on linux - works fine
in fact I see it for you now
B
Braska/Xinefus•678d ago
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.
V
Vadi•678d ago
I don't think it would be permission related
B
Braska/Xinefus•678d ago
k.
I'm not sure then. 😦
V
Vadi•678d ago
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
B
Braska/Xinefus•678d ago
I will enable it game wide.
and share details for login.
I feel like it could just be me, lol.
S
SlySven ☕•678d ago
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...
B
Braska/Xinefus•678d ago
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
S
SlySven ☕•678d ago
Our/Discords recommendation is a 1024x1024
.PNG
and we recommend you upload/call it server-icon
...B
Braska/Xinefus•678d ago
B
Braska/Xinefus•678d ago
It's there.
S
SlySven ☕•678d ago
Ok, gimme a couple of minutes to spin up Qt Creator and build the current
development
code...B
Braska/Xinefus•678d ago
lol.
S
SlySven ☕•678d ago
Well the Application ID works - not sure about the Application's NAME though...
B
Braska/Xinefus•678d ago
ok, it needs a specific name?
S
SlySven ☕•678d ago
And the switching between Games (MUDs) still works... 😌
B
Braska/Xinefus•678d ago
does the name need to be something specific?
S
SlySven ☕•678d ago
Nope - and I noticed you just changed it...!
😀
B
Braska/Xinefus•678d ago
yeah, simplified.
how is it working for you and not me 😦
S
SlySven ☕•678d ago
It just makes sense to be something that can be put after "Playing " ...
B
Braska/Xinefus•678d ago
it's like it's not updating my status..
S
SlySven ☕•678d ago
I'm entering the Application ID into the profile on the command line with - in your case -
lua setDiscordApplicationID("779015653599215616")
B
Braska/Xinefus•678d ago
I get
ture
trueS
SlySven ☕•678d ago
Yeah that means the lua command worked...
B
Braska/Xinefus•678d ago
so my mudlet isn't talking to my discord?
S
SlySven ☕•678d ago
Lets check your settings...
B
Braska/Xinefus•678d ago
but I can click on all the fancy icons and get to my server and this server.
B
Braska/Xinefus•678d ago
This I mean.
S
SlySven ☕•678d ago
That's totally separate...
B
Braska/Xinefus•678d ago
ok.
S
SlySven ☕•678d ago
What OS are you using?
B
Braska/Xinefus•678d ago
I'm all ready to listen,.
B
Braska/Xinefus•678d ago
S
SlySven ☕•678d ago
And you are using a Release version of Mudlet you installed?
B
Braska/Xinefus•678d ago
B
Braska/Xinefus•678d ago
I think that would be more accurate, the about mudlet.
I'm running from an appimage I downloaded.
lol your statuses make me laugh
S
SlySven ☕•678d ago
Right, the options in the "Chat" tab for your Discord profile are left at the defaults I take it:
B
Braska/Xinefus•678d ago
yep
B
Braska/Xinefus•678d ago
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.
S
SlySven ☕•678d ago
And the Discord option is set in the profile's options:
S
SlySven ☕•678d ago
Okay...
B
Braska/Xinefus•678d ago
yes it's set.
S
SlySven ☕•678d ago
🤔
Well, we'll have to dive deeper later on then...
👋
B
Braska/Xinefus•678d ago
Yes ticked.
S
SlySven ☕•678d ago
Ah, so do you get the (default) "Playing Mudlet" Rich Presence showing on Discord when you start Mudlet...?
B
Braska/Xinefus•678d ago
I do not. :(
And I think that is my problem. I may try compiling and installing Mudlet to see if that will do anything.
S
SlySven ☕•678d ago
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:
B
Braska/Xinefus•678d ago
I will look soon.
I have successfully run it from terminal, but I don't think I've seen that line.
S
SlySven ☕•678d ago
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:
B
Braska/Xinefus•678d ago
coming in and out between kids and dinner. 😛
B
Braska/Xinefus•678d ago
B
Braska/Xinefus•678d ago
doesn't look like it.
oh wait, first line.
S
SlySven ☕•678d ago
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!
B
Braska/Xinefus•678d ago
Nope.
UU
Unknown User•678d ago
B
Braska/Xinefus•678d ago
I just have the one instance.
S
SlySven ☕•678d ago
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...
B
Braska/Xinefus•678d ago
I'll give it a try tomorrow. I really appreciate this help.
UU
Unknown User•678d ago
B
Braska/Xinefus•677d ago
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.
S
SlySven ☕•677d ago
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
V
Vadi•677d ago
Let's see if someone asks for it first
I haven't yet seen anyone implement parties yet..
S
SlySven ☕•677d ago
You haven't been checking my RP - I've been mis-using it for a while now...
S
SlySven ☕•677d ago
A
atari2600tim•676d ago
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
S
SlySven ☕•676d ago
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")...
4.8KMembers
View on DiscordWant results from more Discord servers?
More PostsWell with the spell checking enabled IWell, with the spell-checking enabled I was pointing out that, so the user could tell that a word waMSDP Sub Tables@Fuligin ?I am also interested in this problemIncluding things from luarocks can be difficult, especially if you're trying to support all three OSkill aliasand I don't think what you typed is necessarily easier than inputting it in two spots. But we may ju.you can click and drag this window to another side, make it pop out, or click the X on the far rightRooms dialogThe room number in the centre of the Room Exit is the Id of the room you are setting the exits *from