Jump to content

cookiedragon234

Members
  • Posts

    38
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by cookiedragon234

  1. Packet Send/Recieve events, multiple people have already requested that they get added here on the forums with negative responses. And its not just that, its that Ill be able to add any events I like without waiting for new forge versions and unsupporting all old versions.
  2. Events only get you so far. Currently I'm trying to add custom events for packet send/recieving by adding mixins to the NetworkManager, but there's plenty more opportunities that mixins will open up.
  3. I've just setup mixins in my project however upon running my mod within my IDE (IntelliJ) it crashes with a nosuchmethod error. This seems to be linked with the guava library not being found I guess? I've cleaned the project multiple times, restarted my IDE and run build and buildNeeded, yet this still happens. I can build the project and run it as a mod in minecraft without any errors however the mixins don't actually apply. I'd really appreciate any help, thanks. [15:58:59] [main/ERROR]: Unable to launch java.lang.reflect.InvocationTargetException: null at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_211] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_211] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_211] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_211] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_211] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_211] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_211] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_211] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:25) [start/:?] Caused by: java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkNotNull(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object; at net.minecraftforge.registries.ForgeRegistry.add(ForgeRegistry.java:267) ~[ForgeRegistry.class:?] at net.minecraftforge.registries.ForgeRegistry.add(ForgeRegistry.java:261) ~[ForgeRegistry.class:?] at net.minecraftforge.registries.NamespacedWrapper.register(NamespacedWrapper.java:38) ~[NamespacedWrapper.class:?] at net.minecraftforge.registries.NamespacedWrapper.register(NamespacedWrapper.java:17) ~[NamespacedWrapper.class:?] at net.minecraft.util.SoundEvent.registerSound(SoundEvent.java:580) ~[SoundEvent.class:?] at net.minecraft.util.SoundEvent.registerSounds(SoundEvent.java:26) ~[SoundEvent.class:?] at net.minecraft.init.Bootstrap.register(Bootstrap.java:496) ~[Bootstrap.class:?] at net.minecraft.client.Minecraft.<init>(Minecraft.java:364) ~[Minecraft.class:?] at net.minecraft.client.main.Main.main(SourceFile:123) ~[Main.class:?] ... 12 more [15:58:59] [main/INFO]: [STDERR]: java.lang.reflect.InvocationTargetException [15:58:59] [main/INFO]: [STDERR]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) Exception in thread "Client thread" [15:58:59] [main/INFO]: [STDERR]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [15:58:59] [main/INFO]: [STDERR]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [15:58:59] [main/INFO]: [STDERR]: at java.lang.reflect.Method.invoke(Method.java:498) [15:58:59] [main/INFO]: [STDERR]: at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [15:58:59] [main/INFO]: [STDERR]: at GradleStart.main(GradleStart.java:25) [15:58:59] [main/INFO]: [STDERR]: Caused by: net.minecraftforge.fml.relauncher.FMLSecurityManager$ExitTrappedException [15:58:59] [main/INFO]: [STDERR]: at net.minecraftforge.fml.relauncher.FMLSecurityManager.checkPermission(FMLSecurityManager.java:49) [15:58:59] [main/INFO]: [STDERR]: at java.lang.SecurityManager.checkExit(SecurityManager.java:761) [15:58:59] [main/INFO]: [STDERR]: at java.lang.Runtime.exit(Runtime.java:107) [15:58:59] [main/INFO]: [STDERR]: at java.lang.System.exit(System.java:971) [15:58:59] [main/INFO]: [STDERR]: at net.minecraft.launchwrapper.Launch.launch(Launch.java:138) [15:58:59] [main/INFO]: [STDERR]: at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [15:58:59] [main/INFO]: [STDERR]: ... 6 more > Task :runClient FAILED
  4. Like I said in the second part of my post is there a way to perhaps each tick fetch the packets that have been handled that tick?
  5. Hi, just wondering if there are any events that are triggered once a packet is sent/recieved? There are many things that I would like to do with this functionality, such as measuring a servers tickrate based on counting the frequency of server update packets. If these events do not exist, is there another way to do it like each tick seeing each packet that is going to be sent during that tick? Thanks
  6. I don’t get why this community is so toxic. @diesieben07 locked my thread without giving me a chance to reply. (Thread for ref: ) I don’t get why the thread was locked. The discussion wasn’t finished. By hacked client I’m talking about a forge mod that allows you to gain an advantage only on servers where it is allowed, specifically 2b2t in which hacking is allowed. So it actually is allowed by minecrafts eula. Also I provide extensive support to all users through discord and most obfuscation software provide tools to deobfuscate the stack traces, which I would be willing to do for any people encountering errors. Please do unlock the thread, I’d like to continue the discussion.
  7. It’s a hacked client for anarchy servers that includes very unique and complicated techniques to exploit anti cheats, work that I wouldn’t like to be copied. The hacked client community is much less respectful than the general modding community which is why obfuscation is a must.
  8. Thieves do care about my source because they can steal the code and pass it off as their own. And I am protecting the usage of the jar through hwid checking however that is redundant without obfuscation.
  9. Can you recommend a way of obfuscating the jar then?
  10. Could someone point me towards any guides on how to obfuscate forge mods, or give me some of their advice? Ive tried ZKM, Stringer and Proguard and neither work, I'm assuming because the forge classpath is not very easily available to them. And before I get the brigade of people saying "Dont do that" and not being at all helpful, I dont want to have my code stolen. I think thats understandable. I produce many examples of pieces of my code for others to learn from, but Im not gonna release my entire code base to anyone with a decompiler.
  11. Im using intellij. How do I do that? Other than downloading the forge src ofc.
  12. Thank you very much @Animefan8888, that seems to be what I was looking for. I was using https://dl.dropboxusercontent.com/s/h777x7ugherqs0w/forgeevents.html to find events, do you know any better alternatives as that didn't include clientchatevent?
  13. Is there an event that is run each time the player sends a chat message? (Clients side). I want to append some text to each message that is sent by the user. Thanks.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.