Jump to content

{WIP} KSP-RPC-Cord - Debugging issue


Worth?  

3 members have voted

  1. 1. Would Event Driven Rich Presence for Discord be worth it?

    • Yes
      2
    • No
      0
    • Kinda, needs to be highly configurable
      1
    • Kinda, Needs to be simplistic.
      0


Recommended Posts

EDIT: Plugin help fullfilled

I have decided to create a plugin that hooks into your Discord via RPC which allows KSP to send status updates for Rich Presence on Discord. The idea being, if you are orbiting the muun, or crashing spectacularly, or boosting at a certain altitude or joining a Multiplayer KSP  with DMP, then people on discord will know. The idea being RP will update with images of what moon/planet you are nearest too or what server, if you are using MP then a connection can appear on discord client.

[Info on Rich Presence]

 https://discordapp.com/developers/docs/rich-presence/how-to

Credit is given to nostrenz for base idea, standalone RPC version here: https://github.com/nostrenz/cshap-discord-rpc-demo

It seems for RPC to work I need to have a compiled RPC client in the GameData/<mymod/plugins/ folder with my mod for it to function, I have used DLLImport and the compile works flawlessly, unfortunately, nothing posts to the console log when using Debug.Log and my plugin does not update my status with the vanity statuses set in MainCord.cs

https://imgur.com/RJdYE07

I've made my project publically accessible if you are feeling up for helping out a noob:  https://github.com/4669842/KSPCord-1.3.1 You will need to add this DLL for RPC Discord to your compiled version: https://github.com/nostrenz/cshap-discord-rpc-demo/releases (hope to merge into one)

IDE is set to framework 3.5, VS says there are no compile issues.

For now, I hardcoded the ClientID as I only need a single app to access discord but once I learn how to create nodes and assign key value pairs I can allow others to host their own apps on discord if needed (Once this actually works)

 

Edited by TheSystem
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...