Thread: Discord Rich Presence - "Custom" Packets

Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19
  1. #11  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    Appriciated i did make it so everything is in one packet, dont mind the image used on the left

    Attached image
    Reply With Quote  
     

  2. Thankful user:


  3. #12  
    Registered Member
    Join Date
    Apr 2019
    Posts
    16
    Thanks given
    1
    Thanks received
    2
    Rep Power
    11
    I had no errors in client or server sided but when I launched client it wouldn't load and the error was in richpresence.java
    Reply With Quote  
     

  4. #13  
    Christ is King

    Makar's Avatar
    Join Date
    Jul 2011
    Age
    29
    Posts
    2,004
    Thanks given
    545
    Thanks received
    965
    Rep Power
    427
    Instead of using multiple packets, why not just have one packet that specifies the field you want to edit and then the value you want the field to be?
    Attached image
    The best open-source pre-eoc remake project that isn't in its early stages for once
    Darkan Client (727 Client Refactor)
    Darkan World Server
    “It would not be impossible to prove with sufficient repetition and a psychological understanding of the people concerned that a square is in fact a circle. They are mere words, and words can be molded until they clothe ideas and disguise.”
    Reply With Quote  
     

  5. #14  
    Registered Member
    Devenir's Avatar
    Join Date
    May 2018
    Posts
    76
    Thanks given
    31
    Thanks received
    38
    Rep Power
    121
    This can also be done clientside with only a single dependency. I used MinnDevelopment's Java-Discord-rpc for this.

    The client knows the players position, experience gained, interface opened, and a lot of other things. No need to add packets to achieve this
    Attached image
    Reply With Quote  
     

  6. #15  
    (Official) Thanksgiver

    Arham's Avatar
    Join Date
    Jan 2013
    Age
    23
    Posts
    3,415
    Thanks given
    7,254
    Thanks received
    1,938
    Rep Power
    3905
    Quote Originally Posted by Makar View Post
    Instead of using multiple packets, why not just have one packet that specifies the field you want to edit and then the value you want the field to be?
    Yeah, I agree:

    Quote Originally Posted by Arham View Post
    I do think this could all be one packet now that I think about it.
    Quote Originally Posted by Devenir View Post
    This can also be done clientside with only a single dependency. I used MinnDevelopment's Java-Discord-rpc for this.

    The client knows the players position, experience gained, interface opened, and a lot of other things. No need to add packets to achieve this
    Adding packets will allow you to do everything you need with ease. You will have all the properties of the player to choose from rather than the select few we send to the client. Given how easy it is, why not add a packet?

    Also, no need to mention the library you used since we used the same library. You do only need one dependency if you download the JAR with dependencies.
    Attached image
    Attached image
    Quote Originally Posted by MrClassic View Post
    Arham is the official thanker!
    List of my work here!
    Reply With Quote  
     

  7. #16  
    Christ is King

    Makar's Avatar
    Join Date
    Jul 2011
    Age
    29
    Posts
    2,004
    Thanks given
    545
    Thanks received
    965
    Rep Power
    427
    Quote Originally Posted by Devenir View Post
    This can also be done clientside with only a single dependency. I used MinnDevelopment's Java-Discord-rpc for this.

    The client knows the players position, experience gained, interface opened, and a lot of other things. No need to add packets to achieve this
    I mean I recently decompiled Ely to bot and cheat with some friends on it and found absolutely hilarious gems such as

    Attached image

    So if that's what you're meaning by client-siding it, please tell me that isn't what you have in mind. Having a packet allows true integration with the game itself such as lobby wait times for minigames, easily knowing what activity they are doing and where they are (since the server should have those areas defined easily to begin with, no point in adding it twice).
    Attached image
    The best open-source pre-eoc remake project that isn't in its early stages for once
    Darkan Client (727 Client Refactor)
    Darkan World Server
    “It would not be impossible to prove with sufficient repetition and a psychological understanding of the people concerned that a square is in fact a circle. They are mere words, and words can be molded until they clothe ideas and disguise.”
    Reply With Quote  
     

  8. Thankful user:


  9. #17  
    Registered Member
    Devenir's Avatar
    Join Date
    May 2018
    Posts
    76
    Thanks given
    31
    Thanks received
    38
    Rep Power
    121
    Quote Originally Posted by Makar View Post
    I mean I recently decompiled Ely to bot and cheat with some friends on it and found absolutely hilarious gems such as

    Attached image

    So if that's what you're meaning by client-siding it, please tell me that isn't what you have in mind. Having a packet allows true integration with the game itself such as lobby wait times for minigames, easily knowing what activity they are doing and where they are (since the server should have those areas defined easily to begin with, no point in adding it twice).
    https://github.com/runelite/runelite...lugins/discord
    Runelite does a similar thing?

    All the information you need is already either sent to the client or available in the client.
    No need to send a string of information from the server to the client, waste of bandwidth if the information is already present..
    Attached image
    Reply With Quote  
     

  10. #18  
    (Official) Thanksgiver

    Arham's Avatar
    Join Date
    Jan 2013
    Age
    23
    Posts
    3,415
    Thanks given
    7,254
    Thanks received
    1,938
    Rep Power
    3905
    Quote Originally Posted by Devenir View Post
    https://github.com/runelite/runelite...lugins/discord
    Runelite does a similar thing?

    All the information you need is already either sent to the client or available in the client.
    No need to send a string of information from the server to the client, waste of bandwidth if the information is already present..
    I think you may be over optimizing. One string and possibly one integer sent at the initialization of a trigger is a negligible bandwidth usage.
    Attached image
    Attached image
    Quote Originally Posted by MrClassic View Post
    Arham is the official thanker!
    List of my work here!
    Reply With Quote  
     

  11. #19  
    Registered Member

    Join Date
    Oct 2016
    Posts
    158
    Thanks given
    76
    Thanks received
    39
    Rep Power
    105
    Ran into an interesting problem,
    Code:
    Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/jna/Library
    	at java.lang.ClassLoader.defineClass1(Native Method)
    	at java.lang.ClassLoader.defineClass(Unknown Source)
    	at java.security.SecureClassLoader.defineClass(Unknown Source)
    	at java.net.URLClassLoader.defineClass(Unknown Source)
    	at java.net.URLClassLoader.access$100(Unknown Source)
    	at java.net.URLClassLoader$1.run(Unknown Source)
    	at java.net.URLClassLoader$1.run(Unknown Source)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at org.necrotic.saevio.RichPresence.initiate(RichPresence.java:18)
    	at org.necrotic.client.Client.main(Client.java:640)
    Caused by: java.lang.ClassNotFoundException: com.sun.jna.Library
    	at java.net.URLClassLoader.findClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	... 14 more
    Reply With Quote  
     

Page 2 of 2 FirstFirst 12

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [614] Custom packets
    By ill pk ur as in forum Help
    Replies: 3
    Last Post: 04-05-2011, 11:56 PM
  2. Custom Packet Help
    By ToxicScreams in forum Help
    Replies: 0
    Last Post: 01-21-2010, 05:43 AM
  3. custom packets?
    By R0cky 0wnz in forum Help
    Replies: 26
    Last Post: 12-22-2009, 01:53 PM
  4. My Custom Packet
    By Coombser in forum Help
    Replies: 2
    Last Post: 11-28-2009, 02:57 AM
  5. Adding custom packets
    By Yarnova in forum Tutorials
    Replies: 11
    Last Post: 11-08-2009, 07:18 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
  •