Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

IMessage not being sent


Socratic_Phoenix
 Share

Recommended Posts

I'm working on a mod that needs to send a seed (don't worry!! not the world seed!) from the server (or server thread) to the client (or client thread). I followed the tutorial in the forge docs on networking, but my packet isn't being sent properly, or received properly or something.

 

I register the channel like this:

package com.gmail.socraticphoenix.forge.randore.packet;

import net.minecraftforge.fml.common.network.NetworkRegistry;
import net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper;

public class RandoreNetworking {
    public static final SimpleNetworkWrapper INSTANCE = NetworkRegistry.INSTANCE.newSimpleChannel("randores");

}

 

This is my packet:

package com.gmail.socraticphoenix.forge.randore.packet;

import io.netty.buffer.ByteBuf;
import net.minecraftforge.fml.common.network.simpleimpl.IMessage;

public class RandorePacket implements IMessage {
    private long seed;

    public RandorePacket(long seed) {
        this.seed = seed;
    }

    public long getSeed() {
        return this.seed;
    }

    public void setSeed(long seed) {
        this.seed = seed;
    }

    @Override
    public void fromBytes(ByteBuf buf) {
        this.setSeed(buf.readLong());
    }

    @Override
    public void toBytes(ByteBuf buf) {
        buf.writeLong(this.getSeed());
    }
}

This is my handler:

package com.gmail.socraticphoenix.forge.randore.packet;

import com.gmail.socraticphoenix.forge.randore.Randores;
import net.minecraft.client.Minecraft;
import net.minecraftforge.fml.common.network.simpleimpl.IMessage;
import net.minecraftforge.fml.common.network.simpleimpl.IMessageHandler;
import net.minecraftforge.fml.common.network.simpleimpl.MessageContext;

public class RandorePacketHandler implements IMessageHandler<RandorePacket, IMessage> {

    @Override
    public IMessage onMessage(final RandorePacket message, MessageContext ctx) {
        Minecraft.getMinecraft().addScheduledTask(new Runnable() {
            @Override
            public void run() {
                Randores.getInstance().getLogger().info("Received seed information: " + message.getSeed());
            }
        });
        return null;
    }

}

I attempt to send the message like this:

RandoreNetworking.INSTANCE.sendToAll(new RandorePacket(world.getSeed()));

I have verified that this code is reached AND that it is called from the server thread. I am using the world seed for testing purposes.

 

I register the message like this:

RandoreNetworking.INSTANCE.registerMessage(RandorePacketHandler.class, RandorePacket.class, 0, Side.CLIENT);

I register this in the constructor. Perhaps that's the problem? (I'll try in init and pre init as well).

 

Thanks for any help!

Developer of Randores (adds 256^3 ores to the game) and Arcane Bags (adds ridiculous storage with ridiculous crafting recipes).

I know Java pretty well... So yeah...

Quote

This is where I'd put an inspirational and/or clever quote, but I can't think of one right now...

This is the output of the totally, 100% working compiler for my programming language, Planet9:

Beginning Compilation...
Failed compilation!
planet9.compiler.error.CompilationException: Compiler not yet implemented
	at planet9.compiler.Compiler.compile(Compiler.java:39)
	at planet9.compiler.app.CompilerApp.main(CompilerApp.java:147)

 

Link to comment
Share on other sites

32 minutes ago, Socratic_Phoenix said:

package com.gmail.socraticphoenix.forge.randore.packet; import net.minecraftforge.fml.common.network.NetworkRegistry; import net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper; public class RandoreNetworking { public static final SimpleNetworkWrapper INSTANCE = NetworkRegistry.INSTANCE.newSimpleChannel("randores"); }

you never register the message

 

example

 

    private static final SimpleNetworkWrapper INSTANCE = NetworkRegistry.INSTANCE.newSimpleChannel(Reference.MODINFO.MOD_NAME);

    public static void initNetwork(){
        INSTANCE.registerMessage(GuiSyncPacket.class, GuiSyncPacket.class, ++NetID, Side.CLIENT);
    }

