|
Appriciated i did make it so everything is in one packet, dont mind the image used on the left
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
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?
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
Yeah, I agree:
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.
I mean I recently decompiled Ely to bot and cheat with some friends on it and found absolutely hilarious gems such as
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..
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
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |