Vatuu / discord-rpc

Java Wrapper of the Discord-RPC Library for Discord Rich Presence.
MIT License
194 stars 42 forks source link

Can not share my presence #15

Closed FlickySH closed 6 years ago

FlickySH commented 6 years ago

Made a simple Console app RPC, It works for me but not for everyone else, whitelisted my friend in the project page, but still not working for him

Please reply ASAP

Vatuu commented 6 years ago

What exactly do you mean by "not working for anyone else"? What exactly are you trying to achieve?

The whitelist feature is only needed when:

  1. You want to test Joining/Spectating within your application.
  2. Your application has been greenlit by Discord already, in which case it should work regardless.
FlickySH commented 6 years ago

How do I do that, Im pretty new to the discord application mechanism I have sent my app as a jar to him, he ran it but the presence is not showing. My friends account is white-listed in the app's page

FlickySH commented 6 years ago

The only thing I need is to fix the presence not showing problem I am facing

FlickySH commented 6 years ago

EDIT: When sending the source code to him then he compiles it on his computer, it works for some reason, I seriously don't know what is going on

Vatuu commented 6 years ago

Is your friend using a mac?

FlickySH commented 6 years ago

No Winodws x64

Vatuu commented 6 years ago

How exactly are you packaging it? Are you including the RPC Artifact into your final build, or are you relying on having it provided in the classpath?

FlickySH commented 6 years ago

I'm extracting it to the jar, as a dependency

Vatuu commented 6 years ago

Try to put your code into a gist or Github Repo. I'll take a look myself.

FlickySH commented 6 years ago

Ok https://gist.github.com/Aregev2/17a1ce8604172719672e4cb34c3d4ebd (Kotlin)

DeJayDev commented 6 years ago

Hi, not here to help but life pro tip:

Those strings "Hover1" and "Hover2" won't show because there no images set to hover.

But seriously, I feel like it's something with your local build path if he can do it just fine. Are you able to run this without a problem?

FlickySH commented 6 years ago

Yes I have removed the presence details, the presence should work, the problem is, it will work on another computers only if the code was compiled on the computer, meaning I can't send my friend an rpc jar to test

FlickySH commented 6 years ago

I tried again using Gradle to make a fat Jar but it still didn't work

DeJayDev commented 6 years ago

Sorry you couldn't setup our library and you had to resort to something less featured/updated.

Closing this issue.

Vatuu commented 6 years ago

Before this seems too rude, you are simply not packaging the dependencies correctly. It works with quite literally everyone else, and you are the first reported case of refusing to work pre-compiled.

Therefore it has to be a problem on your site, and not in the library.

FlickySH commented 6 years ago

Can you help me making the jar properly, I'm using intelliJ idea, Can't figure out what an I doing wrong

DeJayDev commented 6 years ago

Message me on Discord, I'm DeJay#1337.