and call initNetwork in preinit

Link to comment
Share on other sites

25 minutes ago, loordgek said:

you never register the message

1 hour ago, Socratic_Phoenix said:

I register the message like this:


RandoreNetworking.INSTANCE.registerMessage(RandorePacketHandler.class, RandorePacket.class, 0, Side.CLIENT);

I register this in the constructor. Perhaps that's the problem? (I'll try in init and pre init as well).

Yes I do...

 

25 minutes ago, loordgek said:

and call initNetwork in preinit

Ok thanks!

56 minutes ago, diesieben07 said:

IMessage classes must have a no-arg constructor.

Ok thanks! But.... why?

Developer of Randores (adds 256^3 ores to the game) and Arcane Bags (adds ridiculous storage with ridiculous crafting recipes).

I know Java pretty well... So yeah...

Quote

This is where I'd put an inspirational and/or clever quote, but I can't think of one right now...

This is the output of the totally, 100% working compiler for my programming language, Planet9:

Beginning Compilation...
Failed compilation!
planet9.compiler.error.CompilationException: Compiler not yet implemented
	at planet9.compiler.Compiler.compile(Compiler.java:39)
	at planet9.compiler.app.CompilerApp.main(CompilerApp.java:147)

 

Link to comment
Share on other sites

Just now, diesieben07 said:

So FML can create a new instance of the class when the message is received.

That makes sense (grumbles about it being possible to map fields to the constructor)...

 

It does persist the fields though?

Developer of Randores (adds 256^3 ores to the game) and Arcane Bags (adds ridiculous storage with ridiculous crafting recipes).

I know Java pretty well... So yeah...

Quote

This is where I'd put an inspirational and/or clever quote, but I can't think of one right now...

This is the output of the totally, 100% working compiler for my programming language, Planet9:

Beginning Compilation...
Failed compilation!
planet9.compiler.error.CompilationException: Compiler not yet implemented
	at planet9.compiler.Compiler.compile(Compiler.java:39)
	at planet9.compiler.app.CompilerApp.main(CompilerApp.java:147)

 

Link to comment
Share on other sites

Thanks everyone! It's working now!

Developer of Randores (adds 256^3 ores to the game) and Arcane Bags (adds ridiculous storage with ridiculous crafting recipes).

I know Java pretty well... So yeah...

Quote

This is where I'd put an inspirational and/or clever quote, but I can't think of one right now...

This is the output of the totally, 100% working compiler for my programming language, Planet9:

Beginning Compilation...
Failed compilation!
planet9.compiler.error.CompilationException: Compiler not yet implemented
	at planet9.compiler.Compiler.compile(Compiler.java:39)
	at planet9.compiler.app.CompilerApp.main(CompilerApp.java:147)

 

Link to comment
Share on other sites

17 minutes ago, diesieben07 said:

No, it only calls toBytes and fromBytes.

Of course, silly me!

Developer of Randores (adds 256^3 ores to the game) and Arcane Bags (adds ridiculous storage with ridiculous crafting recipes).

I know Java pretty well... So yeah...

Quote

This is where I'd put an inspirational and/or clever quote, but I can't think of one right now...

This is the output of the totally, 100% working compiler for my programming language, Planet9:

