GithubHelp home page GithubHelp logo

enderice2 / sdr-rpc Goto Github PK

View Code? Open in Web Editor NEW
14.0 1.0 1.0 297 KB

Plugin for SDR# (SDRSharp) adding Discord Rich Presence (RPC)

Home Page: https://enderice2.github.io/SDR-RPC/

License: GNU General Public License v3.0

C# 100.00%
sdrsharp plugin discord-rpc csharp visual-studio rds discord-status rich-presence discord-rich-presence spyserver

sdr-rpc's Introduction

GitHub GitHub All Releases GitHub release (latest by date) Codacy Badge CodeFactor Twitter Follow

SDR-RPC

SDR-RPC is an SDRSharp plugin that adds Discord RPC feature in it


✨Features

  • 🎛Enable / Disable
  • ✏Showing frequency, play state and RDS almost in realtime
  • 🔌Most of the code is made asynchronous
  • 📖Logging for troubleshooting problems
  • 🔨Easy to install

🎁How to install

📽Video:


🎫Example

📽Video:


💻Building by yourself

  1. You need to download this stuff before compiling:
  1. Click "Code" and select "Open with Visual Studio" or "Download ZIP"

Captură de ecran 2020-10-26 025111.png

  1. If you downloaded as ZIP, unzip the archive and double click on "SDRSharpPlugin.DiscordRPC.sln"
  2. Build it and move files to SDR# location (if the compile fails try copying Reference files into /bin/Debug or /bin/Release folder)

👀Setting your custom images on RPC

  1. Go to https://discord.com/developers/applications and create your own application
  2. Name it "SDRSharp" or something similar

Captură de ecran 2020-10-26 023639.png

  1. Go to Rich Presence > Rich Presence Assets and add your own images with these names:

Captură de ecran 2020-10-26 023706.png

  1. Go back to General Information and copy Client ID

Captură de ecran 2020-10-26 023915.png

  1. Paste the Client ID you copied earlier in plugin textbox from SDRSharp and press the ENTER key

Captură de ecran 2020-10-26 024024.png

  1. Restart the SDRSharp and it should be changed with your custom images

📕TODO List

  • Invite people to get Spy Server Address or connecting via voice chat system to listen and having the ability to change the frequency
  • Change Settings Panel to match SDR# theme
  • Show "Listening" instead of "Playing"

sdr-rpc's People

Contributors

enderice2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

secludedhusky

sdr-rpc's Issues

Invalid client ID

When inputting my own client ID into the plugin it tells me that it is incorrect.
It is not incorrect and the plugin still updates and uses my own client ID anyways.
I haven't looked at the code but if I had to guess I'd say it may be related to my ID being 1 digit longer than the default.

Error on startup

Desktop (please complete the following information):

  • OS: Windows 10 64-Bit
  • Plugin Version v1.0.0.1
  • SDR# Version v1.0.0.1811

Plugin Log

Config Key   'EnderIce2.SDRSharpPlugin.MainPlugin,C:\SDRSharp\plugins\SDR-RPC\SDR-RPC.dll'
Type         'EnderIce2.SDRSharpPlugin.MainPlugin, SDR-RPC, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null'
Message      'Exception has been thrown by the target of an invocation.'
Stack Trace
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean wrapExceptions, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& hasNoDefaultCtor)
   at System.RuntimeType.CreateInstanceDefaultCtorSlow(Boolean publicOnly, Boolean wrapExceptions, Boolean fillCache)
   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, Boolean wrapExceptions)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic, Boolean wrapExceptions)
   at System.Activator.CreateInstance(Type type)
   at SDRSharp.MainForm.InitializeSharpPlugins()

load error with SDR# 1.0.0.1811

Hello there,
When trying to use this plugin with SDR# rev 1811 :

*** Plugin Load Error - 2021-05-10 10:06:53.488
Config Key   'Discord RPC'
Type         'EnderIce2.SDRSharpPlugin.MainPlugin, SDR-RPC, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
Message      'Could not load file or assembly 'SDRSharpMerged, Version=1.0.0.1765, Culture=neutral, PublicKeyToken=null'. Le fichier spécifié est introuvable.'
Stack Trace
   at EnderIce2.SDRSharpPlugin.MainPlugin.Initialize(ISharpControl control)
   at SDRSharp.MainForm.InitializeSharpPlugins()

PluginError.xml - Plugin doesn't start.

I have reinstalled SDRSharp, just the newest version. And installed the plugin for the first time.

*** Plugin Load Error - 2024-01-23 20:42:01.285
DLL          'Plugins\System.Drawing.Common.dll'
Message      '0x80131621'
Stack Trace
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyBinder, String ilPath, String niPath, ObjectHandleOnStack retAssembly)
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
   at System.Reflection.Assembly.LoadFrom(String assemblyFile)
   at SDRSharp.MainForm.LoadPluginTree(String directory, Dictionary`2 pluginTypes, List`1 orderedPluginKeys)

*** Plugin Load Error - 2024-01-23 20:42:01.299
Config Key   'EnderIce2.SDRSharpPlugin.MainPlugin,Plugins\SDR-RPC.dll'
Type         'EnderIce2.SDRSharpPlugin.MainPlugin, SDR-RPC, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null'
Message      'Exception has been thrown by the target of an invocation.'
Stack Trace
   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic, Boolean wrapExceptions)
   at SDRSharp.MainForm.InitializeSharpPlugins()


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.