DRPC: Discord Rich Presence Extension

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • DRPC, Discord Rich Presence


    • Display a player's current status within your game so they can show it off on Discord
    • Let players invite people from their Discord client*
    • An ask to join button lets players partner up outside the game*
    • A spectate button lets users spectate a player outside the game (Discord's verification required per game)*
    • Unicode! Supports a wide range of characters. Not limited to English-only.


    * Feature usually for a multiplayer game or an app with an online aspect

    Find more information about rich presence here: Please login to see this link.

    Download & Examples:



    1.2.2: Please login to see this attachment.
    Example file: Please login to see this attachment. (I wanted to make a few more, but it was running late so I had to wrap up. I will most likely come back with more examples)

    You can use Discord's Rich Presence Visualiser to quickly see how the status would look like here:
    Please login to see this link.<Insert your Client ID here>/rich-presence/visualizer

    Setting up:


    • Create an application within Please login to see this link. (Requires login)
    • Upon creation, save Client ID on the page for later Please login to see this link.
    • Upload assets such as invite splash art and icons in the Rich Presence tab
    • Unpack zip download into your Clickteam Fusion 2.5 Folder
    • Restart Fusion or refresh Object list
    • Place DRPC Object on all frames you'd like to communicate with Discord in

    Using DRPC:


    Here is a list of all conditions, actions and expressions within the Extension, and their basic uses:

    Conditions: States
    Conditions here either return false or true every frame (Normal/Black event)
    [INDENT]
    Has Rich Presence Initialised?
    [INDENT]Returns true if Initialise actions have been executed and DRPC is running.
    You should use this if there is more than one chance you can initialise DRPC.[/INDENT]
    Is Rich Presence ready?
    [INDENT]Returns true if extension is connected with the Discord Client.
    You should check for this before sending Presence Updates.[/INDENT]
    Compare Instance IDs
    [INDENT]Deprecated feature[/INDENT]
    [/INDENT]

    Conditions: Triggers
    Conditions here are trigger conditions (Green Event) which require to be the first condition
    [INDENT]
    On Error
    [INDENT]Triggered when an error has been encountered. Returns error information.
    Both Fusion-made errors and DRPC errors are reported here.[/INDENT]
    On Ready
    [INDENT]Triggered when DRPC is ready to receive Presence Updates.[/INDENT]
    On Disconnect
    [INDENT]Triggered when DRPC lost connection to the internet or Discord Client.[/INDENT]
    On User Join Request
    [INDENT]Triggered when another user asks to join this user. Returns User ID, User Name, User Discriminator and User Avatar URL. Waits for Accept, Decline or Ignore[/INDENT]
    On Join Button click/Request success
    [INDENT]Triggered on successfully joining another user's game, either through ask to join or game invite. Returns On Join Secret.
    You should use the Join Secret to determine how this player is going to connect to the other player's game. With Lacewing, this can be a string containing the server IP and/or channel.[/INDENT]
    On Spectate Button clicked
    [INDENT]Similar to On Join Button click/Request success, but the user spectates what the user is currently doing. Returns On Spectate Secret.
    You should use the Spectate Secret to determine how this player is going to connect to the other player's game. With Lacewing, this can be a string containing the server IP and/or channel.[/INDENT]
    [/INDENT]

    Actions: Session
    Actions related to the current DRPC session
    [INDENT]
    Initialise
    [INDENT]Starts up DRPC. Due to it needing to connect with the client, it will not instantly trigger On Ready.
    Parameters: Client/Application ID, Instance (deprecated)[/INDENT]
    Initialise with Steam ID
    [INDENT]Same as Initialise but with an additional Steam ID parameter, used to let Discord know it is a game on Steam[/INDENT]
    Set Instance ID
    [INDENT]Deprecated[/INDENT]
    Shutdown
    [INDENT]Safely turn off DRPC. Call this when you are about to close the application.[/INDENT]
    [/INDENT]

    Actions: Presence Data (Text, Time, Images, Party, Secrets)
    Actions related to presence data. This will be used to determine what is displayed on the player's status. Additionally, if they can invite other users or let them spectate.
    [INDENT]
    Text[INDENT]Set Details
    [INDENT]Sets the first line in presence, the details. e.g. "Currently in game" or "In main menu"[/INDENT]
    Set Status
    [INDENT]Sets the second line in presence, the state. e.g. "Forming Group" or "In Group", the size of the party will be to the right of the state.[/INDENT]
    [/INDENT]
    Time[INDENT]Clear Time
    [INDENT]Gets rid of the "Elapsed/Remaining" time in the presence[/INDENT]
    Set Elapsed Time
    [INDENT]Turns the "Elapsed/Remaining" time line visible and sets the current elapsed time to the given seconds.
    The time will increment by itself from this point onward.[/INDENT]
    Set Remaining Time
    [INDENT]Turns the "Elapsed/Remaining" time line visible and sets the current remaining time to the given seconds.
    The time will decrement by itself from this point onward.[/INDENT]
    [/INDENT]
    Large Image[INDENT]Set Key
    [INDENT]Displays a large image based on a key. This key is the name of the asset you have uploaded in the Setup[/INDENT]
    Set Tooltip
    [INDENT]Sets text that appears upon hovering the mouse cursor on the large image.[/INDENT]
    [/INDENT]
    Small Image[INDENT]Set Key
    [INDENT]Displays a small image based on a key. This key is the name of the asset you have uploaded in the Setup[/INDENT]
    Set Tooltip
    [INDENT]Sets text that appears upon hovering the mouse cursor on the small image.[/INDENT]
    [/INDENT]
    Party[INDENT]Set Unique ID
    [INDENT]Set the Unique string for this party.
    A party/group is used to determine who should be displayed in the invite link card.[/INDENT]
    Set Current Size
    [INDENT]Sets how many slots in a party/group are taken.[/INDENT]
    Set Max Size
    [INDENT]Sets the maximum amount of slots there is in a party/group. The invite link will be unavailable if all slots are taken.[/INDENT]
    [/INDENT]
    Secrets[INDENT]Set Match Secret
    [INDENT]Deprecated[/INDENT]
    Set Join Secret
    [INDENT]Sets the secret the current player gives out to other players (Through invite or ask to join) to join their game.[/INDENT]
    Set Spectate Secret
    [INDENT]Sets the secret other players get when they click to spectate the current player.[/INDENT]
    [/INDENT]
    Reset Presence Data
    [INDENT]Resets all current data to defaults (Nothing displayed).[/INDENT]
    Send Presence Update
    [INDENT]Sends all current data to the Discord Client.
    Note: Updates are sent every 15 seconds. If you send more frequently than 15 seconds, updates will queue up and send much later.[/INDENT]
    [/INDENT]

    Actions: Join Request
    Actions related to other players asking to join the current player.
    [INDENT]
    Accept
    [INDENT]Accept the request.
    Parameters: User ID (This was given on the On Join Request event)[/INDENT]
    Decline
    [INDENT]Deny the request.
    Parameters: User ID (This was given on the On Join Request event)[/INDENT]
    Ignore
    [INDENT]Ignore the request. Use this action if the player did not pick any within the time the prompt was available.
    Parameters: User ID (This was given on the On Join Request event)
    Note: This options defaults after 30 seconds.[/INDENT]
    [/INDENT]

    Expressions
    Anything set using actions will not be included here.
    [INDENT]Errors
    [INDENT]Error Code
    [INDENT]Returns the error code from DRPC. Fusion-made errors have no code.[/INDENT]
    Error Message
    [INDENT]Returns details of what happened wrong. [/INDENT][/INDENT]
    Join Requests
    [INDENT]User ID
    [INDENT]Returns the ID of the user that made the join request to this player.[/INDENT]
    Username
    [INDENT]Returns the name of the user that made the join request to this player.[/INDENT]
    Discriminator
    [INDENT]Returns the discriminator (4 numbers) of the user that made the join request to this player.[/INDENT]
    Avatar
    [INDENT]Returns the URL that locates the avatar of the user that made the join request to this player. You will need to make your own download events to use this in-game.[/INDENT][/INDENT]
    Invitations
    [INDENT]On Join Secret
    [INDENT]Returns the secret that the current player received on the On Join event.[/INDENT]
    On Spectate Secret
    [INDENT]Returns the secret that the current player received on the On Spectate event.[/INDENT][/INDENT]
    [/INDENT]

    - BartekB

    Join the Click Converse Discord! - Please login to see this link.

    Edited 5 times, last by BartekB (April 25, 2019 at 10:17 PM).

  • C est énorme et en plus elle et gratuit Merci
    It's huge and it's free.thanks!!

    mais jeux en flash fait avec mmf :Please login to see this link.

    les video du projet controleur des jeux flash,htlm5,EXE,sourie avec le telephone comme manette :)
    VIDEO Please login to see this link.

    VIDEO Please login to see this link.

  • Petit test avec l extension sur le jeux TILES vraiment rien a dit et très simple d’utilisation.
    et un Grand Merci
    little test with the extension on the game TILES really nothing said and very easy to use.
    et un Grand Merci
    and a big thank you
    Please login to see this picture.

    mais jeux en flash fait avec mmf :Please login to see this link.

    les video du projet controleur des jeux flash,htlm5,EXE,sourie avec le telephone comme manette :)
    VIDEO Please login to see this link.

    VIDEO Please login to see this link.

  • [MENTION=25619]BioChan[/MENTION] [MENTION=34050]Waffle[/MENTION]
    Hello, sorry about that, I thought I could get some time to make proper documentation and examples for it, but uni work is holding me back right now. The download link is back up here.

    - BartekB

    Join the Click Converse Discord! - Please login to see this link.

  • DRPC has been updated, you can get it via Please login to see this link.

    - Fixed an issue with remaining time always displaying "00:00" instead of the correct time

    - BartekB

    Join the Click Converse Discord! - Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!