Beginning Compilation...
Failed compilation!
planet9.compiler.error.CompilationException: Compiler not yet implemented
	at planet9.compiler.Compiler.compile(Compiler.java:39)
	at planet9.compiler.app.CompilerApp.main(CompilerApp.java:147)

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • NEVER MIND I AM STUPID I HAD EXTRACTED MODS IN MY MOD FOLDER IM SORRY
    • My forge for 1.12.2 isn't working and I'm about to blow my brains out you guys are my last resort. Please help. Here's my logs: [20:39:15] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [20:39:15] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [20:39:15] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [20:39:15] [main/DEBUG] [FML]: Injecting tracing printstreams for STDOUT/STDERR. [20:39:15] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2855 for Minecraft 1.12.2 loading [20:39:15] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_51, running on Windows 10:amd64:10.0, installed at C:\Program Files (x86)\Minecraft Launcher\runtime\jre-legacy\windows-x64\jre-legacy [20:39:15] [main/DEBUG] [FML]: Java classpath at launch is: [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\minecraftforge\forge\1.12.2-14.23.5.2855\forge-1.12.2-14.23.5.2855.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\ow2\asm\asm-debug-all\5.2\asm-debug-all-5.2.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\minecraft\launchwrapper\1.12\launchwrapper-1.12.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\jline\jline\3.5.1\jline-3.5.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\typesafe\akka\akka-actor_2.11\2.3.3\akka-actor_2.11-2.3.3.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\typesafe\config\1.2.1\config-1.2.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-actors-migration_2.11\1.1.0\scala-actors-migration_2.11-1.1.0.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-compiler\2.11.1\scala-compiler-2.11.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\plugins\scala-continuations-library_2.11\1.0.2_mc\scala-continuations-library_2.11-1.0.2_mc.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\plugins\scala-continuations-plugin_2.11.1\1.0.2_mc\scala-continuations-plugin_2.11.1-1.0.2_mc.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-library\2.11.1\scala-library-2.11.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-parser-combinators_2.11\1.0.1\scala-parser-combinators_2.11-1.0.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-reflect\2.11.1\scala-reflect-2.11.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-swing_2.11\1.0.1\scala-swing_2.11-1.0.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-xml_2.11\1.0.2\scala-xml_2.11-1.0.2.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\lzma\lzma\0.0.1\lzma-0.0.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\java3d\vecmath\1.5.2\vecmath-1.5.2.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\sf\trove4j\trove4j\3.0.3\trove4j-3.0.3.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\apache\maven\maven-artifact\3.5.3\maven-artifact-3.5.3.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\sf\jopt-simple\jopt-simple\5.0.3\jopt-simple-5.0.3.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\mojang\patchy\1.3.9\patchy-1.3.9.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\oshi-project\oshi-core\1.1\oshi-core-1.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\java\dev\jna\jna\4.4.0\jna-4.4.0.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\java\dev\jna\platform\3.4.0\platform-3.4.0.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\ibm\icu\icu4j-core-mojang\51.2\icu4j-core-mojang-51.2.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\paulscode\codecjorbis\20101023\codecjorbis-20101023.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\paulscode\codecwav\20101023\codecwav-20101023.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\paulscode\libraryjavasound\20101123\libraryjavasound-20101123.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\paulscode\librarylwjglopenal\20100824\librarylwjglopenal-20100824.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\paulscode\soundsystem\20120107\soundsystem-20120107.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\io\netty\netty-all\4.1.9.Final\netty-all-4.1.9.Final.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\google\guava\guava\21.0\guava-21.0.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\apache\commons\commons-lang3\3.5\commons-lang3-3.5.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\commons-io\commons-io\2.5\commons-io-2.5.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\commons-codec\commons-codec\1.10\commons-codec-1.10.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\java\jinput\jinput\2.0.5\jinput-2.0.5.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\java\jutils\jutils\1.0.0\jutils-1.0.0.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\google\code\gson\gson\2.8.0\gson-2.8.0.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\mojang\authlib\1.5.25\authlib-1.5.25.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\mojang\realms\1.10.22\realms-1.10.22.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\apache\commons\commons-compress\1.8.1\commons-compress-1.8.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\apache\httpcomponents\httpclient\4.3.3\httpclient-4.3.3.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\commons-logging\commons-logging\1.1.3\commons-logging-1.1.3.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\apache\httpcomponents\httpcore\4.3.2\httpcore-4.3.2.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\it\unimi\dsi\fastutil\7.1.0\fastutil-7.1.0.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\apache\logging\log4j\log4j-api\2.8.1\log4j-api-2.8.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\apache\logging\log4j\log4j-core\2.8.1\log4j-core-2.8.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl\2.9.4-nightly-20150209\lwjgl-2.9.4-nightly-20150209.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl_util\2.9.4-nightly-20150209\lwjgl_util-2.9.4-nightly-20150209.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\mojang\text2speech\1.10.3\text2speech-1.10.3.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\versions\1.12.2-forge-14.23.5.2855\1.12.2-forge-14.23.5.2855.jar [20:39:15] [main/DEBUG] [FML]: Java library path at launch is: [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\bin\eeeb-e5b9-51d8-e2c2 [20:39:15] [main/DEBUG] [FML]: Determined Minecraft Libraries Root: C:\Users\joshu\AppData\Roaming\.minecraft\libraries [20:39:15] [main/DEBUG] [FML]: Cleaning up mods folder: C:\Users\joshu\AppData\Roaming\.minecraft\mods [20:39:15] [main/DEBUG] [FML]: Enabling runtime deobfuscation [20:39:15] [main/DEBUG] [FML]: Instantiating coremod class FMLCorePlugin [20:39:15] [main/DEBUG] [FML]: Found signing certificates for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin) [20:39:15] [main/DEBUG] [FML]: Found certificate e3c3d50c7c986df74c645c0ac54639741c90a557 [20:39:15] [main/DEBUG] [FML]: Added access transformer class net.minecraftforge.fml.common.asm.transformers.AccessTransformer to enqueued access transformers [20:39:15] [main/DEBUG] [FML]: Enqueued coremod FMLCorePlugin [20:39:15] [main/DEBUG] [FML]: Instantiating coremod class FMLForgePlugin [20:39:15] [main/DEBUG] [FML]: Found signing certificates for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin) [20:39:15] [main/DEBUG] [FML]: Found certificate e3c3d50c7c986df74c645c0ac54639741c90a557 [20:39:15] [main/DEBUG] [FML]: Enqueued coremod FMLForgePlugin [20:39:15] [main/DEBUG] [FML]: All fundamental core mods are successfully located [20:39:15] [main/FATAL] [FML]: There appear to be jars extracted into the mods directory. This is VERY BAD and will almost NEVER WORK WELL [20:39:15] [main/FATAL] [FML]: You should place original jars only in the mods directory. NEVER extract them to the mods directory. [20:39:15] [main/FATAL] [FML]: The directories below appear to be extracted jar files. Fix this before you continue. [20:39:15] [main/FATAL] [FML]: Directory Unconfirmed 301077 contains [MANIFEST.MF, maven, pixelmon_at.cfg, versions] [20:39:15] [main/FATAL] [FML]: #@!@# FML has crashed the game deliberately. Crash report saved to: #@!@# C:\Users\joshu\AppData\Roaming\.minecraft\crash-reports\fml-crash-2022-07-04_20.39.15.txt [20:39:15] [main/ERROR] [LaunchWrapper]: Unable to launch java.lang.RuntimeException: An error occurred trying to configure the Minecraft home at C:\Users\joshu\AppData\Roaming\.minecraft for Forge Mod Loader     at net.minecraftforge.fml.relauncher.FMLLaunchHandler.setupHome(FMLLaunchHandler.java:111) ~[forge-1.12.2-14.23.5.2855.jar:?]     at net.minecraftforge.fml.relauncher.FMLLaunchHandler.setupClient(FMLLaunchHandler.java:81) ~[forge-1.12.2-14.23.5.2855.jar:?]     at net.minecraftforge.fml.relauncher.FMLLaunchHandler.configureForClientLaunch(FMLLaunchHandler.java:42) ~[forge-1.12.2-14.23.5.2855.jar:?]     at net.minecraftforge.fml.common.launcher.FMLTweaker.injectIntoClassLoader(FMLTweaker.java:141) ~[forge-1.12.2-14.23.5.2855.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.RuntimeException: Extracted mod jars found, loading will NOT continue     at net.minecraftforge.fml.relauncher.CoreModManager.findDerpMods(CoreModManager.java:292) ~[forge-1.12.2-14.23.5.2855.jar:?]     at net.minecraftforge.fml.relauncher.CoreModManager.discoverCoreMods(CoreModManager.java:332) ~[forge-1.12.2-14.23.5.2855.jar:?]     at net.minecraftforge.fml.relauncher.CoreModManager.handleLaunch(CoreModManager.java:265) ~[forge-1.12.2-14.23.5.2855.jar:?]     at net.minecraftforge.fml.relauncher.FMLLaunchHandler.setupHome(FMLLaunchHandler.java:107) ~[forge-1.12.2-14.23.5.2855.jar:?]     ... 5 more [20:39:15] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: net.minecraftforge.fml.relauncher.FMLSecurityManager$ExitTrappedException [20:39:15] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:     at net.minecraftforge.fml.relauncher.FMLSecurityManager.checkPermission(FMLSecurityManager.java:49) [20:39:15] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:     at java.lang.SecurityManager.checkExit(SecurityManager.java:761) [20:39:15] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:     at java.lang.Runtime.exit(Runtime.java:107) [20:39:15] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:     at java.lang.System.exit(System.java:971) [20:39:15] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:     at net.minecraft.launchwrapper.Launch.launch(Launch.java:138) [20:39:15] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:     at net.minecraft.launchwrapper.Launch.main(Launch.java:28)  
    • My forge for 1.12.2 isn't working and I'm about to blow my brains out you guys are my last resort. Please help. Here's my logs: [20:39:15] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [20:39:15] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [20:39:15] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [20:39:15] [main/DEBUG] [FML]: Injecting tracing printstreams for STDOUT/STDERR. [20:39:15] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2855 for Minecraft 1.12.2 loading [20:39:15] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_51, running on Windows 10:amd64:10.0, installed at C:\Program Files (x86)\Minecraft Launcher\runtime\jre-legacy\windows-x64\jre-legacy [20:39:15] [main/DEBUG] [FML]: Java classpath at launch is: [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\minecraftforge\forge\1.12.2-14.23.5.2855\forge-1.12.2-14.23.5.2855.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\ow2\asm\asm-debug-all\5.2\asm-debug-all-5.2.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\minecraft\launchwrapper\1.12\launchwrapper-1.12.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\jline\jline\3.5.1\jline-3.5.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\typesafe\akka\akka-actor_2.11\2.3.3\akka-actor_2.11-2.3.3.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\typesafe\config\1.2.1\config-1.2.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-actors-migration_2.11\1.1.0\scala-actors-migration_2.11-1.1.0.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-compiler\2.11.1\scala-compiler-2.11.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\plugins\scala-continuations-library_2.11\1.0.2_mc\scala-continuations-library_2.11-1.0.2_mc.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\plugins\scala-continuations-plugin_2.11.1\1.0.2_mc\scala-continuations-plugin_2.11.1-1.0.2_mc.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-library\2.11.1\scala-library-2.11.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-parser-combinators_2.11\1.0.1\scala-parser-combinators_2.11-1.0.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-reflect\2.11.1\scala-reflect-2.11.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-swing_2.11\1.0.1\scala-swing_2.11-1.0.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-xml_2.11\1.0.2\scala-xml_2.11-1.0.2.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\lzma\lzma\0.0.1\lzma-0.0.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\java3d\vecmath\1.5.2\vecmath-1.5.2.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\sf\trove4j\trove4j\3.0.3\trove4j-3.0.3.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\apache\maven\maven-artifact\3.5.3\maven-artifact-3.5.3.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\sf\jopt-simple\jopt-simple\5.0.3\jopt-simple-5.0.3.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\mojang\patchy\1.3.9\patchy-1.3.9.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\oshi-project\oshi-core\1.1\oshi-core-1.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\java\dev\jna\jna\4.4.0\jna-4.4.0.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\java\dev\jna\platform\3.4.0\platform-3.4.0.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\ibm\icu\icu4j-core-mojang\51.2\icu4j-core-mojang-51.2.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\paulscode\codecjorbis\20101023\codecjorbis-20101023.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\paulscode\codecwav\20101023\codecwav-20101023.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\paulscode\libraryjavasound\20101123\libraryjavasound-20101123.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\paulscode\librarylwjglopenal\20100824\librarylwjglopenal-20100824.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\paulscode\soundsystem\20120107\soundsystem-20120107.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\io\netty\netty-all\4.1.9.Final\netty-all-4.1.9.Final.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\google\guava\guava\21.0\guava-21.0.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\apache\commons\commons-lang3\3.5\commons-lang3-3.5.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\commons-io\commons-io\2.5\commons-io-2.5.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\commons-codec\commons-codec\1.10\commons-codec-1.10.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\java\jinput\jinput\2.0.5\jinput-2.0.5.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\net\java\jutils\jutils\1.0.0\jutils-1.0.0.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\google\code\gson\gson\2.8.0\gson-2.8.0.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\mojang\authlib\1.5.25\authlib-1.5.25.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\mojang\realms\1.10.22\realms-1.10.22.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\apache\commons\commons-compress\1.8.1\commons-compress-1.8.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\apache\httpcomponents\httpclient\4.3.3\httpclient-4.3.3.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\commons-logging\commons-logging\1.1.3\commons-logging-1.1.3.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\apache\httpcomponents\httpcore\4.3.2\httpcore-4.3.2.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\it\unimi\dsi\fastutil\7.1.0\fastutil-7.1.0.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\apache\logging\log4j\log4j-api\2.8.1\log4j-api-2.8.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\apache\logging\log4j\log4j-core\2.8.1\log4j-core-2.8.1.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl\2.9.4-nightly-20150209\lwjgl-2.9.4-nightly-20150209.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl_util\2.9.4-nightly-20150209\lwjgl_util-2.9.4-nightly-20150209.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\libraries\com\mojang\text2speech\1.10.3\text2speech-1.10.3.jar [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\versions\1.12.2-forge-14.23.5.2855\1.12.2-forge-14.23.5.2855.jar [20:39:15] [main/DEBUG] [FML]: Java library path at launch is: [20:39:15] [main/DEBUG] [FML]:     C:\Users\joshu\AppData\Roaming\.minecraft\bin\eeeb-e5b9-51d8-e2c2 [20:39:15] [main/DEBUG] [FML]: Determined Minecraft Libraries Root: C:\Users\joshu\AppData\Roaming\.minecraft\libraries [20:39:15] [main/DEBUG] [FML]: Cleaning up mods folder: C:\Users\joshu\AppData\Roaming\.minecraft\mods [20:39:15] [main/DEBUG] [FML]: Enabling runtime deobfuscation [20:39:15] [main/DEBUG] [FML]: Instantiating coremod class FMLCorePlugin [20:39:15] [main/DEBUG] [FML]: Found signing certificates for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin) [20:39:15] [main/DEBUG] [FML]: Found certificate e3c3d50c7c986df74c645c0ac54639741c90a557 [20:39:15] [main/DEBUG] [FML]: Added access transformer class net.minecraftforge.fml.common.asm.transformers.AccessTransformer to enqueued access transformers [20:39:15] [main/DEBUG] [FML]: Enqueued coremod FMLCorePlugin [20:39:15] [main/DEBUG] [FML]: Instantiating coremod class FMLForgePlugin [20:39:15] [main/DEBUG] [FML]: Found signing certificates for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin) [20:39:15] [main/DEBUG] [FML]: Found certificate e3c3d50c7c986df74c645c0ac54639741c90a557 [20:39:15] [main/DEBUG] [FML]: Enqueued coremod FMLForgePlugin [20:39:15] [main/DEBUG] [FML]: All fundamental core mods are successfully located [20:39:15] [main/FATAL] [FML]: There appear to be jars extracted into the mods directory. This is VERY BAD and will almost NEVER WORK WELL [20:39:15] [main/FATAL] [FML]: You should place original jars only in the mods directory. NEVER extract them to the mods directory. [20:39:15] [main/FATAL] [FML]: The directories below appear to be extracted jar files. Fix this before you continue. [20:39:15] [main/FATAL] [FML]: Directory Unconfirmed 301077 contains [MANIFEST.MF, maven, pixelmon_at.cfg, versions] [20:39:15] [main/FATAL] [FML]: #@!@# FML has crashed the game deliberately. Crash report saved to: #@!@# C:\Users\joshu\AppData\Roaming\.minecraft\crash-reports\fml-crash-2022-07-04_20.39.15.txt [20:39:15] [main/ERROR] [LaunchWrapper]: Unable to launch java.lang.RuntimeException: An error occurred trying to configure the Minecraft home at C:\Users\joshu\AppData\Roaming\.minecraft for Forge Mod Loader     at net.minecraftforge.fml.relauncher.FMLLaunchHandler.setupHome(FMLLaunchHandler.java:111) ~[forge-1.12.2-14.23.5.2855.jar:?]     at net.minecraftforge.fml.relauncher.FMLLaunchHandler.setupClient(FMLLaunchHandler.java:81) ~[forge-1.12.2-14.23.5.2855.jar:?]     at net.minecraftforge.fml.relauncher.FMLLaunchHandler.configureForClientLaunch(FMLLaunchHandler.java:42) ~[forge-1.12.2-14.23.5.2855.jar:?]     at net.minecraftforge.fml.common.launcher.FMLTweaker.injectIntoClassLoader(FMLTweaker.java:141) ~[forge-1.12.2-14.23.5.2855.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.RuntimeException: Extracted mod jars found, loading will NOT continue     at net.minecraftforge.fml.relauncher.CoreModManager.findDerpMods(CoreModManager.java:292) ~[forge-1.12.2-14.23.5.2855.jar:?]     at net.minecraftforge.fml.relauncher.CoreModManager.discoverCoreMods(CoreModManager.java:332) ~[forge-1.12.2-14.23.5.2855.jar:?]     at net.minecraftforge.fml.relauncher.CoreModManager.handleLaunch(CoreModManager.java:265) ~[forge-1.12.2-14.23.5.2855.jar:?]     at net.minecraftforge.fml.relauncher.FMLLaunchHandler.setupHome(FMLLaunchHandler.java:107) ~[forge-1.12.2-14.23.5.2855.jar:?]     ... 5 more [20:39:15] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: net.minecraftforge.fml.relauncher.FMLSecurityManager$ExitTrappedException [20:39:15] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:     at net.minecraftforge.fml.relauncher.FMLSecurityManager.checkPermission(FMLSecurityManager.java:49) [20:39:15] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:     at java.lang.SecurityManager.checkExit(SecurityManager.java:761) [20:39:15] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:     at java.lang.Runtime.exit(Runtime.java:107) [20:39:15] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:     at java.lang.System.exit(System.java:971) [20:39:15] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:     at net.minecraft.launchwrapper.Launch.launch(Launch.java:138) [20:39:15] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]:     at net.minecraft.launchwrapper.Launch.main(Launch.java:28)  
    • https://imgur.com/a/l8Dg8BF
    • Or even simpler, just reject re-entrant calls? private boolean inTick = false; @Override public void tick() { if (inTick) return; inTick = true; // Your code inTick = false; }  
  • Topics

×
×
  • Create New...

Important Information

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