Discord Rich Presence Extension?
Hey guys.
I'm just wondering if you guys need a "FREE" extension for GM8 , GM8.1 , GMS 1.X -> GMS2 for discord's rich presence ^^
If you do , comment this post so that I can make one for you guys.
The only one available in the internet is Dissonance and it's worth 10$ in the marketplace.
EDIT: Hey , since lot of people are requesting it , I made it here a link for it:
http://www.mediafire.com/file/syhiktn8avb4bs1/Discord%20Rich%20Presence%20Extension%20By%20Aouab.zip
The package has the files that you need to include , the scripts with a simple doc and a GM8 example so you can test it anywhere.
If you want i'm going to explain how to use it in the comments of this post.
Replies (33)
Last message on 5 May 2022
**I have decided to make a guide on how to use this**
**Please find it linked below**
http://txti.es/gms1-discord-rich-presence http://txti.es/gms1-discord-rich-presence
**Any Queries Add My Discord: BigWhomas#3014**
Would you add the gamemaker server function?
So i'm actually making an update on my game including the rich presence. i added the scripts and the included files on my game's folder and data, Why the rich presence dosen't work ? I checked on the included files and the code to see if i did well but still nothing happends.
Aouab
on
29 Jun 2019, 19:48:35
Add me on discord , Aouab#3421
Aouab
on
30 Apr 2019, 03:10:41
Hello ^^
I lost my last account so I'm writing with this one
I wanted to say , this tutorial is about external functions , and will certainly not work sometimes due to some GM limitations and bugs.
Nevertheless , I managed to make a (one-file) extension that has all features of Discord Rich Presence.
Feel free to contact me on Discord : Aouab#3421
I can assure you that I'm the real creator , this is not a scam.
NSXdev
on
25 Apr 2019, 08:46:23
Hope, that it works for me :)
Yo Would you be able to create some kind of guide on how to use this? The example doesnt work and I have no clue what to do as there is no documentation included.
___________________________________________
############################################################################################
ERROR in
action number 1
of Create Event
for object obj_player:
Error defining an external function.
at gml_Script_discord_init_dll (line 21) - global.__d_init = external_define(dll,"InitDiscord",dll_cdecl,ty_real,1,ty_string)
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Script_discord_init_dll (line 21)
called from - gml_Script_scr_player (line 17) - discord_init_dll();
called from - gml_Object_obj_player_CreateEvent_1 (line 1) - scr_player();
I keep getting this error, any clue on how to fix it
thats not your fault, the scripts of this extension don't even work so you can forget trying it, I bought dissonance for this so I GUESS you have to pay for having discord rich presence.
Damn, I wish I'd seen this earlier. I managed to get it working, it took some time but I figured out what you had to do. Sorry, you had to spend money dude :( I'm sure Dissonance is worth it though, as this has some features missing such as time spent ingame etc.
Aouab
on
30 Apr 2019, 03:04:17
The problem with mine is that it uses external functions , which can't have more than 4 string arguments.
Nevertheless, I managed to create an extension that has all the features Dissonance has, and all features that Discord Rich Presence gives. Please contact me on Discord if you want it : Aouab#3421
Note: This is a second account , I lost my previous one.
s0uth
on
15 Oct 2018, 18:23:58
Can't use it on GMS 2. I'm getting this error:
unknown function or script external_define
Aouab
on
30 Apr 2019, 03:04:38
Please contact me on Discord : Aouab#3421
Walt
on
24 Jun 2018, 12:58:59
Hi! I'm getting an error.
___________________________________________
############################################################################################
ERROR in
action number 1
of Create Event
for object DRP:
Error defining an external function.
at gml_Script_discord_init_dll
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Script_discord_init_dll (line -1)
gml_Object_DRP_Create_0
Walt
on
24 Jun 2018, 13:04:39
I also seem to get this, even with the example project
___________________________________________
############################################################################################
ERROR in
action number 1
of Create Event
for object object0:
Error defining an external function.
at gml_Script_discord_init_dll (line 21) - global.__d_init = external_define(dll,"InitDiscord",dll_cdecl,ty_real,1,ty_string)
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Script_discord_init_dll (line 21)
called from - gml_Object_object0_CreateEvent_1 (line 1) - discord_init_dll()
Walt
on
24 Jun 2018, 13:05:38
(Using Gamemaker 1.4.1804)
AouabAdYT
(Topicstarter)
on
25 Jun 2018, 03:30:06
Weird..
AouabAdYT
(Topicstarter)
on
25 Jun 2018, 03:31:12
Are you sure to have included both files and they are in the same directory of the game?
Walt
on
25 Jun 2018, 08:19:52
Well yes, the example doesn't even work and I've tried this on 2 computers.
AouabAdYT
(Topicstarter)
on
25 Jun 2018, 16:31:46
Can I have your discord?
I also have that error too..
my discord TypicalAndy#4852
Aouab
on
30 Apr 2019, 03:12:17
I'm unable to add you TypicalAndy#4852 , please add me : Aouab#3421
s0uth
on
11 Oct 2018, 21:43:21
Having that error too. My discord is braguetta#0747.
Aouab
on
30 Apr 2019, 03:13:27
Can't add you too , s0uth. Please add me : Aouab#3421
Walt
on
25 Jun 2018, 16:53:09
Gladly, Walt#4873
Thinzy
on
26 Feb 2019, 23:22:42
Also having this error as well; Thinzy#3306.
Aouab
on
30 Apr 2019, 03:05:02
Please contact me on Discord : Aouab#3421
I ALSO HAVE THE SAME ERROR I WANTED TO CONTACT YOU THROUGH DISCORD I GET AN ERROR
This error also happened to me: DinoWattz#3515
AouabAdYT
(Topicstarter)
on
18 Jun 2018, 14:30:31
Here's how it works:
First you'll need to init the dll files , using :
discord_init_dll()
Then you'll have to init your discord app to communicate with the dll using
discord_init_app(app_id)
The "app_id" a.k.a Application ID or Client ID , is found in your discord developer applications.
That's it , when you want to change the status of the player , use
discord_update_presence(details,status,large_image_key,small_image_key)
large_image_key and small_image_key are used to represent the images in your app, you can register them in your discord application page , for example like this :
https://goo.gl/GwiMq3 And they'll be displayed as the green and yellow image in this image:
https://goo.gl/Fk4bn2 Don't leave so soon!
You need to call
discord_free_app()
before leaving ! That's what makes the game stop communicating with Discord , or there may be some bugs.
Then you can call
discord_free_dll()
to free the memory of the dll file.
Walt
on
18 Jun 2018, 19:06:51
Works with GM1.4 or GM2?
AouabAdYT
(Topicstarter)
on
19 Jun 2018, 00:03:21
Sure, Aaron (The Founder of Project Amaranth) tried it on GMS2 and it worked well ^^ ! Be sure to try it too and give feedback.
Walt
on
17 Jun 2018, 01:39:52
That'd be cool.