Jump to content

Sunser

Members
  • Posts

    34
  • Joined

  • Last visited

Recent Profile Visitors

1250 profile views

Sunser's Achievements

Tree Puncher

Tree Puncher (2/8)

3

Reputation

  1. Not sure to understand what you mean by pirated. The use case of my mod is basically any kind of private server targeting a specific community (I did it for my school MC server for example) where admins don't want to force the players (in this example students) to pay for an account. Students can register through a web API which creates their IG account, and then they can login IG. Does that still won't get any help?
  2. Hi, just wondering if there is a way to get identifiers for commands. What I mean is a way to get for example 'modid.command' for a given command. I've been looking into the sources but failed to find something helpful. I'm currently registering my commands with a CommandDispatcher and a LiteralArgumentBuilder. EDIT: My goal is the following: My mod forces players to register/login while inside the game (for people who wants to control who can play to their server). As long as a player is not logged in, he/she cannot use any other command. I'd like to allow admins to write in a config files the commands they want to whitelist (I was thinking about 'modid.command' as a format). This is how I'm listening to command calls: @SubscribeEvent(priority = EventPriority.HIGHEST) public static void onCommand(CommandEvent event) { I'd like to know if it is possible to get a command identifier from 'CommandEvent event'. Thanks.
  3. Ouch, I totally missed it. Thank you !
  4. I'm trying to implement the well-known /invsee command. This is what I have done so far: @Override public void execute(MinecraftServer server, ICommandSender sender, String[] args) throws CommandException { if (args.length != 1) { throw new InvalidNumberOfArgumentsException(); } // fetch target's inventory EntityPlayerMP target = server.getPlayerList().getPlayerByUsername(args[0]); if (target == null) return; // TODO: send an error message IInventory targetInventory = target.inventory; // displaying it to sender EntityPlayerMP player = (EntityPlayerMP)sender; player.displayGUIChest(targetInventory); } It works perfectly when both sender and target are in the same dimension, but if they are not, the GUI closes instantly. So I took a look at the net.minecraft.entity.player.EntityPlayerMP#displayGUIChest source code and tried to understand why. This is the piece of code which I think blocks me: (l.948) if (this.openContainer != this.inventoryContainer) { this.closeScreen(); } I also took a look at net.minecraft.entity.player.EntityPlayerMP#changeDimension to check if EntityPlayerMP's attributes openContainer and inventoryContainer where changed but it is not the case. What is wrong with what I am doing ? I feel like I missed something!
  5. If I've understood your problem, maybe having a look at this could be helpful. This is a Thamcraft JEI plugin.
  6. That was exactly what I was looking for. I should be fine. Thanks you !
  7. I've tried adding a huge Slowness effect to some players. This works great but they can still move by jumping. So I've been looking for the other idea but I did not find a way to make it being called every tick. I've been thinking about the onUpdate() method but I haven't found how to link my method and that. Any suggestions ? Thanks for your time.
  8. I was afraid I have to do this. Someone already recommanded it in another post. I'll take a look. Thank you both. I will update the post's status as soon as I get something functional.
  9. Hi everyone, I'm trying to prevent unlogged players to do anything. My next challenge is to prevent players from moving, but I can't find anything that satisfies me. I've been looking into EntityPlayerMP class hierachy and I've found the SPacketPlayerPosLook class, which is sent when a player wants to move. I wonder if there is a way to stop it. I've been looking from a triggered Event when a packet is sent but I did not find. I've also took a look at the doc and tried to understand how things work but I did not find yet a way to achieve it. I wonder if an override of the IMessageHandler::onMessage(SomeIMessage req, MessageContext ctx) method would make it. Any suggestions ? Thanks for your time.
  10. Anything helpful?
  11. Hello guys. I've meet an issue when working on a custom launcher for my private server. I know this is not a Java forum here but I think only you would be able to help me. I use this to know how the minecraft launcher starts a forge profile : ps -aux | grep forge This is the output I got : java -Xmx1G -XX:+UseConcMarkSweepGC -XX:-UseAdaptiveSizePolicy -Xmn128M -Djava.library.path=/home/baptiste/.minecraft/versions/1.10.2-forge1.10.2-12.18.3.2185/1.10.2-forge1.10.2-12.18.3.2185-natives-45923197036750 -Dminecraft.launcher.brand=java-minecraft-launcher -Dminecraft.launcher.version=1.6.89-j -Dminecraft.client.jar=/home/baptiste/.minecraft/versions/1.10.2/1.10.2.jar -cp /home/baptiste/.minecraft/libraries/net/minecraftforge/forge/1.10.2-12.18.3.2185/forge-1.10.2-12.18.3.2185.jar:/home/baptiste/.minecraft/libraries/net/minecraft/launchwrapper/1.12/launchwrapper-1.12.jar:/home/baptiste/.minecraft/libraries/org/ow2/asm/asm-all/5.0.3/asm-all-5.0.3.jar:/home/baptiste/.minecraft/libraries/jline/jline/2.13/jline-2.13.jar:/home/baptiste/.minecraft/libraries/com/typesafe/akka/akka-actor_2.11/2.3.3/akka-actor_2.11-2.3.3.jar:/home/baptiste/.minecraft/libraries/com/typesafe/config/1.2.1/config-1.2.1.jar:/home/baptiste/.minecraft/libraries/org/scala-lang/scala-actors-migration_2.11/1.1.0/scala-actors-migration_2.11-1.1.0.jar:/home/baptiste/.minecraft/libraries/org/scala-lang/scala-compiler/2.11.1/scala-compiler-2.11.1.jar:/home/baptiste/.minecraft/libraries/org/scala-lang/plugins/scala-continuations-library_2.11/1.0.2/scala-continuations-library_2.11-1.0.2.jar:/home/baptiste/.minecraft/libraries/org/scala-lang/plugins/scala-continuations-plugin_2.11.1/1.0.2/scala-continuations-plugin_2.11.1-1.0.2.jar:/home/baptiste/.minecraft/libraries/org/scala-lang/scala-library/2.11.1/scala-library-2.11.1.jar:/home/baptiste/.minecraft/libraries/org/scala-lang/scala-parser-combinators_2.11/1.0.1/scala-parser-combinators_2.11-1.0.1.jar:/home/baptiste/.minecraft/libraries/org/scala-lang/scala-reflect/2.11.1/scala-reflect-2.11.1.jar:/home/baptiste/.minecraft/libraries/org/scala-lang/scala-swing_2.11/1.0.1/scala-swing_2.11-1.0.1.jar:/home/baptiste/.minecraft/libraries/org/scala-lang/scala-xml_2.11/1.0.2/scala-xml_2.11-1.0.2.jar:/home/baptiste/.minecraft/libraries/lzma/lzma/0.0.1/lzma-0.0.1.jar:/home/baptiste/.minecraft/libraries/net/sf/jopt-simple/jopt-simple/4.6/jopt-simple-4.6.jar:/home/baptiste/.minecraft/libraries/java3d/vecmath/1.5.2/vecmath-1.5.2.jar:/home/baptiste/.minecraft/libraries/net/sf/trove4j/trove4j/3.0.3/trove4j-3.0.3.jar:/home/baptiste/.minecraft/libraries/net/minecraftforge/MercuriusUpdater/1.10.2/MercuriusUpdater-1.10.2.jar:/home/baptiste/.minecraft/libraries/com/mojang/netty/1.6/netty-1.6.jar:/home/baptiste/.minecraft/libraries/oshi-project/oshi-core/1.1/oshi-core-1.1.jar:/home/baptiste/.minecraft/libraries/net/java/dev/jna/jna/3.4.0/jna-3.4.0.jar:/home/baptiste/.minecraft/libraries/net/java/dev/jna/platform/3.4.0/platform-3.4.0.jar:/home/baptiste/.minecraft/libraries/com/ibm/icu/icu4j-core-mojang/51.2/icu4j-core-mojang-51.2.jar:/home/baptiste/.minecraft/libraries/net/sf/jopt-simple/jopt-simple/4.6/jopt-simple-4.6.jar:/home/baptiste/.minecraft/libraries/com/paulscode/codecjorbis/20101023/codecjorbis-20101023.jar:/home/baptiste/.minecraft/libraries/com/paulscode/codecwav/20101023/codecwav-20101023.jar:/home/baptiste/.minecraft/libraries/com/paulscode/libraryjavasound/20101123/libraryjavasound-20101123.jar:/home/baptiste/.minecraft/libraries/com/paulscode/librarylwjglopenal/20100824/librarylwjglopenal-20100824.jar:/home/baptiste/.minecraft/libraries/com/paulscode/soundsystem/20120107/soundsystem-20120107.jar:/home/baptiste/.minecraft/libraries/io/netty/netty-all/4.0.23.Final/netty-all-4.0.23.Final.jar:/home/baptiste/.minecraft/libraries/com/google/guava/guava/17.0/guava-17.0.jar:/home/baptiste/.minecraft/libraries/org/apache/commons/commons-lang3/3.3.2/commons-lang3-3.3.2.jar:/home/baptiste/.minecraft/libraries/commons-io/commons-io/2.4/commons-io-2.4.jar:/home/baptiste/.minecraft/libraries/commons-codec/commons-codec/1.9/commons-codec-1.9.jar:/home/baptiste/.minecraft/libraries/net/java/jinput/jinput/2.0.5/jinput-2.0.5.jar:/home/baptiste/.minecraft/libraries/net/java/jutils/jutils/1.0.0/jutils-1.0.0.jar:/home/baptiste/.minecraft/libraries/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar:/home/baptiste/.minecraft/libraries/com/mojang/authlib/1.5.22/authlib-1.5.22.jar:/home/baptiste/.minecraft/libraries/com/mojang/realms/1.9.8/realms-1.9.8.jar:/home/baptiste/.minecraft/libraries/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jar:/home/baptiste/.minecraft/libraries/org/apache/httpcomponents/httpclient/4.3.3/httpclient-4.3.3.jar:/home/baptiste/.minecraft/libraries/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/home/baptiste/.minecraft/libraries/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar:/home/baptiste/.minecraft/libraries/it/unimi/dsi/fastutil/7.0.12_mojang/fastutil-7.0.12_mojang.jar:/home/baptiste/.minecraft/libraries/org/apache/logging/log4j/log4j-api/2.0-beta9/log4j-api-2.0-beta9.jar:/home/baptiste/.minecraft/libraries/org/apache/logging/log4j/log4j-core/2.0-beta9/log4j-core-2.0-beta9.jar:/home/baptiste/.minecraft/libraries/org/lwjgl/lwjgl/lwjgl/2.9.4-nightly-20150209/lwjgl-2.9.4-nightly-20150209.jar:/home/baptiste/.minecraft/libraries/org/lwjgl/lwjgl/lwjgl_util/2.9.4-nightly-20150209/lwjgl_util-2.9.4-nightly-20150209.jar:/home/baptiste/.minecraft/versions/1.10.2/1.10.2.jar net.minecraft.launchwrapper.Launch --username TheSunser --version 1.10.2-forge1.10.2-12.18.3.2185 --gameDir /home/baptiste/.minecraft --assetsDir /home/baptiste/.minecraft/assets --assetIndex 1.10 --userType legacy --tweakClass net.minecraftforge.fml.common.launcher.FMLTweaker --versionType Forge When I try to run it from my custom launcher, this is what I have : [21:58:06] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [21:58:06] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [21:58:06] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [21:58:06] [main/INFO] [FML]: Forge Mod Loader version 12.18.3.2185 for Minecraft 1.10.2 loading [21:58:06] [main/INFO] [FML]: Java is OpenJDK 64-Bit Server VM, version 1.8.0_171, running on Linux:amd64:4.15.0-29-generic, installed at /usr/lib/jvm/java-8-openjdk-amd64/jre [21:58:06] [main/WARN] [FML]: The coremod aroma1997.core.coremod.CoreMod does not have a MCVersion annotation, it may cause issues with this version of Minecraft [21:58:06] [main/INFO] [STDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:106]: java.lang.NoClassDefFoundError: net/minecraftforge/fml/common/FMLLog [21:58:06] [main/INFO] [STDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:106]: at hellfirepvp.astralsorcery.core.AstralCore.<init>(AstralCore.java:31) [21:58:06] [main/INFO] [STDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:106]: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [21:58:06] [main/INFO] [STDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:106]: at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [21:58:06] [main/INFO] [STDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:106]: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [21:58:06] [main/INFO] [STDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:106]: at java.lang.reflect.Constructor.newInstance(Constructor.java:423) [21:58:06] [main/INFO] [STDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:106]: at java.lang.Class.newInstance(Class.java:442) [21:58:06] [main/INFO] [STDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:106]: at net.minecraftforge.fml.relauncher.CoreModManager.loadCoreMod(CoreModManager.java:593) [21:58:06] [main/INFO] [STDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:106]: at net.minecraftforge.fml.relauncher.CoreModManager.discoverCoreMods(CoreModManager.java:423) [21:58:06] [main/INFO] [STDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:106]: at net.minecraftforge.fml.relauncher.CoreModManager.handleLaunch(CoreModManager.java:253) [21:58:06] [main/INFO] [STDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:106]: at net.minecraftforge.fml.relauncher.FMLLaunchHandler.setupHome(FMLLaunchHandler.java:102) [21:58:06] [main/INFO] [STDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:106]: at net.minecraftforge.fml.relauncher.FMLLaunchHandler.setupClient(FMLLaunchHandler.java:79) [21:58:06] [main/INFO] [STDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:106]: at net.minecraftforge.fml.relauncher.FMLLaunchHandler.configureForClientLaunch(FMLLaunchHandler.java:41) [21:58:06] [main/INFO] [STDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:106]: at net.minecraftforge.fml.common.launcher.FMLTweaker.injectIntoClassLoader(FMLTweaker.java:138) [21:58:06] [main/INFO] [STDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:106]: at net.minecraft.launchwrapper.Launch.launch(Launch.java:115) [21:58:06] [main/INFO] [STDERR]: [net.minecraftforge.fml.relauncher.FMLLaunchHandler:setupHome:106]: at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:634]: Caused by: java.lang.ClassNotFoundException: net.minecraftforge.fml.common.FMLLog [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:634]: at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:634]: at java.lang.ClassLoader.loadClass(ClassLoader.java:424) [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:634]: at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:634]: ... 15 more [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:643]: Caused by: java.lang.NoClassDefFoundError: LZMA/LzmaInputStream [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:643]: at net.minecraftforge.fml.common.asm.transformers.PatchingTransformer.transform(PatchingTransformer.java:29) [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:643]: at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279) [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:643]: at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176) [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:643]: ... 17 more [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:667]: Caused by: java.lang.ClassNotFoundException: LZMA.LzmaInputStream [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:667]: at java.net.URLClassLoader.findClass(URLClassLoader.java:381) [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:667]: at java.lang.ClassLoader.loadClass(ClassLoader.java:424) [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:667]: at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:667]: at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:667]: at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:106) [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:667]: at java.lang.ClassLoader.loadClass(ClassLoader.java:424) [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:667]: at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:667]: ... 20 more [21:58:06] [main/ERROR] [FML]: An error occurred trying to configure the minecraft home at /home/baptiste/.minecraft for Forge Mod Loader java.lang.NoClassDefFoundError: net/minecraftforge/fml/common/FMLLog at hellfirepvp.astralsorcery.core.AstralCore.<init>(AstralCore.java:31) ~[astralsorcery-1.4.5.jar:?] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_171] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_171] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_171] at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_171] at java.lang.Class.newInstance(Class.java:442) ~[?:1.8.0_171] at net.minecraftforge.fml.relauncher.CoreModManager.loadCoreMod(CoreModManager.java:593) ~[forge-1.10.2-12.18.3.2185.jar:?] at net.minecraftforge.fml.relauncher.CoreModManager.discoverCoreMods(CoreModManager.java:423) ~[forge-1.10.2-12.18.3.2185.jar:?] at net.minecraftforge.fml.relauncher.CoreModManager.handleLaunch(CoreModManager.java:253) ~[forge-1.10.2-12.18.3.2185.jar:?] at net.minecraftforge.fml.relauncher.FMLLaunchHandler.setupHome(FMLLaunchHandler.java:102) [forge-1.10.2-12.18.3.2185.jar:?] at net.minecraftforge.fml.relauncher.FMLLaunchHandler.setupClient(FMLLaunchHandler.java:79) [forge-1.10.2-12.18.3.2185.jar:?] at net.minecraftforge.fml.relauncher.FMLLaunchHandler.configureForClientLaunch(FMLLaunchHandler.java:41) [forge-1.10.2-12.18.3.2185.jar:?] at net.minecraftforge.fml.common.launcher.FMLTweaker.injectIntoClassLoader(FMLTweaker.java:138) [forge-1.10.2-12.18.3.2185.jar:?] at net.minecraft.launchwrapper.Launch.launch(Launch.java:115) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] Caused by: java.lang.ClassNotFoundException: net.minecraftforge.fml.common.FMLLog at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_171] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_171] ... 15 more Caused by: java.lang.NoClassDefFoundError: LZMA/LzmaInputStream at net.minecraftforge.fml.common.asm.transformers.PatchingTransformer.transform(PatchingTransformer.java:29) ~[forge-1.10.2-12.18.3.2185.jar:?] at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279) ~[launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176) ~[launchwrapper-1.12.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_171] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_171] ... 15 more Caused by: java.lang.ClassNotFoundException: LZMA.LzmaInputStream at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[?:1.8.0_171] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_171] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) ~[?:1.8.0_171] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_171] at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:106) ~[launchwrapper-1.12.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_171] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_171] at net.minecraftforge.fml.common.asm.transformers.PatchingTransformer.transform(PatchingTransformer.java:29) ~[forge-1.10.2-12.18.3.2185.jar:?] at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279) ~[launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176) ~[launchwrapper-1.12.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_171] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_171] ... 15 more Exception in thread "main" [21:58:06] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: java.lang.NoClassDefFoundError: net/minecraftforge/fml/common/FMLLog [21:58:06] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at hellfirepvp.astralsorcery.core.AstralCore.<init>(AstralCore.java:31) [21:58:06] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [21:58:06] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [21:58:06] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [21:58:06] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at java.lang.reflect.Constructor.newInstance(Constructor.java:423) [21:58:06] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at java.lang.Class.newInstance(Class.java:442) [21:58:06] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.fml.relauncher.CoreModManager.loadCoreMod(CoreModManager.java:593) [21:58:06] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.fml.relauncher.CoreModManager.discoverCoreMods(CoreModManager.java:423) [21:58:06] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.fml.relauncher.CoreModManager.handleLaunch(CoreModManager.java:253) [21:58:06] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.fml.relauncher.FMLLaunchHandler.setupHome(FMLLaunchHandler.java:102) [21:58:06] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.fml.relauncher.FMLLaunchHandler.setupClient(FMLLaunchHandler.java:79) [21:58:06] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.fml.relauncher.FMLLaunchHandler.configureForClientLaunch(FMLLaunchHandler.java:41) [21:58:06] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraftforge.fml.common.launcher.FMLTweaker.injectIntoClassLoader(FMLTweaker.java:138) [21:58:06] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraft.launchwrapper.Launch.launch(Launch.java:115) [21:58:06] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [21:58:06] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1061]: Caused by: java.lang.ClassNotFoundException: net.minecraftforge.fml.common.FMLLog [21:58:06] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1061]: at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) [21:58:06] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1061]: at java.lang.ClassLoader.loadClass(ClassLoader.java:424) [21:58:06] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1061]: at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [21:58:06] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1061]: ... 15 more [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:643]: Caused by: java.lang.NoClassDefFoundError: LZMA/LzmaInputStream [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:643]: at net.minecraftforge.fml.common.asm.transformers.PatchingTransformer.transform(PatchingTransformer.java:29) [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:643]: at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279) [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:643]: at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176) [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:643]: ... 17 more [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:667]: Caused by: java.lang.ClassNotFoundException: LZMA.LzmaInputStream [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:667]: at java.net.URLClassLoader.findClass(URLClassLoader.java:381) [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:667]: at java.lang.ClassLoader.loadClass(ClassLoader.java:424) [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:667]: at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:667]: at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:667]: at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:106) [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:667]: at java.lang.ClassLoader.loadClass(ClassLoader.java:424) [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:667]: at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:667]: ... 20 more This is especially interesting : [21:58:06] [main/INFO] [STDERR]: [java.lang.Throwable:printStackTrace:634]: Caused by: java.lang.ClassNotFoundException: net.minecraftforge.fml.common.FMLLog So my question is : what have I done wrong ? If you think you can be useful, I'll be glad to try what you advise me. Thanks in advance. If you are interested in : this is the link of the project's branch I'm currently working on.
  12. That is great. Thank you!
  13. Hi all, I've been looking for way to detect when a player connect to or disconnect from a server. I was using EntityJoinWorldEvent but this is actually fired for every entity in the world, so this is not what I'm looking for. BTW, there is no EntitlyLeaveWorldEvent so I guess this is not the event I need. I've just discovered events like FMLNetworkEvent.ClientDisconnectionFromServerEvent which I think are fired on server side (at least for this one). My problem here is I got no way to find who has thrown this event. So I guessed that was not what I am looking for neither. I have to say I'm a bit lost right here. I also read a few topics here, but brought solutions are no longer available (like IPlayerTracker). Any idea ? Thanks in advance.
  14. Hi everyone, I'm trying to run a forge server using docker, but it doesn't work. - I've used the forge installer on the path of the directory I'm working in. - "java -jar forge.jar" is working in the console. - I get this error message when I'm trying to run it with docker : - I think I've added all useful files in my Docker image, but it seems I'm wrong. This is my Dockerfile : FROM openjdk:8u131-jre-alpine MAINTAINER Baptiste Chocot USER root RUN mkdir /minecraft ADD forge-1.10.2-12.18.3.2185-universal.jar /minecraft RUN mkdir /minecraft/libraries ADD libraries/* /minecraft/libraries/ RUN mkdir /minecraft/mods ADD mods/* /minecraft/mods/ RUN mkdir /minecraft/resourcepacks ADD VERSION /minecraft RUN mkdir /minecraft/versions ADD versions/* /minecraft/versions/ RUN mkdir /minecraft/logs ADD logs/* /minecraft/logs/ ADD minecraft_server.1.10.2.jar /minecraft ADD installer.log /minecraft ADD init.sh /minecraft RUN ls -la minecraft/libraries RUN chmod +x /minecraft/init.sh EXPOSE 25565 CMD java -jar forge-1.10.2-12.18.3.2185-universal.jar - The ls -la libraries shows this, so I guess libraries are not the problem : Step 19/22 : RUN ls -la minecraft/libraries ---> Running in c51cf9f66828 total 100 drwxr-xr-x 25 root root 4096 Feb 25 15:49 . drwxr-xr-x 11 root root 4096 Feb 25 15:50 .. drwxr--r-- 3 root root 4096 Feb 18 19:40 OptiFine drwxr--r-- 5 root root 4096 Feb 18 19:38 apache drwxr--r-- 4 root root 4096 Feb 18 19:40 commons-codec drwxr--r-- 4 root root 4096 Feb 18 19:40 commons-io drwxr--r-- 3 root root 4096 Feb 18 19:40 commons-logging drwxr--r-- 4 root root 4096 Feb 18 19:38 google drwxr--r-- 3 root root 4096 Feb 18 19:38 ibm drwxr--r-- 5 root root 4096 Feb 18 19:38 java drwxr--r-- 3 root root 4096 Feb 18 19:40 jline drwxr--r-- 3 root root 4096 Feb 18 19:38 lwjgl drwxr--r-- 3 root root 4096 Feb 18 19:40 lzma drwxr--r-- 3 root root 4096 Feb 18 19:39 minecraft drwxr--r-- 5 root root 4096 Feb 18 19:39 minecraftforge drwxr--r-- 7 root root 4096 Feb 18 19:39 mojang drwxr--r-- 3 root root 4096 Feb 18 19:39 netty drwxr--r-- 3 root root 4096 Feb 18 19:40 oshi-core drwxr--r-- 3 root root 4096 Feb 18 19:38 ow2 drwxr--r-- 7 root root 4096 Feb 18 19:39 paulscode drwxr--r-- 10 root root 4096 Feb 18 19:38 scala-lang drwxr--r-- 4 root root 4096 Feb 18 19:38 sf drwxr--r-- 4 root root 4096 Feb 18 19:38 typesafe drwxr--r-- 3 root root 4096 Feb 18 19:38 unimi drwxr--r-- 3 root root 4096 Feb 18 19:40 vecmath If anyone know what I missed or did wrong, please help me.
  15. The difficulty for me is to find the correct java command to launch it but I've not find anything working on the web. I guess you're right. Interesting. Thanks ! I'll update this if I find anything or get stuck.
×
×
  • Create New...

Important Information

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