User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: DRPC: Discord Rich Presence Extension

  1. #1
    Clickteam Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    BartekB's Avatar
    Join Date
    Aug 2013
    Posts
    680
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)

    DRPC: Discord Rich Presence Extension

    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: https://discordapp.com/rich-presence

    Download & Examples:


    1.2.2: DRPC-Forum-122.zip
    Example file: Discord Rich Presence Examples.mfa (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:
    https://discordapp.com/developers/applications/<Insert your Client ID here>/rich-presence/visualizer

    Setting up:



    • Create an application within https://discordapp.com/developers/applications/ (Requires login)
    • Upon creation, save Client ID on the page for later (Found here)
    • 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)

    Has Rich Presence Initialised?
    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.
    Is Rich Presence ready?
    Returns true if extension is connected with the Discord Client.
    You should check for this before sending Presence Updates.
    Compare Instance IDs
    Deprecated feature

    Conditions: Triggers
    Conditions here are trigger conditions (Green Event) which require to be the first condition

    On Error
    Triggered when an error has been encountered. Returns error information.
    Both Fusion-made errors and DRPC errors are reported here.
    On Ready
    Triggered when DRPC is ready to receive Presence Updates.
    On Disconnect
    Triggered when DRPC lost connection to the internet or Discord Client.
    On User Join Request
    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
    On Join Button click/Request success
    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.
    On Spectate Button clicked
    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.

    Actions: Session
    Actions related to the current DRPC session

    Initialise
    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)
    Initialise with Steam ID
    Same as Initialise but with an additional Steam ID parameter, used to let Discord know it is a game on Steam
    Set Instance ID
    Deprecated
    Shutdown
    Safely turn off DRPC. Call this when you are about to close the application.

    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.

    Text
    Set Details
    Sets the first line in presence, the details. e.g. "Currently in game" or "In main menu"
    Set Status
    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.
    Time
    Clear Time
    Gets rid of the "Elapsed/Remaining" time in the presence
    Set Elapsed Time
    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.
    Set Remaining Time
    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.
    Large Image
    Set Key
    Displays a large image based on a key. This key is the name of the asset you have uploaded in the Setup
    Set Tooltip
    Sets text that appears upon hovering the mouse cursor on the large image.
    Small Image
    Set Key
    Displays a small image based on a key. This key is the name of the asset you have uploaded in the Setup
    Set Tooltip
    Sets text that appears upon hovering the mouse cursor on the small image.
    Party
    Set Unique ID
    Set the Unique string for this party.
    A party/group is used to determine who should be displayed in the invite link card.
    Set Current Size
    Sets how many slots in a party/group are taken.
    Set Max Size
    Sets the maximum amount of slots there is in a party/group. The invite link will be unavailable if all slots are taken.
    Secrets
    Set Match Secret
    Deprecated
    Set Join Secret
    Sets the secret the current player gives out to other players (Through invite or ask to join) to join their game.
    Set Spectate Secret
    Sets the secret other players get when they click to spectate the current player.
    Reset Presence Data
    Resets all current data to defaults (Nothing displayed).
    Send Presence Update
    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.

    Actions: Join Request
    Actions related to other players asking to join the current player.

    Accept
    Accept the request.
    Parameters: User ID (This was given on the On Join Request event)
    Decline
    Deny the request.
    Parameters: User ID (This was given on the On Join Request event)
    Ignore
    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.

    Expressions
    Anything set using actions will not be included here.
    Errors
    Error Code
    Returns the error code from DRPC. Fusion-made errors have no code.
    Error Message
    Returns details of what happened wrong.
    Join Requests
    User ID
    Returns the ID of the user that made the join request to this player.
    Username
    Returns the name of the user that made the join request to this player.
    Discriminator
    Returns the discriminator (4 numbers) of the user that made the join request to this player.
    Avatar
    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.
    Invitations
    On Join Secret
    Returns the secret that the current player received on the On Join event.
    On Spectate Secret
    Returns the secret that the current player received on the On Spectate event.
    - BartekB
    Join the Click Converse Discord! - https://discord.gg/R3WuvF3mHr

  2. #2
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleInstall Creator
    SirEatAlot's Avatar
    Join Date
    Oct 2010
    Location
    Stockholm, Sweden
    Posts
    464
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Very nice object, thanks!!

  3. #3
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    CapitaineCaverne's Avatar
    Join Date
    Feb 2011
    Location
    Bretigny sur Orge
    Posts
    577
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    C est énorme et en plus elle et gratuit Merci
    It's huge and it's free.thanks!!

  4. #4
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    CapitaineCaverne's Avatar
    Join Date
    Feb 2011
    Location
    Bretigny sur Orge
    Posts
    577
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    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
    [img]caverne02.free.fr/TILES/image%20promo/tilesDiscord.jpg[/img]

  5. #5
    Clicker Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)

    Join Date
    Aug 2018
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Where I can download the zip file at "Unpack zip download into your Clickteam Fusion 2.5 Folder"

  6. #6
    Clicker Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)
    Gamepreie's Avatar
    Join Date
    Nov 2017
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't remove the download link please keep it until you put it on clickstore

  7. #7
    Clicker Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)
    Gamepreie's Avatar
    Join Date
    Nov 2017
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey, for some reason, i can't send rich presence updates when i change the current frame, the only way i can make it work is add the "Shutdown" action before the "Jump to frame" action.

  8. #8
    Clicker Fusion 2.5 (Steam)

    Join Date
    Jan 2019
    Posts
    3
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    When will it be downloadable? I haven't been able to get it for a while.

  9. #9
    Clicker Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)
    BioChan's Avatar
    Join Date
    Jul 2016
    Posts
    3
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Could you make a temporary download until its uploaded to the ClickStore?

  10. #10
    Clickteam Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    BartekB's Avatar
    Join Date
    Aug 2013
    Posts
    680
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    @BioChan @Waffle
    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! - https://discord.gg/R3WuvF3mHr

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Tri, please come back to discord!
    By elvisish in forum Firefly
    Replies: 18
    Last Post: 19th February 2019, 01:33 AM
  2. Discord Communication App testing
    By Jeff in forum News
    Replies: 0
    Last Post: 9th June 2016, 08:22 PM
  3. Replies: 3
    Last Post: 14th February 2014, 07:10 PM
  4. Presence Mode?
    By Danny in forum XNA Export Module Version 2.0
    Replies: 0
    Last Post: 11th September 2012, 08:18 PM
  5. présence de pub
    By 123 in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 2nd October 2008, 03:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •